Skip to content

Commit

Permalink
fix: forgot to update a signing type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dudleyneedham committed Aug 25, 2023
1 parent 3fd34dd commit b20e4bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/createDidConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const createCredentialOpts = {
description: 'Mnemonic or seed for the assertionMethod key to be used for issuing a new credential.',
demandOption: true,
},
keyType: { alias: 't', choices: ['sr25519', 'ed25519', 'ecdsa'] as const, default: 'sr25519' },
keyType: { alias: 't', choices: ['sr25519', 'ed25519', 'ecdsa'] as const, default: 'ed25519' },
wsAddress: { alias: 'w', type: 'string', demandOption: true, default: 'wss://spiritnet.kilt.io' },
} as const

Expand Down
2 changes: 1 addition & 1 deletion src/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export async function assertionSigner({
if (!assertionMethod) throw new Error('no assertionMethod')
return async ({ data }) => ({
signature: assertion.sign(data),
keyType: signingKeyPairType,
keyType: 'ed25519',
keyUri: `${didDocument.uri}${assertionMethod[0].id}`,
})
}
Expand Down

0 comments on commit b20e4bf

Please sign in to comment.