diff --git a/packages/core/src/modules/dids/domain/key-type/keyDidMapping.ts b/packages/core/src/modules/dids/domain/key-type/keyDidMapping.ts index dd7dc4d65d..dfd277e60c 100644 --- a/packages/core/src/modules/dids/domain/key-type/keyDidMapping.ts +++ b/packages/core/src/modules/dids/domain/key-type/keyDidMapping.ts @@ -1,9 +1,14 @@ import type { Key } from '../../../../crypto/Key' -import { VERIFICATION_METHOD_TYPE_MULTIKEY, isMultikey, type VerificationMethod, getKeyFromMultikey } from '../verificationMethod' import { KeyType } from '../../../../crypto/KeyType' import { getJwkFromJson } from '../../../../crypto/jose/jwk' import { AriesFrameworkError } from '../../../../error' +import { + VERIFICATION_METHOD_TYPE_MULTIKEY, + isMultikey, + type VerificationMethod, + getKeyFromMultikey, +} from '../verificationMethod' import { isJsonWebKey2020, VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020 } from '../verificationMethod/JsonWebKey2020' import { keyDidBls12381g1 } from './bls12381g1' @@ -83,7 +88,7 @@ export function getKeyFromVerificationMethod(verificationMethod: VerificationMet if (isMultikey(verificationMethod)) { if (!verificationMethod.publicKeyMultibase) { throw new AriesFrameworkError( - `Missing publicKeyMultibase on verification method with type ${VERIFICATION_METHOD_TYPE_MULTIKEY}` + `Missing publicKeyMultibase on verification method with type ${VERIFICATION_METHOD_TYPE_MULTIKEY}` ) } diff --git a/packages/core/src/modules/dids/domain/verificationMethod/Multikey.ts b/packages/core/src/modules/dids/domain/verificationMethod/Multikey.ts index 4c0cf59b5f..4eb35ef715 100644 --- a/packages/core/src/modules/dids/domain/verificationMethod/Multikey.ts +++ b/packages/core/src/modules/dids/domain/verificationMethod/Multikey.ts @@ -1,4 +1,5 @@ import type { VerificationMethod } from './VerificationMethod' + import { Key } from '../../../../crypto/Key' import { AriesFrameworkError } from '../../../../error'