Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/generic messages #399

Merged
merged 8 commits into from
May 28, 2020
Merged

Feat/generic messages #399

merged 8 commits into from
May 28, 2020

Conversation

chunningham
Copy link
Contributor

removes any restrictions imposed by JSONWebToken being generic over T extends JWTEncodable. These changes are not breaking. In future, the interaction tokens which currently remain in the library can be migrated out in a breaking change.

Custom messages can be created with the IdentityWallet.create.message public function. They will sign and validate like any other.

@@ -101,7 +101,7 @@ describe('Integration Test - Token interaction flow Credential Offer', () => {

it('Should correctly create a credential receive token by service', async () => {
const decodedCredOfferResponse = JSONWebToken.decode<
CredentialOfferRequest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the previous / original test broken? The line didn't look right.


private createCredResp = async (
credResp: WithExtraOptions<ICredentialResponseAttrs>,
private make_req = <T>(type: string) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase


private createCredReceive = async (
credReceive: WithExtraOptions<ICredentialsReceiveAttrs>,
private make_res = <T, R>(type: string) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase

Copy link
Collaborator

@Exulansis Exulansis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Exulansis Exulansis mentioned this pull request May 28, 2020
@Exulansis Exulansis added finished new feature New feature or request labels May 28, 2020
@Exulansis Exulansis merged commit 5692036 into develop May 28, 2020
Exulansis added a commit that referenced this pull request Jun 9, 2020
Tests currently fail because of a breaking change in #399.
Furthermore, a better API for passing in a custom resolover is needed
@chunningham chunningham mentioned this pull request Jun 10, 2020
@Exulansis Exulansis deleted the feat/generic_messages branch June 14, 2020 10:41
@Exulansis Exulansis mentioned this pull request Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
finished new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants