Skip to content

Commit

Permalink
More DID integration tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Oct 4, 2023
1 parent 050a043 commit 40361ec
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 257 deletions.
7 changes: 3 additions & 4 deletions packages/did/src/Did2.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ export function multibaseKeyToDidKey(
export function keypairToMultibaseKey({
type,
publicKey,
}: Pick<
KeyringPair,
'publicKey' | 'type'
>): DidDocumentV2.VerificationMethod['publicKeyMultibase'] {
}: Pick<KeyringPair, 'publicKey'> & {
type: DidKeyType
}): DidDocumentV2.VerificationMethod['publicKeyMultibase'] {
const multiCodecPublicKeyPrefix = multicodecReversePrefixes[type]
if (multiCodecPublicKeyPrefix === undefined) {
// TODO: Proper error
Expand Down
Loading

0 comments on commit 40361ec

Please sign in to comment.