Skip to content

Commit

Permalink
feat: add key type definitions: 'Bls12381G1Key2020' and 'Bls12381G2Ke…
Browse files Browse the repository at this point in the history
…y2020' (#839)

* Add key types: 'Bls12381G1Key2020' and 'Bls12381G2Key2020'
Co-authored-by: Ilie Circiumaru <ici@zurich.ibm.com>
  • Loading branch information
iliecirciumaru committed Mar 24, 2022
1 parent ef08c52 commit 0f0f517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/types/IIdentifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type MinimalImportableIdentifier = {
* Cryptographic key type
* @public
*/
export type TKeyType = 'Ed25519' | 'Secp256k1' | 'X25519'
export type TKeyType = 'Ed25519' | 'Secp256k1' | 'X25519' | 'Bls12381G1' | 'Bls12381G2'

/**
* Cryptographic key
Expand Down
2 changes: 2 additions & 0 deletions packages/remote-server/src/web-did-doc-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const keyMapping: Record<TKeyType, string> = {
Secp256k1: 'EcdsaSecp256k1VerificationKey2019',
Ed25519: 'Ed25519VerificationKey2018',
X25519: 'X25519KeyAgreementKey2019',
Bls12381G1: 'Bls12381G1Key2020',
Bls12381G2: 'Bls12381G2Key2020',
}

/**
Expand Down

0 comments on commit 0f0f517

Please sign in to comment.