diff --git a/packages/core/src/types/IIdentifier.ts b/packages/core/src/types/IIdentifier.ts index 4e6734fb2..a1c934afd 100644 --- a/packages/core/src/types/IIdentifier.ts +++ b/packages/core/src/types/IIdentifier.ts @@ -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 diff --git a/packages/remote-server/src/web-did-doc-router.ts b/packages/remote-server/src/web-did-doc-router.ts index 8a3a68773..c7e5d8a24 100644 --- a/packages/remote-server/src/web-did-doc-router.ts +++ b/packages/remote-server/src/web-did-doc-router.ts @@ -12,6 +12,8 @@ const keyMapping: Record = { Secp256k1: 'EcdsaSecp256k1VerificationKey2019', Ed25519: 'Ed25519VerificationKey2018', X25519: 'X25519KeyAgreementKey2019', + Bls12381G1: 'Bls12381G1Key2020', + Bls12381G2: 'Bls12381G2Key2020', } /**