-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support ed25519 2020 #78
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a changelog entry. Looks like we're effectively removing veres-one DID support temporarily, so that will need to be listed as a breaking change.
Edit: It showed up now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Nicely done
- Update bedrock-veres-one-context and bedrock-did-io.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY, more more style nit.
ProfileManager.js
Outdated
return CapabilityAgent.fromSecret({ | ||
secret, handle, keyType: 'Ed25519VerificationKey2020'}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return CapabilityAgent.fromSecret({ | |
secret, handle, keyType: 'Ed25519VerificationKey2020'}); | |
return CapabilityAgent.fromSecret({ | |
secret, handle, keyType: 'Ed25519VerificationKey2020' | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here b15d5df
- Remove unused dep and add missing dep in test.
utils.js
Outdated
if(signer.type === 'Ed25519VerificationKey2018') { | ||
suite = new Ed25519Signature2018({ | ||
signer, | ||
}); | ||
} else if(signer.type === 'Ed25519VerificationKey2020') { | ||
suite = new Ed25519Signature2020({ | ||
signer, | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed, that we should throw an error if we hit the bottom without finding a matching signer.type
.
tracking: digitalbazaar/bedrock-karma#14 |
Note: Some tests has been skipped since the documentLoader currently doesn't have did:v1 resolver added to it yet. All those tests pass though when I change the didMethod from v1 to key.So whenever veres one resolver gets added to the documentLoader, these tests can be unskipped.
Update: All tests are passing now and documentLoader has been updated.