@credo-ts/core 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent/Agent.d.mts +1 -1
- package/build/agent/Agent.d.mts.map +1 -1
- package/build/agent/Agent.d.ts +1 -1
- package/build/agent/Agent.d.ts.map +1 -1
- package/build/agent/Agent.js +2 -2
- package/build/agent/Agent.mjs +2 -2
- package/build/agent/Agent.mjs.map +1 -1
- package/build/agent/AgentConfig.d.mts +1 -1
- package/build/agent/AgentConfig.d.mts.map +1 -1
- package/build/agent/AgentConfig.d.ts +1 -1
- package/build/agent/AgentConfig.d.ts.map +1 -1
- package/build/agent/AgentConfig.mjs.map +1 -1
- package/build/agent/AgentModules.d.mts +4 -4
- package/build/agent/AgentModules.d.mts.map +1 -1
- package/build/agent/AgentModules.d.ts +4 -4
- package/build/agent/AgentModules.d.ts.map +1 -1
- package/build/agent/AgentModules.mjs.map +1 -1
- package/build/agent/BaseAgent.d.mts +4 -4
- package/build/agent/BaseAgent.d.ts +4 -4
- package/build/agent/BaseAgent.mjs.map +1 -1
- package/build/agent/EventEmitter.d.mts +1 -1
- package/build/agent/EventEmitter.d.mts.map +1 -1
- package/build/agent/EventEmitter.d.ts +1 -1
- package/build/agent/EventEmitter.d.ts.map +1 -1
- package/build/agent/EventEmitter.mjs.map +1 -1
- package/build/agent/context/AgentContext.d.mts.map +1 -1
- package/build/agent/context/AgentContext.d.ts.map +1 -1
- package/build/agent/context/AgentContext.mjs.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.mts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.ts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs.map +1 -1
- package/build/crypto/JwsService.d.mts +5 -5
- package/build/crypto/JwsService.d.mts.map +1 -1
- package/build/crypto/JwsService.d.ts +5 -5
- package/build/crypto/JwsService.d.ts.map +1 -1
- package/build/crypto/JwsService.js +3 -3
- package/build/crypto/JwsService.mjs +3 -3
- package/build/crypto/JwsService.mjs.map +1 -1
- package/build/crypto/KmsKeyPair.js +1 -5
- package/build/crypto/KmsKeyPair.mjs +1 -2
- package/build/crypto/KmsKeyPair.mjs.map +1 -1
- package/build/crypto/hashes/Hasher.d.mts +4 -2
- package/build/crypto/hashes/Hasher.d.mts.map +1 -1
- package/build/crypto/hashes/Hasher.d.ts +4 -2
- package/build/crypto/hashes/Hasher.d.ts.map +1 -1
- package/build/crypto/hashes/Hasher.js +8 -3
- package/build/crypto/hashes/Hasher.mjs +8 -3
- package/build/crypto/hashes/Hasher.mjs.map +1 -1
- package/build/crypto/hashes/IHash.d.mts +3 -1
- package/build/crypto/hashes/IHash.d.mts.map +1 -1
- package/build/crypto/hashes/IHash.d.ts +3 -1
- package/build/crypto/hashes/IHash.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.d.mts +2 -1
- package/build/crypto/hashes/Sha1.d.mts.map +1 -1
- package/build/crypto/hashes/Sha1.d.ts +2 -1
- package/build/crypto/hashes/Sha1.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.js +3 -3
- package/build/crypto/hashes/Sha1.mjs +1 -1
- package/build/crypto/hashes/Sha1.mjs.map +1 -1
- package/build/crypto/hashes/Sha256.d.mts +2 -1
- package/build/crypto/hashes/Sha256.d.mts.map +1 -1
- package/build/crypto/hashes/Sha256.d.ts +2 -1
- package/build/crypto/hashes/Sha256.d.ts.map +1 -1
- package/build/crypto/hashes/Sha256.js +3 -3
- package/build/crypto/hashes/Sha256.mjs +1 -1
- package/build/crypto/hashes/Sha256.mjs.map +1 -1
- package/build/crypto/hashes/Sha384.d.mts +10 -0
- package/build/crypto/hashes/Sha384.d.mts.map +1 -0
- package/build/crypto/hashes/Sha384.d.ts +10 -0
- package/build/crypto/hashes/Sha384.d.ts.map +1 -0
- package/build/crypto/hashes/Sha384.js +15 -0
- package/build/crypto/hashes/Sha384.mjs +14 -0
- package/build/crypto/hashes/Sha384.mjs.map +1 -0
- package/build/crypto/hashes/Sha512.d.mts +2 -1
- package/build/crypto/hashes/Sha512.d.mts.map +1 -1
- package/build/crypto/hashes/Sha512.d.ts +2 -1
- package/build/crypto/hashes/Sha512.d.ts.map +1 -1
- package/build/crypto/hashes/Sha512.js +3 -3
- package/build/crypto/hashes/Sha512.mjs +1 -1
- package/build/crypto/hashes/Sha512.mjs.map +1 -1
- package/build/crypto/hashes/index.js +1 -0
- package/build/crypto/hashes/index.mjs +1 -0
- package/build/crypto/index.js +1 -0
- package/build/crypto/index.mjs +1 -0
- package/build/crypto/jose/jwt/Jwt.d.mts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.d.ts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.js +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.js +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.js +6 -9
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs +5 -6
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.js +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha1Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha256Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/index.js +1 -1
- package/build/crypto/webcrypto/providers/index.mjs +1 -1
- package/build/crypto/webcrypto/types.d.mts +2 -1
- package/build/crypto/webcrypto/types.d.mts.map +1 -1
- package/build/crypto/webcrypto/types.d.ts +2 -1
- package/build/crypto/webcrypto/types.d.ts.map +1 -1
- package/build/crypto/webcrypto/types.mjs.map +1 -1
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.js +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs.map +1 -1
- package/build/error/index.js +2 -2
- package/build/error/index.mjs +2 -2
- package/build/index.d.mts +161 -157
- package/build/index.d.mts.map +1 -1
- package/build/index.d.ts +161 -157
- package/build/index.d.ts.map +1 -1
- package/build/index.js +67 -62
- package/build/index.mjs +66 -62
- package/build/index.mjs.map +1 -1
- package/build/logger/BaseLogger.mjs.map +1 -1
- package/build/logger/ConsoleLogger.mjs.map +1 -1
- package/build/logger/Logger.mjs.map +1 -1
- package/build/modules/cache/CacheModule.mjs.map +1 -1
- package/build/modules/cache/CachedStorageService.mjs.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.mts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.ts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.js +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs.map +1 -1
- package/build/modules/dcql/DcqlModule.d.mts.map +1 -1
- package/build/modules/dcql/DcqlModule.d.ts.map +1 -1
- package/build/modules/dcql/DcqlModule.mjs.map +1 -1
- package/build/modules/dcql/DcqlService.d.mts.map +1 -1
- package/build/modules/dcql/DcqlService.d.ts.map +1 -1
- package/build/modules/dcql/DcqlService.js +2 -2
- package/build/modules/dcql/DcqlService.mjs +2 -2
- package/build/modules/dcql/DcqlService.mjs.map +1 -1
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.mts +3 -3
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +3 -3
- package/build/modules/dcql/models/index.d.mts +2 -2
- package/build/modules/dcql/models/index.d.mts.map +1 -1
- package/build/modules/dcql/models/index.d.ts +2 -2
- package/build/modules/dcql/models/index.d.ts.map +1 -1
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.mts +2 -2
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.mts +2 -2
- package/build/modules/dids/DidsApi.d.mts.map +1 -1
- package/build/modules/dids/DidsApi.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.ts.map +1 -1
- package/build/modules/dids/DidsApi.js +1 -1
- package/build/modules/dids/DidsApi.mjs +1 -1
- package/build/modules/dids/DidsApi.mjs.map +1 -1
- package/build/modules/dids/DidsModule.d.mts.map +1 -1
- package/build/modules/dids/DidsModule.d.ts.map +1 -1
- package/build/modules/dids/DidsModule.mjs.map +1 -1
- package/build/modules/dids/DidsModuleConfig.js +2 -2
- package/build/modules/dids/DidsModuleConfig.mjs +2 -2
- package/build/modules/dids/domain/DidDocument.d.mts +1 -1
- package/build/modules/dids/domain/DidDocument.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocument.js +6 -6
- package/build/modules/dids/domain/DidDocument.mjs +6 -6
- package/build/modules/dids/domain/DidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.mjs.map +1 -1
- package/build/modules/dids/domain/index.js +11 -11
- package/build/modules/dids/domain/index.mjs +11 -11
- package/build/modules/dids/domain/key-type/ed25519.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidJsonWebKey.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.js +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/x25519.js +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs.map +1 -1
- package/build/modules/dids/domain/keyDidDocument.js +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/parse.d.mts.map +1 -1
- package/build/modules/dids/domain/parse.d.ts.map +1 -1
- package/build/modules/dids/domain/parse.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidDocumentService.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/index.js +3 -3
- package/build/modules/dids/domain/verificationMethod/index.mjs +3 -3
- package/build/modules/dids/findMatchingEd25519Key.d.mts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.d.ts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.js +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs.map +1 -1
- package/build/modules/dids/helpers.mjs.map +1 -1
- package/build/modules/dids/index.js +15 -15
- package/build/modules/dids/index.mjs +15 -15
- package/build/modules/dids/methods/index.js +5 -5
- package/build/modules/dids/methods/index.mjs +5 -5
- package/build/modules/dids/methods/jwk/DidJwk.d.mts +1 -1
- package/build/modules/dids/methods/jwk/DidJwk.d.ts +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.js +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs.map +1 -1
- package/build/modules/dids/methods/key/DidKey.d.mts +1 -1
- package/build/modules/dids/methods/key/DidKey.d.ts +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.js +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.mjs.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs.map +1 -1
- package/build/modules/dids/methods/peer/index.js +1 -1
- package/build/modules/dids/methods/peer/index.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo0.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +7 -8
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs +4 -4
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.mjs.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRecord.js +1 -1
- package/build/modules/dids/repository/DidRecord.mjs +1 -1
- package/build/modules/dids/repository/DidRecord.mjs.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.mts +3 -3
- package/build/modules/dids/repository/DidRepository.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.ts +3 -3
- package/build/modules/dids/repository/DidRepository.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRepository.js +1 -1
- package/build/modules/dids/repository/DidRepository.mjs +1 -1
- package/build/modules/dids/repository/DidRepository.mjs.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.mts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.ts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.mjs.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.mts.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.ts.map +1 -1
- package/build/modules/dids/services/DidResolverService.js +1 -1
- package/build/modules/dids/services/DidResolverService.mjs +1 -1
- package/build/modules/dids/services/DidResolverService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.mts +3 -3
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +3 -3
- package/build/modules/dif-presentation-exchange/models/index.d.mts +4 -4
- package/build/modules/dif-presentation-exchange/models/index.d.ts +4 -4
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.mjs.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.mjs.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.mts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.ts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.mjs.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.mts +7 -7
- package/build/modules/kms/KeyManagementApi.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.ts +7 -7
- package/build/modules/kms/KeyManagementApi.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementApi.js +7 -7
- package/build/modules/kms/KeyManagementApi.mjs +7 -7
- package/build/modules/kms/KeyManagementApi.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.mts +2 -2
- package/build/modules/kms/KeyManagementModule.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.ts +2 -2
- package/build/modules/kms/KeyManagementModule.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModule.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.js +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs.map +1 -1
- package/build/modules/kms/KeyManagementService.d.mts +6 -6
- package/build/modules/kms/KeyManagementService.d.ts +6 -6
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.mts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.ts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.js +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs.map +1 -1
- package/build/modules/kms/index.d.mts +25 -25
- package/build/modules/kms/index.d.ts +25 -25
- package/build/modules/kms/index.js +10 -10
- package/build/modules/kms/index.mjs +10 -10
- package/build/modules/kms/index.mjs.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.mts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.ts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.js +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/index.js +1 -1
- package/build/modules/kms/jwk/alg/index.mjs +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.mjs.map +1 -1
- package/build/modules/kms/jwk/assertSupported.d.mts +2 -2
- package/build/modules/kms/jwk/assertSupported.d.ts +2 -2
- package/build/modules/kms/jwk/humanDescription.d.mts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.d.ts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.mjs.map +1 -1
- package/build/modules/kms/jwk/index.js +8 -8
- package/build/modules/kms/jwk/index.mjs +8 -8
- package/build/modules/kms/jwk/jwkThumbprint.js +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.mts.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.ts.map +1 -1
- package/build/modules/kms/jwk/keyOps.js +1 -1
- package/build/modules/kms/jwk/keyOps.mjs +1 -1
- package/build/modules/kms/jwk/keyOps.mjs.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.js +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.js +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/index.js +1 -1
- package/build/modules/kms/jwk/kty/index.mjs +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/okpPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/rsaPublicKey.mjs.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.mts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.ts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.js +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.mts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.ts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.js +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.js +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.js +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsOperation.d.mts +3 -3
- package/build/modules/kms/options/KmsOperation.d.ts +3 -3
- package/build/modules/kms/options/KmsOperation.mjs.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.mts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.ts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.js +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.mts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.ts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.js +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs.map +1 -1
- package/build/modules/mdoc/Mdoc.d.mts +1 -3
- package/build/modules/mdoc/Mdoc.d.mts.map +1 -1
- package/build/modules/mdoc/Mdoc.d.ts +1 -3
- package/build/modules/mdoc/Mdoc.d.ts.map +1 -1
- package/build/modules/mdoc/Mdoc.js +1 -7
- package/build/modules/mdoc/Mdoc.mjs +1 -7
- package/build/modules/mdoc/Mdoc.mjs.map +1 -1
- package/build/modules/mdoc/MdocApi.d.mts +1 -1
- package/build/modules/mdoc/MdocApi.d.mts.map +1 -1
- package/build/modules/mdoc/MdocApi.d.ts +1 -1
- package/build/modules/mdoc/MdocApi.d.ts.map +1 -1
- package/build/modules/mdoc/MdocApi.mjs.map +1 -1
- package/build/modules/mdoc/MdocContext.js +9 -11
- package/build/modules/mdoc/MdocContext.mjs +6 -7
- package/build/modules/mdoc/MdocContext.mjs.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.mjs.map +1 -1
- package/build/modules/mdoc/MdocModule.d.mts.map +1 -1
- package/build/modules/mdoc/MdocModule.d.ts.map +1 -1
- package/build/modules/mdoc/MdocModule.mjs.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.mts +4 -3
- package/build/modules/mdoc/MdocOptions.d.mts.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.ts +4 -3
- package/build/modules/mdoc/MdocOptions.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.d.mts +1 -1
- package/build/modules/mdoc/MdocService.d.mts.map +1 -1
- package/build/modules/mdoc/MdocService.d.ts +1 -2
- package/build/modules/mdoc/MdocService.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.mjs.map +1 -1
- package/build/modules/mdoc/index.d.mts +3 -3
- package/build/modules/mdoc/index.d.ts +3 -3
- package/build/modules/mdoc/repository/MdocRecord.d.mts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.mts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +40 -48
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs +41 -49
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/disclosureFrame.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/index.js +1 -1
- package/build/modules/sd-jwt-vc/index.mjs +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.ts +1 -1
- package/build/modules/sd-jwt-vc/utils.js +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.mts +2 -2
- package/build/modules/vc/W3cCredentialService.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.ts +2 -2
- package/build/modules/vc/W3cCredentialService.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialServiceOptions.d.mts +2 -2
- package/build/modules/vc/W3cCredentialServiceOptions.d.ts +2 -2
- package/build/modules/vc/W3cCredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialService.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialService.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialService.js +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialsModule.mjs.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs.map +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.mts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.ts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.js +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs.map +1 -1
- package/build/modules/vc/data-integrity/index.js +8 -8
- package/build/modules/vc/data-integrity/index.mjs +8 -8
- package/build/modules/vc/data-integrity/jsonldUtil.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.js +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/index.js +1 -1
- package/build/modules/vc/data-integrity/libraries/index.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.js +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/ProofTransformer.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/index.js +2 -2
- package/build/modules/vc/data-integrity/models/index.mjs +2 -2
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.mts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.mjs.map +1 -1
- package/build/modules/vc/index.js +14 -14
- package/build/modules/vc/index.mjs +14 -14
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/jwt-vc/credentialTransformer.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/index.js +1 -1
- package/build/modules/vc/jwt-vc/index.mjs +1 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.mts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.ts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.js +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.js +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.js +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Evidence.js +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Issuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2LocalizedValue.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/index.js +1 -1
- package/build/modules/vc/models/credential/index.mjs +1 -1
- package/build/modules/vc/models/index.js +1 -1
- package/build/modules/vc/models/index.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2Holder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.mts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.ts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.mjs.map +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.js +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.mts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.ts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.js +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/v2-jwt-utils.js +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs.map +1 -1
- package/build/modules/vc/validators.mjs.map +1 -1
- package/build/modules/x509/X509Api.d.mts +1 -1
- package/build/modules/x509/X509Api.d.ts +1 -1
- package/build/modules/x509/X509Api.js +1 -1
- package/build/modules/x509/X509Api.mjs +1 -1
- package/build/modules/x509/X509Certificate.d.mts +5 -5
- package/build/modules/x509/X509Certificate.d.mts.map +1 -1
- package/build/modules/x509/X509Certificate.d.ts +5 -5
- package/build/modules/x509/X509Certificate.d.ts.map +1 -1
- package/build/modules/x509/X509Certificate.js +4 -7
- package/build/modules/x509/X509Certificate.mjs +3 -6
- package/build/modules/x509/X509Certificate.mjs.map +1 -1
- package/build/modules/x509/X509Module.d.mts.map +1 -1
- package/build/modules/x509/X509Module.d.ts.map +1 -1
- package/build/modules/x509/X509Module.js +1 -1
- package/build/modules/x509/X509Module.mjs +1 -1
- package/build/modules/x509/X509Module.mjs.map +1 -1
- package/build/modules/x509/X509ModuleConfig.d.mts +2 -2
- package/build/modules/x509/X509ModuleConfig.d.ts +2 -2
- package/build/modules/x509/X509Service.d.mts +1 -1
- package/build/modules/x509/X509Service.d.mts.map +1 -1
- package/build/modules/x509/X509Service.d.ts +1 -1
- package/build/modules/x509/X509Service.d.ts.map +1 -1
- package/build/modules/x509/X509Service.js +4 -4
- package/build/modules/x509/X509Service.mjs +3 -3
- package/build/modules/x509/X509Service.mjs.map +1 -1
- package/build/modules/x509/extraction.d.mts +1 -1
- package/build/modules/x509/extraction.d.ts +1 -1
- package/build/modules/x509/index.js +3 -3
- package/build/modules/x509/index.mjs +3 -3
- package/build/modules/x509/utils/extensions.d.mts.map +1 -1
- package/build/modules/x509/utils/extensions.d.ts.map +1 -1
- package/build/modules/x509/utils/extensions.js +1 -1
- package/build/modules/x509/utils/extensions.mjs +1 -1
- package/build/modules/x509/utils/extensions.mjs.map +1 -1
- package/build/modules/x509/utils/index.js +1 -1
- package/build/modules/x509/utils/index.mjs +1 -1
- package/build/modules/x509/utils/nameConversion.d.mts.map +1 -1
- package/build/modules/x509/utils/nameConversion.d.ts.map +1 -1
- package/build/modules/x509/utils/nameConversion.mjs.map +1 -1
- package/build/plugins/DependencyManager.d.mts.map +1 -1
- package/build/plugins/DependencyManager.d.ts.map +1 -1
- package/build/plugins/DependencyManager.mjs.map +1 -1
- package/build/storage/BaseRecord.mjs.map +1 -1
- package/build/storage/Metadata.mjs.map +1 -1
- package/build/storage/Repository.d.mts.map +1 -1
- package/build/storage/Repository.d.ts.map +1 -1
- package/build/storage/Repository.js +1 -1
- package/build/storage/Repository.mjs +1 -1
- package/build/storage/Repository.mjs.map +1 -1
- package/build/storage/RepositoryEvents.mjs.map +1 -1
- package/build/storage/StorageService.d.mts +1 -1
- package/build/storage/StorageService.d.ts +1 -1
- package/build/storage/index.js +1 -1
- package/build/storage/index.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.d.mts.map +1 -1
- package/build/storage/migration/StorageUpdateService.d.ts.map +1 -1
- package/build/storage/migration/StorageUpdateService.js +1 -1
- package/build/storage/migration/StorageUpdateService.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.mjs.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts.map +1 -1
- package/build/storage/migration/UpdateAssistant.js +1 -1
- package/build/storage/migration/UpdateAssistant.mjs +1 -1
- package/build/storage/migration/UpdateAssistant.mjs.map +1 -1
- package/build/storage/migration/index.js +1 -1
- package/build/storage/migration/index.mjs +1 -1
- package/build/storage/migration/isUpToDate.d.mts.map +1 -1
- package/build/storage/migration/isUpToDate.d.ts.map +1 -1
- package/build/storage/migration/isUpToDate.js +1 -1
- package/build/storage/migration/isUpToDate.mjs +1 -1
- package/build/storage/migration/isUpToDate.mjs.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/cache.mjs.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.mjs.map +1 -1
- package/build/storage/migration/updates.d.mts +1 -1
- package/build/storage/migration/updates.d.mts.map +1 -1
- package/build/storage/migration/updates.d.ts +1 -1
- package/build/storage/migration/updates.d.ts.map +1 -1
- package/build/storage/migration/updates.js +4 -4
- package/build/storage/migration/updates.mjs +1 -1
- package/build/storage/migration/updates.mjs.map +1 -1
- package/build/types.d.mts +12 -1
- package/build/types.d.mts.map +1 -1
- package/build/types.d.ts +12 -1
- package/build/types.d.ts.map +1 -1
- package/build/types.mjs.map +1 -1
- package/build/utils/HashlinkEncoder.d.mts +1 -1
- package/build/utils/HashlinkEncoder.d.mts.map +1 -1
- package/build/utils/HashlinkEncoder.d.ts +1 -1
- package/build/utils/HashlinkEncoder.d.ts.map +1 -1
- package/build/utils/HashlinkEncoder.mjs.map +1 -1
- package/build/utils/JsonEncoder.d.mts +3 -2
- package/build/utils/JsonEncoder.d.mts.map +1 -1
- package/build/utils/JsonEncoder.d.ts +3 -2
- package/build/utils/JsonEncoder.d.ts.map +1 -1
- package/build/utils/JsonEncoder.js +8 -8
- package/build/utils/JsonEncoder.mjs +4 -3
- package/build/utils/JsonEncoder.mjs.map +1 -1
- package/build/utils/JsonTransformer.mjs.map +1 -1
- package/build/utils/MessageValidator.mjs.map +1 -1
- package/build/utils/MultiBaseEncoder.d.mts +4 -2
- package/build/utils/MultiBaseEncoder.d.mts.map +1 -1
- package/build/utils/MultiBaseEncoder.d.ts +4 -2
- package/build/utils/MultiBaseEncoder.d.ts.map +1 -1
- package/build/utils/MultiBaseEncoder.mjs.map +1 -1
- package/build/utils/MultiHashEncoder.d.mts +5 -5
- package/build/utils/MultiHashEncoder.d.mts.map +1 -1
- package/build/utils/MultiHashEncoder.d.ts +5 -5
- package/build/utils/MultiHashEncoder.d.ts.map +1 -1
- package/build/utils/MultiHashEncoder.js +5 -7
- package/build/utils/MultiHashEncoder.mjs +5 -4
- package/build/utils/MultiHashEncoder.mjs.map +1 -1
- package/build/utils/TypedArrayEncoder.d.mts +12 -9
- package/build/utils/TypedArrayEncoder.d.mts.map +1 -1
- package/build/utils/TypedArrayEncoder.d.ts +12 -9
- package/build/utils/TypedArrayEncoder.d.ts.map +1 -1
- package/build/utils/TypedArrayEncoder.js +22 -17
- package/build/utils/TypedArrayEncoder.mjs +7 -1
- package/build/utils/TypedArrayEncoder.mjs.map +1 -1
- package/build/utils/VarintEncoder.js +1 -4
- package/build/utils/VarintEncoder.mjs +1 -2
- package/build/utils/VarintEncoder.mjs.map +1 -1
- package/build/utils/base58.mjs.map +1 -1
- package/build/utils/buffer.d.mts +1 -1
- package/build/utils/buffer.d.ts +1 -1
- package/build/utils/buffer.mjs +1 -1
- package/build/utils/deepEquality.mjs.map +1 -1
- package/build/utils/index.js +10 -11
- package/build/utils/index.mjs +9 -9
- package/build/utils/objectEquality.mjs.map +1 -1
- package/build/utils/timestamp.d.mts +10 -2
- package/build/utils/timestamp.d.mts.map +1 -1
- package/build/utils/timestamp.d.ts +10 -2
- package/build/utils/timestamp.d.ts.map +1 -1
- package/build/utils/timestamp.js +9 -1
- package/build/utils/timestamp.mjs +8 -2
- package/build/utils/timestamp.mjs.map +1 -1
- package/build/utils/transformers.d.mts.map +1 -1
- package/build/utils/transformers.d.ts.map +1 -1
- package/build/utils/transformers.mjs.map +1 -1
- package/build/utils/validators.d.mts.map +1 -1
- package/build/utils/validators.d.ts.map +1 -1
- package/build/utils/validators.mjs.map +1 -1
- package/build/utils/zod.js +2 -0
- package/build/utils/zod.mjs +2 -1
- package/build/utils/zod.mjs.map +1 -1
- package/package.json +25 -25
- package/build/utils/buffer.js +0 -5
|
@@ -13,16 +13,16 @@ const require_X25519PublicJwk = require('../../kms/jwk/kty/okp/X25519PublicJwk.j
|
|
|
13
13
|
const require_Ed25519PublicJwk = require('../../kms/jwk/kty/okp/Ed25519PublicJwk.js');
|
|
14
14
|
const require_PublicJwk = require('../../kms/jwk/PublicJwk.js');
|
|
15
15
|
require('../../kms/index.js');
|
|
16
|
-
const require_DidCommV1Service = require('./service/DidCommV1Service.js');
|
|
17
|
-
const require_IndyAgentService = require('./service/IndyAgentService.js');
|
|
18
|
-
const require_ServiceTransformer = require('./service/ServiceTransformer.js');
|
|
19
|
-
require('./service/index.js');
|
|
20
16
|
const require_VerificationMethod = require('./verificationMethod/VerificationMethod.js');
|
|
21
17
|
const require_VerificationMethodTransformer = require('./verificationMethod/VerificationMethodTransformer.js');
|
|
22
18
|
require('./verificationMethod/index.js');
|
|
23
19
|
const require_keyDidMapping = require('./key-type/keyDidMapping.js');
|
|
24
20
|
const require_findMatchingEd25519Key = require('../findMatchingEd25519Key.js');
|
|
25
21
|
require('./key-type/index.js');
|
|
22
|
+
const require_DidCommV1Service = require('./service/DidCommV1Service.js');
|
|
23
|
+
const require_IndyAgentService = require('./service/IndyAgentService.js');
|
|
24
|
+
const require_ServiceTransformer = require('./service/ServiceTransformer.js');
|
|
25
|
+
require('./service/index.js');
|
|
26
26
|
let class_transformer = require("class-transformer");
|
|
27
27
|
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
28
28
|
let class_validator = require("class-validator");
|
|
@@ -233,7 +233,7 @@ require_decorate.__decorate([
|
|
|
233
233
|
* @returns verification method
|
|
234
234
|
*/
|
|
235
235
|
async function findVerificationMethodByKeyType(keyType, didDocument) {
|
|
236
|
-
for
|
|
236
|
+
for (const purpose of [
|
|
237
237
|
"verificationMethod",
|
|
238
238
|
"authentication",
|
|
239
239
|
"keyAgreement",
|
|
@@ -243,7 +243,7 @@ async function findVerificationMethodByKeyType(keyType, didDocument) {
|
|
|
243
243
|
]) {
|
|
244
244
|
const key = didDocument[purpose];
|
|
245
245
|
if (Array.isArray(key)) {
|
|
246
|
-
for
|
|
246
|
+
for (const method of key) if (typeof method !== "string") {
|
|
247
247
|
if (method.type === keyType) return method;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -12,16 +12,16 @@ import { X25519PublicJwk } from "../../kms/jwk/kty/okp/X25519PublicJwk.mjs";
|
|
|
12
12
|
import { Ed25519PublicJwk } from "../../kms/jwk/kty/okp/Ed25519PublicJwk.mjs";
|
|
13
13
|
import { PublicJwk } from "../../kms/jwk/PublicJwk.mjs";
|
|
14
14
|
import "../../kms/index.mjs";
|
|
15
|
-
import { DidCommV1Service } from "./service/DidCommV1Service.mjs";
|
|
16
|
-
import { IndyAgentService } from "./service/IndyAgentService.mjs";
|
|
17
|
-
import { ServiceTransformer } from "./service/ServiceTransformer.mjs";
|
|
18
|
-
import "./service/index.mjs";
|
|
19
15
|
import { VerificationMethod } from "./verificationMethod/VerificationMethod.mjs";
|
|
20
16
|
import { IsStringOrVerificationMethod, VerificationMethodTransformer } from "./verificationMethod/VerificationMethodTransformer.mjs";
|
|
21
17
|
import "./verificationMethod/index.mjs";
|
|
22
18
|
import { getPublicJwkFromVerificationMethod } from "./key-type/keyDidMapping.mjs";
|
|
23
19
|
import { findMatchingEd25519Key } from "../findMatchingEd25519Key.mjs";
|
|
24
20
|
import "./key-type/index.mjs";
|
|
21
|
+
import { DidCommV1Service } from "./service/DidCommV1Service.mjs";
|
|
22
|
+
import { IndyAgentService } from "./service/IndyAgentService.mjs";
|
|
23
|
+
import { ServiceTransformer } from "./service/ServiceTransformer.mjs";
|
|
24
|
+
import "./service/index.mjs";
|
|
25
25
|
import { Expose, Type } from "class-transformer";
|
|
26
26
|
import { IsArray, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
27
27
|
|
|
@@ -230,7 +230,7 @@ __decorate([
|
|
|
230
230
|
* @returns verification method
|
|
231
231
|
*/
|
|
232
232
|
async function findVerificationMethodByKeyType(keyType, didDocument) {
|
|
233
|
-
for
|
|
233
|
+
for (const purpose of [
|
|
234
234
|
"verificationMethod",
|
|
235
235
|
"authentication",
|
|
236
236
|
"keyAgreement",
|
|
@@ -240,7 +240,7 @@ async function findVerificationMethodByKeyType(keyType, didDocument) {
|
|
|
240
240
|
]) {
|
|
241
241
|
const key = didDocument[purpose];
|
|
242
242
|
if (Array.isArray(key)) {
|
|
243
|
-
for
|
|
243
|
+
for (const method of key) if (typeof method !== "string") {
|
|
244
244
|
if (method.type === keyType) return method;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidDocument.mjs","names":["recipientKeys: Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<Ed25519PublicJwk | X25519PublicJwk>\n }>","seenVerificationMethodIds: string[]","key: VerificationMethod[] | (string | VerificationMethod)[] | undefined"],"sources":["../../../../src/modules/dids/domain/DidDocument.ts"],"sourcesContent":["import type { DidDocumentService } from './service'\n\nimport { Expose, Type } from 'class-transformer'\nimport { IsArray, IsOptional, IsString, ValidateNested } from 'class-validator'\nimport { CredoError } from '../../../error'\nimport { JsonTransformer } from '../../../utils/JsonTransformer'\nimport { IsStringOrStringArray } from '../../../utils/transformers'\n\nimport { TypedArrayEncoder } from '../../../utils'\nimport { Ed25519PublicJwk, PublicJwk, X25519PublicJwk } from '../../kms'\nimport { findMatchingEd25519Key } from '../findMatchingEd25519Key'\nimport { getPublicJwkFromVerificationMethod } from './key-type'\nimport { DidCommV1Service, IndyAgentService } from './service'\nimport { ServiceTransformer } from './service/ServiceTransformer'\nimport { IsStringOrVerificationMethod, VerificationMethod, VerificationMethodTransformer } from './verificationMethod'\n\nexport type DidPurpose =\n | 'authentication'\n | 'keyAgreement'\n | 'assertionMethod'\n | 'capabilityInvocation'\n | 'capabilityDelegation'\n\ntype DidVerificationMethods = DidPurpose | 'verificationMethod'\n\ninterface DidDocumentOptions {\n context?: string | string[]\n id: string\n alsoKnownAs?: string[]\n controller?: string | string[]\n verificationMethod?: VerificationMethod[]\n service?: DidDocumentService[]\n authentication?: Array<string | VerificationMethod>\n assertionMethod?: Array<string | VerificationMethod>\n keyAgreement?: Array<string | VerificationMethod>\n capabilityInvocation?: Array<string | VerificationMethod>\n capabilityDelegation?: Array<string | VerificationMethod>\n}\n\nexport class DidDocument {\n @Expose({ name: '@context' })\n @IsStringOrStringArray()\n public context: string | string[] = ['https://www.w3.org/ns/did/v1']\n\n @IsString()\n public id!: string\n\n @IsArray()\n @IsString({ each: true })\n @IsOptional()\n public alsoKnownAs?: string[]\n\n @IsStringOrStringArray()\n @IsOptional()\n public controller?: string | string[]\n\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => VerificationMethod)\n @IsOptional()\n public verificationMethod?: VerificationMethod[]\n\n @IsArray()\n @ServiceTransformer()\n @IsOptional()\n public service?: DidDocumentService[]\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public authentication?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public assertionMethod?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public keyAgreement?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public capabilityInvocation?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public capabilityDelegation?: Array<string | VerificationMethod>\n\n public constructor(options: DidDocumentOptions) {\n if (options) {\n this.context = options.context ?? this.context\n this.id = options.id\n this.alsoKnownAs = options.alsoKnownAs\n this.controller = options.controller\n this.verificationMethod = options.verificationMethod\n this.service = options.service\n this.authentication = options.authentication\n this.assertionMethod = options.assertionMethod\n this.keyAgreement = options.keyAgreement\n this.capabilityInvocation = options.capabilityInvocation\n this.capabilityDelegation = options.capabilityDelegation\n }\n }\n\n public dereferenceVerificationMethod(keyId: string) {\n // TODO: once we use JSON-LD we should use that to resolve references in did documents.\n // for now we check whether the key id ends with the keyId.\n // so if looking for #123 and key.id is did:key:123#123, it is valid. But #123 as key.id is also valid\n const verificationMethod = this.verificationMethod?.find((key) => key.id.endsWith(keyId))\n\n if (!verificationMethod) {\n throw new CredoError(`Unable to locate verification method with id '${keyId}'`)\n }\n\n return verificationMethod\n }\n\n public dereferenceKey(keyId: string, allowedPurposes?: DidVerificationMethods[]) {\n const allPurposes: DidVerificationMethods[] = [\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n 'verificationMethod',\n ]\n\n const purposes = allowedPurposes ?? allPurposes\n\n for (const purpose of purposes) {\n for (const key of this[purpose] ?? []) {\n if (typeof key === 'string' && key.endsWith(keyId)) {\n return this.dereferenceVerificationMethod(key)\n }\n if (typeof key !== 'string' && key.id.endsWith(keyId)) {\n return key\n }\n }\n }\n\n throw new CredoError(`Unable to locate verification method with id '${keyId}' in purposes ${purposes}`)\n }\n\n public findVerificationMethodByPublicKey(publicJwk: PublicJwk, allowedPurposes?: DidVerificationMethods[]) {\n const allPurposes: DidVerificationMethods[] = [\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n 'verificationMethod',\n ]\n\n const purposes = allowedPurposes ?? allPurposes\n\n for (const purpose of purposes) {\n for (const key of this[purpose] ?? []) {\n const verificationMethod = typeof key === 'string' ? this.dereferenceVerificationMethod(key) : key\n if (getPublicJwkFromVerificationMethod(verificationMethod).equals(publicJwk)) return verificationMethod\n }\n }\n\n throw new CredoError(\n `Unable to locate verification method with public key ${publicJwk.jwkTypehumanDescription} in purposes ${purposes}`\n )\n }\n\n /**\n * Returns all of the service endpoints matching the given type.\n *\n * @param type The type of service(s) to query.\n */\n public getServicesByType<S extends DidDocumentService = DidDocumentService>(type: string): S[] {\n return (this.service?.filter((service) => service.type === type) ?? []) as S[]\n }\n\n /**\n * Returns all of the service endpoints matching the given class\n *\n * @param classType The class to query services.\n */\n public getServicesByClassType<S extends DidDocumentService = DidDocumentService>(\n classType: new (...args: never[]) => S\n ): S[] {\n return (this.service?.filter((service) => service instanceof classType) ?? []) as S[]\n }\n\n /**\n * Get all DIDComm services ordered by priority descending. This means the highest\n * priority will be the first entry.\n */\n public get didCommServices(): Array<IndyAgentService | DidCommV1Service> {\n const didCommServiceTypes = [IndyAgentService.type, DidCommV1Service.type]\n const services = (this.service?.filter((service) => didCommServiceTypes.includes(service.type)) ?? []) as Array<\n IndyAgentService | DidCommV1Service\n >\n\n // Sort services based on indicated priority\n return services.sort((a, b) => a.priority - b.priority)\n }\n\n // TODO: it would probably be easier if we add a utility to each service so we don't have to handle logic for all service types here\n public get recipientKeys(): PublicJwk<Ed25519PublicJwk | X25519PublicJwk>[] {\n return this.getRecipientKeysWithVerificationMethod({\n // False for now to avoid breaking changes\n mapX25519ToEd25519: false,\n }).map(({ publicJwk }) => publicJwk)\n }\n\n /**\n * Returns the recipient keys with their verification method matches\n *\n * We should probably deprecate recipientKeys in favour of this one\n */\n public getRecipientKeysWithVerificationMethod<MapX25519ToEd25519 extends boolean>({\n mapX25519ToEd25519,\n }: { mapX25519ToEd25519: MapX25519ToEd25519 }): Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<MapX25519ToEd25519 extends true ? Ed25519PublicJwk : Ed25519PublicJwk | X25519PublicJwk>\n }> {\n const recipientKeys: Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<Ed25519PublicJwk | X25519PublicJwk>\n }> = []\n\n const seenVerificationMethodIds: string[] = []\n for (const service of this.didCommServices) {\n if (service.type === IndyAgentService.type) {\n for (const publicKeyBase58 of service.recipientKeys) {\n const publicJwk = PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(publicKeyBase58),\n })\n const verificationMethod = [...(this.verificationMethod ?? []), ...(this.authentication ?? [])]\n .map((v) => (typeof v === 'string' ? this.dereferenceVerificationMethod(v) : v))\n .find((v) => {\n const vPublicJwk = getPublicJwkFromVerificationMethod(v)\n return vPublicJwk.equals(publicJwk)\n })\n\n if (!verificationMethod) {\n throw new CredoError('Could not find verification method for IndyAgentService recipient key')\n }\n\n // Skip adding if already present\n if (seenVerificationMethodIds.includes(verificationMethod.id)) {\n continue\n }\n\n recipientKeys.push({\n publicJwk,\n verificationMethod,\n })\n }\n } else if (service.type === DidCommV1Service.type) {\n for (const recipientKey of service.recipientKeys) {\n const verificationMethod = this.dereferenceKey(recipientKey, ['authentication', 'keyAgreement'])\n if (seenVerificationMethodIds.includes(verificationMethod.id)) {\n // Skip adding if already present\n continue\n }\n\n const publicJwk = getPublicJwkFromVerificationMethod(verificationMethod)\n\n if (!publicJwk.is(Ed25519PublicJwk, X25519PublicJwk)) {\n throw new CredoError(\n 'Expected either Ed25519PublicJwk or X25519PublicJwk for DidcommV1Service recipient key'\n )\n }\n\n recipientKeys.push({\n publicJwk,\n verificationMethod,\n })\n }\n }\n }\n\n if (!mapX25519ToEd25519) {\n return recipientKeys as Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<MapX25519ToEd25519 extends true ? Ed25519PublicJwk : Ed25519PublicJwk | X25519PublicJwk>\n }>\n }\n\n return recipientKeys.map(({ publicJwk, verificationMethod }) => {\n if (publicJwk.is(Ed25519PublicJwk)) return { publicJwk, verificationMethod }\n\n const matchingEd25519Key = findMatchingEd25519Key(publicJwk as PublicJwk<X25519PublicJwk>, this)\n\n // For DIDcomm v1 if you use X25519 you MUST also include the Ed25519 key\n if (!matchingEd25519Key) {\n throw new CredoError(\n `Unable to find matching Ed25519 key for X25519 verification method with id ${verificationMethod.id}`\n )\n }\n\n return matchingEd25519Key\n })\n }\n\n public toJSON() {\n return JsonTransformer.toJSON(this)\n }\n\n public static fromJSON(didDocument: unknown) {\n return JsonTransformer.fromJSON(didDocument, DidDocument)\n }\n}\n\n/**\n * Extracting the verification method for signature type\n * @param type Signature type\n * @param didDocument DidDocument\n * @returns verification method\n */\nexport async function findVerificationMethodByKeyType(\n keyType: string,\n didDocument: DidDocument\n): Promise<VerificationMethod | null> {\n const didVerificationMethods: DidVerificationMethods[] = [\n 'verificationMethod',\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n ]\n for await (const purpose of didVerificationMethods) {\n const key: VerificationMethod[] | (string | VerificationMethod)[] | undefined = didDocument[purpose]\n if (Array.isArray(key)) {\n for await (const method of key) {\n if (typeof method !== 'string') {\n if (method.type === keyType) {\n return method\n }\n }\n }\n }\n }\n\n return null\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"DidDocument.mjs","names":["recipientKeys: Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<Ed25519PublicJwk | X25519PublicJwk>\n }>","seenVerificationMethodIds: string[]","key: VerificationMethod[] | (string | VerificationMethod)[] | undefined"],"sources":["../../../../src/modules/dids/domain/DidDocument.ts"],"sourcesContent":["import { Expose, Type } from 'class-transformer'\nimport { IsArray, IsOptional, IsString, ValidateNested } from 'class-validator'\nimport { CredoError } from '../../../error'\nimport { TypedArrayEncoder } from '../../../utils'\nimport { JsonTransformer } from '../../../utils/JsonTransformer'\nimport { IsStringOrStringArray } from '../../../utils/transformers'\nimport { Ed25519PublicJwk, PublicJwk, X25519PublicJwk } from '../../kms'\nimport { findMatchingEd25519Key } from '../findMatchingEd25519Key'\nimport { getPublicJwkFromVerificationMethod } from './key-type'\nimport type { DidDocumentService } from './service'\nimport { DidCommV1Service, IndyAgentService } from './service'\nimport { ServiceTransformer } from './service/ServiceTransformer'\nimport { IsStringOrVerificationMethod, VerificationMethod, VerificationMethodTransformer } from './verificationMethod'\n\nexport type DidPurpose =\n | 'authentication'\n | 'keyAgreement'\n | 'assertionMethod'\n | 'capabilityInvocation'\n | 'capabilityDelegation'\n\ntype DidVerificationMethods = DidPurpose | 'verificationMethod'\n\ninterface DidDocumentOptions {\n context?: string | string[]\n id: string\n alsoKnownAs?: string[]\n controller?: string | string[]\n verificationMethod?: VerificationMethod[]\n service?: DidDocumentService[]\n authentication?: Array<string | VerificationMethod>\n assertionMethod?: Array<string | VerificationMethod>\n keyAgreement?: Array<string | VerificationMethod>\n capabilityInvocation?: Array<string | VerificationMethod>\n capabilityDelegation?: Array<string | VerificationMethod>\n}\n\nexport class DidDocument {\n @Expose({ name: '@context' })\n @IsStringOrStringArray()\n public context: string | string[] = ['https://www.w3.org/ns/did/v1']\n\n @IsString()\n public id!: string\n\n @IsArray()\n @IsString({ each: true })\n @IsOptional()\n public alsoKnownAs?: string[]\n\n @IsStringOrStringArray()\n @IsOptional()\n public controller?: string | string[]\n\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => VerificationMethod)\n @IsOptional()\n public verificationMethod?: VerificationMethod[]\n\n @IsArray()\n @ServiceTransformer()\n @IsOptional()\n public service?: DidDocumentService[]\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public authentication?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public assertionMethod?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public keyAgreement?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public capabilityInvocation?: Array<string | VerificationMethod>\n\n @IsArray()\n @VerificationMethodTransformer()\n @IsStringOrVerificationMethod({ each: true })\n @IsOptional()\n public capabilityDelegation?: Array<string | VerificationMethod>\n\n public constructor(options: DidDocumentOptions) {\n if (options) {\n this.context = options.context ?? this.context\n this.id = options.id\n this.alsoKnownAs = options.alsoKnownAs\n this.controller = options.controller\n this.verificationMethod = options.verificationMethod\n this.service = options.service\n this.authentication = options.authentication\n this.assertionMethod = options.assertionMethod\n this.keyAgreement = options.keyAgreement\n this.capabilityInvocation = options.capabilityInvocation\n this.capabilityDelegation = options.capabilityDelegation\n }\n }\n\n public dereferenceVerificationMethod(keyId: string) {\n // TODO: once we use JSON-LD we should use that to resolve references in did documents.\n // for now we check whether the key id ends with the keyId.\n // so if looking for #123 and key.id is did:key:123#123, it is valid. But #123 as key.id is also valid\n const verificationMethod = this.verificationMethod?.find((key) => key.id.endsWith(keyId))\n\n if (!verificationMethod) {\n throw new CredoError(`Unable to locate verification method with id '${keyId}'`)\n }\n\n return verificationMethod\n }\n\n public dereferenceKey(keyId: string, allowedPurposes?: DidVerificationMethods[]) {\n const allPurposes: DidVerificationMethods[] = [\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n 'verificationMethod',\n ]\n\n const purposes = allowedPurposes ?? allPurposes\n\n for (const purpose of purposes) {\n for (const key of this[purpose] ?? []) {\n if (typeof key === 'string' && key.endsWith(keyId)) {\n return this.dereferenceVerificationMethod(key)\n }\n if (typeof key !== 'string' && key.id.endsWith(keyId)) {\n return key\n }\n }\n }\n\n throw new CredoError(`Unable to locate verification method with id '${keyId}' in purposes ${purposes}`)\n }\n\n public findVerificationMethodByPublicKey(publicJwk: PublicJwk, allowedPurposes?: DidVerificationMethods[]) {\n const allPurposes: DidVerificationMethods[] = [\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n 'verificationMethod',\n ]\n\n const purposes = allowedPurposes ?? allPurposes\n\n for (const purpose of purposes) {\n for (const key of this[purpose] ?? []) {\n const verificationMethod = typeof key === 'string' ? this.dereferenceVerificationMethod(key) : key\n if (getPublicJwkFromVerificationMethod(verificationMethod).equals(publicJwk)) return verificationMethod\n }\n }\n\n throw new CredoError(\n `Unable to locate verification method with public key ${publicJwk.jwkTypehumanDescription} in purposes ${purposes}`\n )\n }\n\n /**\n * Returns all of the service endpoints matching the given type.\n *\n * @param type The type of service(s) to query.\n */\n public getServicesByType<S extends DidDocumentService = DidDocumentService>(type: string): S[] {\n return (this.service?.filter((service) => service.type === type) ?? []) as S[]\n }\n\n /**\n * Returns all of the service endpoints matching the given class\n *\n * @param classType The class to query services.\n */\n public getServicesByClassType<S extends DidDocumentService = DidDocumentService>(\n classType: new (...args: never[]) => S\n ): S[] {\n return (this.service?.filter((service) => service instanceof classType) ?? []) as S[]\n }\n\n /**\n * Get all DIDComm services ordered by priority descending. This means the highest\n * priority will be the first entry.\n */\n public get didCommServices(): Array<IndyAgentService | DidCommV1Service> {\n const didCommServiceTypes = [IndyAgentService.type, DidCommV1Service.type]\n const services = (this.service?.filter((service) => didCommServiceTypes.includes(service.type)) ?? []) as Array<\n IndyAgentService | DidCommV1Service\n >\n\n // Sort services based on indicated priority\n return services.sort((a, b) => a.priority - b.priority)\n }\n\n // TODO: it would probably be easier if we add a utility to each service so we don't have to handle logic for all service types here\n public get recipientKeys(): PublicJwk<Ed25519PublicJwk | X25519PublicJwk>[] {\n return this.getRecipientKeysWithVerificationMethod({\n // False for now to avoid breaking changes\n mapX25519ToEd25519: false,\n }).map(({ publicJwk }) => publicJwk)\n }\n\n /**\n * Returns the recipient keys with their verification method matches\n *\n * We should probably deprecate recipientKeys in favour of this one\n */\n public getRecipientKeysWithVerificationMethod<MapX25519ToEd25519 extends boolean>({\n mapX25519ToEd25519,\n }: {\n mapX25519ToEd25519: MapX25519ToEd25519\n }): Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<MapX25519ToEd25519 extends true ? Ed25519PublicJwk : Ed25519PublicJwk | X25519PublicJwk>\n }> {\n const recipientKeys: Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<Ed25519PublicJwk | X25519PublicJwk>\n }> = []\n\n const seenVerificationMethodIds: string[] = []\n for (const service of this.didCommServices) {\n if (service.type === IndyAgentService.type) {\n for (const publicKeyBase58 of service.recipientKeys) {\n const publicJwk = PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(publicKeyBase58),\n })\n const verificationMethod = [...(this.verificationMethod ?? []), ...(this.authentication ?? [])]\n .map((v) => (typeof v === 'string' ? this.dereferenceVerificationMethod(v) : v))\n .find((v) => {\n const vPublicJwk = getPublicJwkFromVerificationMethod(v)\n return vPublicJwk.equals(publicJwk)\n })\n\n if (!verificationMethod) {\n throw new CredoError('Could not find verification method for IndyAgentService recipient key')\n }\n\n // Skip adding if already present\n if (seenVerificationMethodIds.includes(verificationMethod.id)) {\n continue\n }\n\n recipientKeys.push({\n publicJwk,\n verificationMethod,\n })\n }\n } else if (service.type === DidCommV1Service.type) {\n for (const recipientKey of service.recipientKeys) {\n const verificationMethod = this.dereferenceKey(recipientKey, ['authentication', 'keyAgreement'])\n if (seenVerificationMethodIds.includes(verificationMethod.id)) {\n // Skip adding if already present\n continue\n }\n\n const publicJwk = getPublicJwkFromVerificationMethod(verificationMethod)\n\n if (!publicJwk.is(Ed25519PublicJwk, X25519PublicJwk)) {\n throw new CredoError(\n 'Expected either Ed25519PublicJwk or X25519PublicJwk for DidcommV1Service recipient key'\n )\n }\n\n recipientKeys.push({\n publicJwk,\n verificationMethod,\n })\n }\n }\n }\n\n if (!mapX25519ToEd25519) {\n return recipientKeys as Array<{\n verificationMethod: VerificationMethod\n publicJwk: PublicJwk<MapX25519ToEd25519 extends true ? Ed25519PublicJwk : Ed25519PublicJwk | X25519PublicJwk>\n }>\n }\n\n return recipientKeys.map(({ publicJwk, verificationMethod }) => {\n if (publicJwk.is(Ed25519PublicJwk)) return { publicJwk, verificationMethod }\n\n const matchingEd25519Key = findMatchingEd25519Key(publicJwk as PublicJwk<X25519PublicJwk>, this)\n\n // For DIDcomm v1 if you use X25519 you MUST also include the Ed25519 key\n if (!matchingEd25519Key) {\n throw new CredoError(\n `Unable to find matching Ed25519 key for X25519 verification method with id ${verificationMethod.id}`\n )\n }\n\n return matchingEd25519Key\n })\n }\n\n public toJSON() {\n return JsonTransformer.toJSON(this)\n }\n\n public static fromJSON(didDocument: unknown) {\n return JsonTransformer.fromJSON(didDocument, DidDocument)\n }\n}\n\n/**\n * Extracting the verification method for signature type\n * @param type Signature type\n * @param didDocument DidDocument\n * @returns verification method\n */\nexport async function findVerificationMethodByKeyType(\n keyType: string,\n didDocument: DidDocument\n): Promise<VerificationMethod | null> {\n const didVerificationMethods: DidVerificationMethods[] = [\n 'verificationMethod',\n 'authentication',\n 'keyAgreement',\n 'assertionMethod',\n 'capabilityInvocation',\n 'capabilityDelegation',\n ]\n for (const purpose of didVerificationMethods) {\n const key: VerificationMethod[] | (string | VerificationMethod)[] | undefined = didDocument[purpose]\n if (Array.isArray(key)) {\n for (const method of key) {\n if (typeof method !== 'string') {\n if (method.type === keyType) {\n return method\n }\n }\n }\n }\n }\n\n return null\n}\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidDocumentBuilder.d.mts","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DidDocumentBuilder.d.mts","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,kBAAA;;;;EAAA,aAAA,CAAA,UAAkB,EAAA,MAAA,CAAA,EAAA,IAAA;EAAA,UAAA,CAAA,OAAA,EAyBF,kBAzBE,CAAA,EAAA,IAAA;uBAyBF,CAAA,kBAAA,EAUsB,kBAVtB,CAAA,EAAA,IAAA;mBAUsB,CAAA,cAAA,EAAA,MAAA,GAYC,kBAZD,CAAA,EAAA,IAAA;oBAYC,CAAA,eAAA,EAAA,MAAA,GAeE,kBAfF,CAAA,EAAA,IAAA;yBAeE,CAAA,oBAAA,EAAA,MAAA,GAeU,kBAfV,CAAA,EAAA,IAAA;yBAeU,CAAA,oBAAA,EAAA,MAAA,GAcA,kBAdA,CAAA,EAAA,IAAA;iBAcA,CAAA,YAAA,EAAA,MAAA,GAehB,kBAfgB,CAAA,EAAA,IAAA;OAehB,CAAA,CAAA,EAe9B,WAf8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidDocumentBuilder.d.ts","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DidDocumentBuilder.d.ts","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,kBAAA;;EAAA,WAAA,CAAA,EAAA,EAAA,MAAkB;EAAA,UAAA,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,IAAA;eAyBF,CAAA,UAAA,EAAA,MAAA,CAAA,EAAA,IAAA;YAUsB,CAAA,OAAA,EAVtB,kBAUsB,CAAA,EAAA,IAAA;uBAYC,CAAA,kBAAA,EAZD,kBAYC,CAAA,EAAA,IAAA;mBAeE,CAAA,cAAA,EAAA,MAAA,GAfF,kBAeE,CAAA,EAAA,IAAA;oBAeU,CAAA,eAAA,EAAA,MAAA,GAfV,kBAeU,CAAA,EAAA,IAAA;yBAcA,CAAA,oBAAA,EAAA,MAAA,GAdA,kBAcA,CAAA,EAAA,IAAA;yBAehB,CAAA,oBAAA,EAAA,MAAA,GAfgB,kBAehB,CAAA,EAAA,IAAA;iBAe9B,CAAA,YAAA,EAAA,MAAA,GAf8B,kBAe9B,CAAA,EAAA,IAAA;EAAW,KAAA,CAAA,CAAA,EAAX,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidDocumentBuilder.mjs","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"DidDocumentBuilder.mjs","names":[],"sources":["../../../../src/modules/dids/domain/DidDocumentBuilder.ts"],"sourcesContent":["import { asArray } from '../../../utils'\nimport { DidDocument } from './DidDocument'\nimport type { DidDocumentService } from './service'\nimport { VerificationMethod } from './verificationMethod'\n\nexport class DidDocumentBuilder {\n private didDocument: DidDocument\n\n public constructor(id: string) {\n this.didDocument = new DidDocument({\n id,\n })\n }\n\n public addContext(context: string) {\n const currentContexts = asArray(this.didDocument.context)\n if (currentContexts.includes(context)) return this\n\n this.didDocument.context = [...currentContexts, context]\n return this\n }\n\n public addController(controller: string) {\n const currentControllers = asArray(this.didDocument.controller)\n if (currentControllers.includes(controller)) return this\n\n this.didDocument.controller = [...currentControllers, controller]\n return this\n }\n\n public addService(service: DidDocumentService) {\n if (!this.didDocument.service) {\n this.didDocument.service = []\n }\n\n this.didDocument.service.push(service)\n\n return this\n }\n\n public addVerificationMethod(verificationMethod: VerificationMethod) {\n if (!this.didDocument.verificationMethod) {\n this.didDocument.verificationMethod = []\n }\n\n this.didDocument.verificationMethod.push(\n verificationMethod instanceof VerificationMethod ? verificationMethod : new VerificationMethod(verificationMethod)\n )\n\n return this\n }\n\n public addAuthentication(authentication: string | VerificationMethod) {\n if (!this.didDocument.authentication) {\n this.didDocument.authentication = []\n }\n\n const verificationMethod =\n authentication instanceof VerificationMethod || typeof authentication === 'string'\n ? authentication\n : new VerificationMethod(authentication)\n\n this.didDocument.authentication.push(verificationMethod)\n\n return this\n }\n\n public addAssertionMethod(assertionMethod: string | VerificationMethod) {\n if (!this.didDocument.assertionMethod) {\n this.didDocument.assertionMethod = []\n }\n\n const verificationMethod =\n assertionMethod instanceof VerificationMethod || typeof assertionMethod === 'string'\n ? assertionMethod\n : new VerificationMethod(assertionMethod)\n\n this.didDocument.assertionMethod.push(verificationMethod)\n\n return this\n }\n\n public addCapabilityDelegation(capabilityDelegation: string | VerificationMethod) {\n if (!this.didDocument.capabilityDelegation) {\n this.didDocument.capabilityDelegation = []\n }\n\n const verificationMethod =\n capabilityDelegation instanceof VerificationMethod || typeof capabilityDelegation === 'string'\n ? capabilityDelegation\n : new VerificationMethod(capabilityDelegation)\n\n this.didDocument.capabilityDelegation.push(verificationMethod)\n\n return this\n }\n public addCapabilityInvocation(capabilityInvocation: string | VerificationMethod) {\n if (!this.didDocument.capabilityInvocation) {\n this.didDocument.capabilityInvocation = []\n }\n\n const verificationMethod =\n capabilityInvocation instanceof VerificationMethod || typeof capabilityInvocation === 'string'\n ? capabilityInvocation\n : new VerificationMethod(capabilityInvocation)\n\n this.didDocument.capabilityInvocation.push(verificationMethod)\n\n return this\n }\n\n public addKeyAgreement(keyAgreement: string | VerificationMethod) {\n if (!this.didDocument.keyAgreement) {\n this.didDocument.keyAgreement = []\n }\n\n const verificationMethod =\n keyAgreement instanceof VerificationMethod || typeof keyAgreement === 'string'\n ? keyAgreement\n : new VerificationMethod(keyAgreement)\n\n this.didDocument.keyAgreement.push(verificationMethod)\n\n return this\n }\n\n public build(): DidDocument {\n return this.didDocument\n }\n}\n"],"mappings":";;;;;;;;;AAKA,IAAa,qBAAb,MAAgC;CAG9B,AAAO,YAAY,IAAY;AAC7B,OAAK,cAAc,IAAI,YAAY,EACjC,IACD,CAAC;;CAGJ,AAAO,WAAW,SAAiB;EACjC,MAAM,kBAAkB,QAAQ,KAAK,YAAY,QAAQ;AACzD,MAAI,gBAAgB,SAAS,QAAQ,CAAE,QAAO;AAE9C,OAAK,YAAY,UAAU,CAAC,GAAG,iBAAiB,QAAQ;AACxD,SAAO;;CAGT,AAAO,cAAc,YAAoB;EACvC,MAAM,qBAAqB,QAAQ,KAAK,YAAY,WAAW;AAC/D,MAAI,mBAAmB,SAAS,WAAW,CAAE,QAAO;AAEpD,OAAK,YAAY,aAAa,CAAC,GAAG,oBAAoB,WAAW;AACjE,SAAO;;CAGT,AAAO,WAAW,SAA6B;AAC7C,MAAI,CAAC,KAAK,YAAY,QACpB,MAAK,YAAY,UAAU,EAAE;AAG/B,OAAK,YAAY,QAAQ,KAAK,QAAQ;AAEtC,SAAO;;CAGT,AAAO,sBAAsB,oBAAwC;AACnE,MAAI,CAAC,KAAK,YAAY,mBACpB,MAAK,YAAY,qBAAqB,EAAE;AAG1C,OAAK,YAAY,mBAAmB,KAClC,8BAA8B,qBAAqB,qBAAqB,IAAI,mBAAmB,mBAAmB,CACnH;AAED,SAAO;;CAGT,AAAO,kBAAkB,gBAA6C;AACpE,MAAI,CAAC,KAAK,YAAY,eACpB,MAAK,YAAY,iBAAiB,EAAE;EAGtC,MAAM,qBACJ,0BAA0B,sBAAsB,OAAO,mBAAmB,WACtE,iBACA,IAAI,mBAAmB,eAAe;AAE5C,OAAK,YAAY,eAAe,KAAK,mBAAmB;AAExD,SAAO;;CAGT,AAAO,mBAAmB,iBAA8C;AACtE,MAAI,CAAC,KAAK,YAAY,gBACpB,MAAK,YAAY,kBAAkB,EAAE;EAGvC,MAAM,qBACJ,2BAA2B,sBAAsB,OAAO,oBAAoB,WACxE,kBACA,IAAI,mBAAmB,gBAAgB;AAE7C,OAAK,YAAY,gBAAgB,KAAK,mBAAmB;AAEzD,SAAO;;CAGT,AAAO,wBAAwB,sBAAmD;AAChF,MAAI,CAAC,KAAK,YAAY,qBACpB,MAAK,YAAY,uBAAuB,EAAE;EAG5C,MAAM,qBACJ,gCAAgC,sBAAsB,OAAO,yBAAyB,WAClF,uBACA,IAAI,mBAAmB,qBAAqB;AAElD,OAAK,YAAY,qBAAqB,KAAK,mBAAmB;AAE9D,SAAO;;CAET,AAAO,wBAAwB,sBAAmD;AAChF,MAAI,CAAC,KAAK,YAAY,qBACpB,MAAK,YAAY,uBAAuB,EAAE;EAG5C,MAAM,qBACJ,gCAAgC,sBAAsB,OAAO,yBAAyB,WAClF,uBACA,IAAI,mBAAmB,qBAAqB;AAElD,OAAK,YAAY,qBAAqB,KAAK,mBAAmB;AAE9D,SAAO;;CAGT,AAAO,gBAAgB,cAA2C;AAChE,MAAI,CAAC,KAAK,YAAY,aACpB,MAAK,YAAY,eAAe,EAAE;EAGpC,MAAM,qBACJ,wBAAwB,sBAAsB,OAAO,iBAAiB,WAClE,eACA,IAAI,mBAAmB,aAAa;AAE1C,OAAK,YAAY,aAAa,KAAK,mBAAmB;AAEtD,SAAO;;CAGT,AAAO,QAAqB;AAC1B,SAAO,KAAK"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
|
|
4
|
-
const
|
|
5
|
-
const require_DidCommV1Service = require('./service/DidCommV1Service.js');
|
|
6
|
-
const require_DidCommV2Service = require('./service/DidCommV2Service.js');
|
|
7
|
-
const require_IndyAgentService = require('./service/IndyAgentService.js');
|
|
8
|
-
const require_LegacyDidCommV2Service = require('./service/LegacyDidCommV2Service.js');
|
|
9
|
-
const require_ServiceTransformer = require('./service/ServiceTransformer.js');
|
|
10
|
-
require('./service/index.js');
|
|
4
|
+
const require_parse = require('./parse.js');
|
|
11
5
|
const require_VerificationMethod = require('./verificationMethod/VerificationMethod.js');
|
|
12
|
-
const
|
|
6
|
+
const require_EcdsaSecp256k1VerificationKey2019 = require('./verificationMethod/EcdsaSecp256k1VerificationKey2019.js');
|
|
13
7
|
const require_Ed25519VerificationKey2018 = require('./verificationMethod/Ed25519VerificationKey2018.js');
|
|
14
8
|
const require_Ed25519VerificationKey2020 = require('./verificationMethod/Ed25519VerificationKey2020.js');
|
|
15
9
|
const require_JsonWebKey2020 = require('./verificationMethod/JsonWebKey2020.js');
|
|
16
|
-
const require_X25519KeyAgreementKey2019 = require('./verificationMethod/X25519KeyAgreementKey2019.js');
|
|
17
10
|
const require_Multikey = require('./verificationMethod/Multikey.js');
|
|
18
|
-
const
|
|
11
|
+
const require_VerificationMethodTransformer = require('./verificationMethod/VerificationMethodTransformer.js');
|
|
12
|
+
const require_X25519KeyAgreementKey2019 = require('./verificationMethod/X25519KeyAgreementKey2019.js');
|
|
19
13
|
require('./verificationMethod/index.js');
|
|
20
14
|
const require_ed25519 = require('./key-type/ed25519.js');
|
|
21
15
|
const require_x25519 = require('./key-type/x25519.js');
|
|
22
16
|
const require_keyDidMapping = require('./key-type/keyDidMapping.js');
|
|
23
17
|
require('./key-type/index.js');
|
|
18
|
+
const require_DidDocumentService = require('./service/DidDocumentService.js');
|
|
19
|
+
const require_DidCommV1Service = require('./service/DidCommV1Service.js');
|
|
20
|
+
const require_DidCommV2Service = require('./service/DidCommV2Service.js');
|
|
21
|
+
const require_IndyAgentService = require('./service/IndyAgentService.js');
|
|
22
|
+
const require_LegacyDidCommV2Service = require('./service/LegacyDidCommV2Service.js');
|
|
23
|
+
const require_ServiceTransformer = require('./service/ServiceTransformer.js');
|
|
24
|
+
require('./service/index.js');
|
|
24
25
|
const require_DidDocument = require('./DidDocument.js');
|
|
25
26
|
const require_DidDocumentBuilder = require('./DidDocumentBuilder.js');
|
|
26
27
|
const require_DidDocumentRole = require('./DidDocumentRole.js');
|
|
27
|
-
const require_parse = require('./parse.js');
|
|
28
28
|
const require_didDocumentKey = require('./didDocumentKey.js');
|
|
29
29
|
let __stablelib_ed25519 = require("@stablelib/ed25519");
|
|
30
30
|
__stablelib_ed25519 = require_rolldown_runtime.__toESM(__stablelib_ed25519);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { DidCommV1Service } from "./service/DidCommV1Service.mjs";
|
|
5
|
-
import { DidCommV2Service, DidCommV2ServiceEndpoint } from "./service/DidCommV2Service.mjs";
|
|
6
|
-
import { IndyAgentService } from "./service/IndyAgentService.mjs";
|
|
7
|
-
import { LegacyDidCommV2Service } from "./service/LegacyDidCommV2Service.mjs";
|
|
8
|
-
import { ServiceTransformer, serviceTypes } from "./service/ServiceTransformer.mjs";
|
|
9
|
-
import "./service/index.mjs";
|
|
3
|
+
import { parseDid } from "./parse.mjs";
|
|
10
4
|
import { VerificationMethod } from "./verificationMethod/VerificationMethod.mjs";
|
|
11
|
-
import {
|
|
5
|
+
import { VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019, getEcdsaSecp256k1VerificationKey2019, getPublicJwkFromEcdsaSecp256k1VerificationKey2019, isEcdsaSecp256k1VerificationKey2019 } from "./verificationMethod/EcdsaSecp256k1VerificationKey2019.mjs";
|
|
12
6
|
import { VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018, getEd25519VerificationKey2018, getPublicJwkFromEd25519VerificationKey2018, isEd25519VerificationKey2018 } from "./verificationMethod/Ed25519VerificationKey2018.mjs";
|
|
13
7
|
import { VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020, getEd25519VerificationKey2020, getPublicJwkFromEd25519VerificationKey2020, isEd25519VerificationKey2020 } from "./verificationMethod/Ed25519VerificationKey2020.mjs";
|
|
14
8
|
import { VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020, getJsonWebKey2020, getPublicJwkFromJsonWebKey2020, isJsonWebKey2020 } from "./verificationMethod/JsonWebKey2020.mjs";
|
|
15
|
-
import { VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019, getPublicJwkFrommX25519KeyAgreementKey2019, getX25519KeyAgreementKey2019, isX25519KeyAgreementKey2019 } from "./verificationMethod/X25519KeyAgreementKey2019.mjs";
|
|
16
9
|
import { VERIFICATION_METHOD_TYPE_MULTIKEY, getMultikey, getPublicJwkFromMultikey, isMultikey } from "./verificationMethod/Multikey.mjs";
|
|
17
|
-
import {
|
|
10
|
+
import { IsStringOrVerificationMethod, VerificationMethodTransformer } from "./verificationMethod/VerificationMethodTransformer.mjs";
|
|
11
|
+
import { VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019, getPublicJwkFrommX25519KeyAgreementKey2019, getX25519KeyAgreementKey2019, isX25519KeyAgreementKey2019 } from "./verificationMethod/X25519KeyAgreementKey2019.mjs";
|
|
18
12
|
import "./verificationMethod/index.mjs";
|
|
19
13
|
import { convertPublicKeyToX25519, keyDidEd25519 } from "./key-type/ed25519.mjs";
|
|
20
14
|
import { keyDidX25519 } from "./key-type/x25519.mjs";
|
|
21
15
|
import { getPublicJwkFromVerificationMethod } from "./key-type/keyDidMapping.mjs";
|
|
22
16
|
import "./key-type/index.mjs";
|
|
17
|
+
import { DidDocumentService } from "./service/DidDocumentService.mjs";
|
|
18
|
+
import { DidCommV1Service } from "./service/DidCommV1Service.mjs";
|
|
19
|
+
import { DidCommV2Service, DidCommV2ServiceEndpoint } from "./service/DidCommV2Service.mjs";
|
|
20
|
+
import { IndyAgentService } from "./service/IndyAgentService.mjs";
|
|
21
|
+
import { LegacyDidCommV2Service } from "./service/LegacyDidCommV2Service.mjs";
|
|
22
|
+
import { ServiceTransformer, serviceTypes } from "./service/ServiceTransformer.mjs";
|
|
23
|
+
import "./service/index.mjs";
|
|
23
24
|
import { DidDocument, findVerificationMethodByKeyType } from "./DidDocument.mjs";
|
|
24
25
|
import { DidDocumentBuilder } from "./DidDocumentBuilder.mjs";
|
|
25
26
|
import { DidDocumentRole } from "./DidDocumentRole.mjs";
|
|
26
|
-
import { parseDid } from "./parse.mjs";
|
|
27
27
|
import { getKmsKeyIdForVerifiacationMethod } from "./didDocumentKey.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ed25519.mjs","names":["keyDidEd25519: KeyDidMapping<Ed25519PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/ed25519.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { Ed25519PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n
|
|
1
|
+
{"version":3,"file":"ed25519.mjs","names":["keyDidEd25519: KeyDidMapping<Ed25519PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/ed25519.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { Ed25519PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n getEd25519VerificationKey2018,\n getPublicJwkFromEd25519VerificationKey2018,\n getPublicJwkFromEd25519VerificationKey2020,\n isEd25519VerificationKey2018,\n isEd25519VerificationKey2020,\n VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,\n VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n} from '../verificationMethod'\nimport type { KeyDidMapping } from './keyDidMapping'\n\nexport { convertPublicKeyToX25519 } from '@stablelib/ed25519'\n\nexport const keyDidEd25519: KeyDidMapping<Ed25519PublicJwk> = {\n PublicJwkTypes: [Ed25519PublicJwk],\n supportedVerificationMethodTypes: [\n VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,\n VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n ],\n getVerificationMethods: (did, publicJwk) => [\n getEd25519VerificationKey2018({ id: `${did}#${publicJwk.fingerprint}`, publicJwk, controller: did }),\n ],\n\n getPublicJwkFromVerificationMethod: (verificationMethod: VerificationMethod) => {\n if (isEd25519VerificationKey2018(verificationMethod)) {\n return getPublicJwkFromEd25519VerificationKey2018(verificationMethod)\n }\n\n if (isEd25519VerificationKey2020(verificationMethod)) {\n return getPublicJwkFromEd25519VerificationKey2020(verificationMethod)\n }\n\n throw new CredoError(\n `Verification method with type '${verificationMethod.type}' not supported for key type Ed25519`\n )\n },\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAaA,gBAAiD;CAC5D,gBAAgB,CAAC,iBAAiB;CAClC,kCAAkC;EAChC;EACA;EACA;EACA;EACD;CACD,yBAAyB,KAAK,cAAc,CAC1C,8BAA8B;EAAE,IAAI,GAAG,IAAI,GAAG,UAAU;EAAe;EAAW,YAAY;EAAK,CAAC,CACrG;CAED,qCAAqC,uBAA2C;AAC9E,MAAI,6BAA6B,mBAAmB,CAClD,QAAO,2CAA2C,mBAAmB;AAGvE,MAAI,6BAA6B,mBAAmB,CAClD,QAAO,2CAA2C,mBAAmB;AAGvE,QAAM,IAAI,WACR,kCAAkC,mBAAmB,KAAK,sCAC3D;;CAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDidJsonWebKey.mjs","names":["keyDidJsonWebKey: KeyDidMapping<P256PublicJwk | P384PublicJwk | P521PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidJsonWebKey.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"keyDidJsonWebKey.mjs","names":["keyDidJsonWebKey: KeyDidMapping<P256PublicJwk | P384PublicJwk | P521PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidJsonWebKey.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { P256PublicJwk, P384PublicJwk, P521PublicJwk } from '../../../kms'\nimport { getJsonWebKey2020 } from '../verificationMethod'\nimport { VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020 } from '../verificationMethod/JsonWebKey2020'\nimport type { KeyDidMapping } from './keyDidMapping'\n\nexport const keyDidJsonWebKey: KeyDidMapping<P256PublicJwk | P384PublicJwk | P521PublicJwk> = {\n PublicJwkTypes: [P256PublicJwk, P384PublicJwk, P521PublicJwk],\n supportedVerificationMethodTypes: [VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020],\n getVerificationMethods: (did, publicJwk) => [getJsonWebKey2020({ did, publicJwk })],\n\n getPublicJwkFromVerificationMethod: () => {\n // This is handled on a higher level\n throw new CredoError('Not supported for key did json web key')\n },\n}\n"],"mappings":";;;;;;;;;;;;AAMA,MAAaA,mBAAiF;CAC5F,gBAAgB;EAAC;EAAe;EAAe;EAAc;CAC7D,kCAAkC,CAAC,2CAA2C;CAC9E,yBAAyB,KAAK,cAAc,CAAC,kBAAkB;EAAE;EAAK;EAAW,CAAC,CAAC;CAEnF,0CAA0C;AAExC,QAAM,IAAI,WAAW,yCAAyC;;CAEjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "../../../../utils/mixins.mjs";
|
|
2
|
-
import { VerificationMethod } from "../verificationMethod/VerificationMethod.mjs";
|
|
3
2
|
import { PublicJwk, SupportedPublicJwkClass } from "../../../kms/jwk/PublicJwk.mjs";
|
|
3
|
+
import { VerificationMethod } from "../verificationMethod/VerificationMethod.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/dids/domain/key-type/keyDidMapping.d.ts
|
|
6
6
|
interface KeyDidMapping<PublicJwkType extends InstanceType<SupportedPublicJwkClass> = InstanceType<SupportedPublicJwkClass>> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDidMapping.d.mts","names":[],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyDidMapping.d.mts","names":[],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":[],"mappings":";;;;;UAYiB,oCACO,aAAa,2BAA2B,aAAa;kBAE3D,MAAM,YAAY;mDACe,UAAU,mBAAmB;EAJ/D,kCAAa,CAAA,kBAAA,EAK2B,kBAL3B,CAAA,EAKgD,SALhD;EAAA,gCAAA,EAAA,MAAA,EAAA;;AACkC,iBA0BhD,kCAAA,CA1BgD,kBAAA,EA0BO,kBA1BP,CAAA,EA0B4B,SA1B5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "../../../../utils/mixins.js";
|
|
2
|
-
import { VerificationMethod } from "../verificationMethod/VerificationMethod.js";
|
|
3
2
|
import { PublicJwk, SupportedPublicJwkClass } from "../../../kms/jwk/PublicJwk.js";
|
|
3
|
+
import { VerificationMethod } from "../verificationMethod/VerificationMethod.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/dids/domain/key-type/keyDidMapping.d.ts
|
|
6
6
|
interface KeyDidMapping<PublicJwkType extends InstanceType<SupportedPublicJwkClass> = InstanceType<SupportedPublicJwkClass>> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDidMapping.d.ts","names":[],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyDidMapping.d.ts","names":[],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":[],"mappings":";;;;;UAYiB,oCACO,aAAa,2BAA2B,aAAa;EAD5D,cAAA,EAGC,KAHY,CAGN,WAHM,CAGM,aAHN,CAAA,CAAA;EAAA,sBAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,SAAA,EAIqB,SAJrB,CAI+B,aAJ/B,CAAA,EAAA,GAIkD,kBAJlD,EAAA;oCACO,CAAA,kBAAA,EAIoB,kBAJpB,CAAA,EAIyC,SAJzC;kCAAb,EAAA,MAAA,EAAA;;AAEA,iBAwBR,kCAAA,CAxBQ,kBAAA,EAwB+C,kBAxB/C,CAAA,EAwBoE,SAxBpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDidMapping.mjs","names":["keyDid"],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport type {
|
|
1
|
+
{"version":3,"file":"keyDidMapping.mjs","names":["keyDid"],"sources":["../../../../../src/modules/dids/domain/key-type/keyDidMapping.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport type { Constructor } from '../../../../utils/mixins'\nimport { PublicJwk } from '../../../kms'\nimport type { SupportedPublicJwkClass } from '../../../kms/jwk/PublicJwk'\nimport type { VerificationMethod } from '../verificationMethod'\nimport { getPublicJwkFromMultikey, isMultikey } from '../verificationMethod'\nimport { getPublicJwkFromJsonWebKey2020, isJsonWebKey2020 } from '../verificationMethod/JsonWebKey2020'\nimport { keyDidEd25519 } from './ed25519'\nimport { keyDidJsonWebKey } from './keyDidJsonWebKey'\nimport { keyDidSecp256k1 } from './secp256k1'\nimport { keyDidX25519 } from './x25519'\n\nexport interface KeyDidMapping<\n PublicJwkType extends InstanceType<SupportedPublicJwkClass> = InstanceType<SupportedPublicJwkClass>,\n> {\n PublicJwkTypes: Array<Constructor<PublicJwkType>>\n getVerificationMethods: (did: string, publicJwk: PublicJwk<PublicJwkType>) => VerificationMethod[]\n getPublicJwkFromVerificationMethod(verificationMethod: VerificationMethod): PublicJwk\n supportedVerificationMethodTypes: string[]\n}\n\nconst supportedKeyDids = [keyDidEd25519, keyDidX25519, keyDidJsonWebKey, keyDidSecp256k1]\n\n// TODO: at some point we should update all usages to Jwk / Multikey methods\n// so we don't need key type specific verification methods anymore\nexport function getVerificationMethodsForPublicJwk(publicJwk: PublicJwk, did: string) {\n const { getVerificationMethods } = getKeyDidMappingByPublicJwk(publicJwk)\n\n return getVerificationMethods(did, publicJwk)\n}\n\nexport function getSupportedVerificationMethodTypesForPublicJwk(\n publicJwk: PublicJwk | SupportedPublicJwkClass\n): string[] {\n const { supportedVerificationMethodTypes } = getKeyDidMappingByPublicJwk(publicJwk)\n\n return supportedVerificationMethodTypes\n}\n\nexport function getPublicJwkFromVerificationMethod(verificationMethod: VerificationMethod): PublicJwk {\n // This is a special verification method, as it supports basically all key types.\n if (isJsonWebKey2020(verificationMethod)) {\n return getPublicJwkFromJsonWebKey2020(verificationMethod)\n }\n\n if (isMultikey(verificationMethod)) {\n return getPublicJwkFromMultikey(verificationMethod)\n }\n\n const keyDid = supportedKeyDids.find((keyDid) =>\n keyDid.supportedVerificationMethodTypes.includes(verificationMethod.type)\n )\n if (!keyDid) {\n throw new CredoError(`Unsupported key did from verification method type '${verificationMethod.type}'`)\n }\n\n return keyDid.getPublicJwkFromVerificationMethod(verificationMethod)\n}\n\nfunction getKeyDidMappingByPublicJwk(jwk: PublicJwk | SupportedPublicJwkClass): KeyDidMapping {\n const jwkTypeClass = jwk instanceof PublicJwk ? jwk.JwkClass : jwk\n\n const keyDid = supportedKeyDids.find((supportedKeyDid) =>\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n supportedKeyDid.PublicJwkTypes.includes(jwkTypeClass as any)\n )\n\n if (!keyDid) {\n throw new CredoError(\n `Unsupported did mapping for jwk '${jwk instanceof PublicJwk ? jwk.jwkTypehumanDescription : jwk.name}'`\n )\n }\n\n return keyDid as KeyDidMapping\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAM,mBAAmB;CAAC;CAAe;CAAc;CAAkB;CAAgB;AAIzF,SAAgB,mCAAmC,WAAsB,KAAa;CACpF,MAAM,EAAE,2BAA2B,4BAA4B,UAAU;AAEzE,QAAO,uBAAuB,KAAK,UAAU;;AAG/C,SAAgB,gDACd,WACU;CACV,MAAM,EAAE,qCAAqC,4BAA4B,UAAU;AAEnF,QAAO;;AAGT,SAAgB,mCAAmC,oBAAmD;AAEpG,KAAI,iBAAiB,mBAAmB,CACtC,QAAO,+BAA+B,mBAAmB;AAG3D,KAAI,WAAW,mBAAmB,CAChC,QAAO,yBAAyB,mBAAmB;CAGrD,MAAM,SAAS,iBAAiB,MAAM,aACpCA,SAAO,iCAAiC,SAAS,mBAAmB,KAAK,CAC1E;AACD,KAAI,CAAC,OACH,OAAM,IAAI,WAAW,sDAAsD,mBAAmB,KAAK,GAAG;AAGxG,QAAO,OAAO,mCAAmC,mBAAmB;;AAGtE,SAAS,4BAA4B,KAAyD;CAC5F,MAAM,eAAe,eAAe,YAAY,IAAI,WAAW;CAE/D,MAAM,SAAS,iBAAiB,MAAM,oBAEpC,gBAAgB,eAAe,SAAS,aAAoB,CAC7D;AAED,KAAI,CAAC,OACH,OAAM,IAAI,WACR,oCAAoC,eAAe,YAAY,IAAI,0BAA0B,IAAI,KAAK,GACvG;AAGH,QAAO"}
|
|
@@ -4,9 +4,9 @@ const require_CredoError = require('../../../../error/CredoError.js');
|
|
|
4
4
|
require('../../../../error/index.js');
|
|
5
5
|
const require_Secp256k1PublicJwk = require('../../../kms/jwk/kty/ec/Secp256k1PublicJwk.js');
|
|
6
6
|
require('../../../kms/index.js');
|
|
7
|
+
const require_EcdsaSecp256k1VerificationKey2019 = require('../verificationMethod/EcdsaSecp256k1VerificationKey2019.js');
|
|
7
8
|
const require_JsonWebKey2020 = require('../verificationMethod/JsonWebKey2020.js');
|
|
8
9
|
const require_Multikey = require('../verificationMethod/Multikey.js');
|
|
9
|
-
const require_EcdsaSecp256k1VerificationKey2019 = require('../verificationMethod/EcdsaSecp256k1VerificationKey2019.js');
|
|
10
10
|
require('../verificationMethod/index.js');
|
|
11
11
|
|
|
12
12
|
//#region src/modules/dids/domain/key-type/secp256k1.ts
|
|
@@ -4,9 +4,9 @@ import { CredoError } from "../../../../error/CredoError.mjs";
|
|
|
4
4
|
import "../../../../error/index.mjs";
|
|
5
5
|
import { Secp256k1PublicJwk } from "../../../kms/jwk/kty/ec/Secp256k1PublicJwk.mjs";
|
|
6
6
|
import "../../../kms/index.mjs";
|
|
7
|
+
import { VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019, getPublicJwkFromEcdsaSecp256k1VerificationKey2019, isEcdsaSecp256k1VerificationKey2019 } from "../verificationMethod/EcdsaSecp256k1VerificationKey2019.mjs";
|
|
7
8
|
import { VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020, getJsonWebKey2020 } from "../verificationMethod/JsonWebKey2020.mjs";
|
|
8
9
|
import { VERIFICATION_METHOD_TYPE_MULTIKEY } from "../verificationMethod/Multikey.mjs";
|
|
9
|
-
import { VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019, getPublicJwkFromEcdsaSecp256k1VerificationKey2019, isEcdsaSecp256k1VerificationKey2019 } from "../verificationMethod/EcdsaSecp256k1VerificationKey2019.mjs";
|
|
10
10
|
import "../verificationMethod/index.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/dids/domain/key-type/secp256k1.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secp256k1.mjs","names":["keyDidSecp256k1: KeyDidMapping<Secp256k1PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/secp256k1.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { Secp256k1PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n
|
|
1
|
+
{"version":3,"file":"secp256k1.mjs","names":["keyDidSecp256k1: KeyDidMapping<Secp256k1PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/secp256k1.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { Secp256k1PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n getJsonWebKey2020,\n getPublicJwkFromEcdsaSecp256k1VerificationKey2019,\n isEcdsaSecp256k1VerificationKey2019,\n VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n} from '../verificationMethod'\nimport type { KeyDidMapping } from './keyDidMapping'\n\nexport const keyDidSecp256k1: KeyDidMapping<Secp256k1PublicJwk> = {\n PublicJwkTypes: [Secp256k1PublicJwk],\n supportedVerificationMethodTypes: [\n VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n ],\n getVerificationMethods: (did, publicJwk) => [getJsonWebKey2020({ did, publicJwk })],\n getPublicJwkFromVerificationMethod: (verificationMethod: VerificationMethod) => {\n if (isEcdsaSecp256k1VerificationKey2019(verificationMethod)) {\n return getPublicJwkFromEcdsaSecp256k1VerificationKey2019(verificationMethod)\n }\n\n throw new CredoError(\n `Verification method with type '${verificationMethod.type}' not supported for key type Secp256K1`\n )\n },\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAaA,kBAAqD;CAChE,gBAAgB,CAAC,mBAAmB;CACpC,kCAAkC;EAChC;EACA;EACA;EACD;CACD,yBAAyB,KAAK,cAAc,CAAC,kBAAkB;EAAE;EAAK;EAAW,CAAC,CAAC;CACnF,qCAAqC,uBAA2C;AAC9E,MAAI,oCAAoC,mBAAmB,CACzD,QAAO,kDAAkD,mBAAmB;AAG9E,QAAM,IAAI,WACR,kCAAkC,mBAAmB,KAAK,wCAC3D;;CAEJ"}
|
|
@@ -5,8 +5,8 @@ require('../../../../error/index.js');
|
|
|
5
5
|
const require_X25519PublicJwk = require('../../../kms/jwk/kty/okp/X25519PublicJwk.js');
|
|
6
6
|
require('../../../kms/index.js');
|
|
7
7
|
const require_JsonWebKey2020 = require('../verificationMethod/JsonWebKey2020.js');
|
|
8
|
-
const require_X25519KeyAgreementKey2019 = require('../verificationMethod/X25519KeyAgreementKey2019.js');
|
|
9
8
|
const require_Multikey = require('../verificationMethod/Multikey.js');
|
|
9
|
+
const require_X25519KeyAgreementKey2019 = require('../verificationMethod/X25519KeyAgreementKey2019.js');
|
|
10
10
|
require('../verificationMethod/index.js');
|
|
11
11
|
|
|
12
12
|
//#region src/modules/dids/domain/key-type/x25519.ts
|
|
@@ -5,8 +5,8 @@ import "../../../../error/index.mjs";
|
|
|
5
5
|
import { X25519PublicJwk } from "../../../kms/jwk/kty/okp/X25519PublicJwk.mjs";
|
|
6
6
|
import "../../../kms/index.mjs";
|
|
7
7
|
import { VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020 } from "../verificationMethod/JsonWebKey2020.mjs";
|
|
8
|
-
import { VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019, getPublicJwkFrommX25519KeyAgreementKey2019, getX25519KeyAgreementKey2019, isX25519KeyAgreementKey2019 } from "../verificationMethod/X25519KeyAgreementKey2019.mjs";
|
|
9
8
|
import { VERIFICATION_METHOD_TYPE_MULTIKEY } from "../verificationMethod/Multikey.mjs";
|
|
9
|
+
import { VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019, getPublicJwkFrommX25519KeyAgreementKey2019, getX25519KeyAgreementKey2019, isX25519KeyAgreementKey2019 } from "../verificationMethod/X25519KeyAgreementKey2019.mjs";
|
|
10
10
|
import "../verificationMethod/index.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/dids/domain/key-type/x25519.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x25519.mjs","names":["keyDidX25519: KeyDidMapping<X25519PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/x25519.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { X25519PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n
|
|
1
|
+
{"version":3,"file":"x25519.mjs","names":["keyDidX25519: KeyDidMapping<X25519PublicJwk>"],"sources":["../../../../../src/modules/dids/domain/key-type/x25519.ts"],"sourcesContent":["import { CredoError } from '../../../../error'\nimport { X25519PublicJwk } from '../../../kms'\nimport type { VerificationMethod } from '../verificationMethod'\nimport {\n getPublicJwkFrommX25519KeyAgreementKey2019,\n getX25519KeyAgreementKey2019,\n isX25519KeyAgreementKey2019,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019,\n} from '../verificationMethod'\nimport type { KeyDidMapping } from './keyDidMapping'\n\nexport const keyDidX25519: KeyDidMapping<X25519PublicJwk> = {\n PublicJwkTypes: [X25519PublicJwk],\n supportedVerificationMethodTypes: [\n VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019,\n VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,\n VERIFICATION_METHOD_TYPE_MULTIKEY,\n ],\n getVerificationMethods: (did, publicJwk) => [\n getX25519KeyAgreementKey2019({ id: `${did}#${publicJwk.fingerprint}`, publicJwk, controller: did }),\n ],\n\n getPublicJwkFromVerificationMethod: (verificationMethod: VerificationMethod) => {\n if (isX25519KeyAgreementKey2019(verificationMethod)) {\n return getPublicJwkFrommX25519KeyAgreementKey2019(verificationMethod)\n }\n\n throw new CredoError(`Verification method with type '${verificationMethod.type}' not supported for key type X25519`)\n },\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAaA,eAA+C;CAC1D,gBAAgB,CAAC,gBAAgB;CACjC,kCAAkC;EAChC;EACA;EACA;EACD;CACD,yBAAyB,KAAK,cAAc,CAC1C,6BAA6B;EAAE,IAAI,GAAG,IAAI,GAAG,UAAU;EAAe;EAAW,YAAY;EAAK,CAAC,CACpG;CAED,qCAAqC,uBAA2C;AAC9E,MAAI,4BAA4B,mBAAmB,CACjD,QAAO,2CAA2C,mBAAmB;AAGvE,QAAM,IAAI,WAAW,kCAAkC,mBAAmB,KAAK,qCAAqC;;CAEvH"}
|
|
@@ -12,13 +12,13 @@ const require_X25519PublicJwk = require('../../kms/jwk/kty/okp/X25519PublicJwk.j
|
|
|
12
12
|
const require_Ed25519PublicJwk = require('../../kms/jwk/kty/okp/Ed25519PublicJwk.js');
|
|
13
13
|
const require_PublicJwk = require('../../kms/jwk/PublicJwk.js');
|
|
14
14
|
require('../../kms/index.js');
|
|
15
|
+
const require_constants = require('../../vc/constants.js');
|
|
15
16
|
const require_Ed25519VerificationKey2018 = require('./verificationMethod/Ed25519VerificationKey2018.js');
|
|
16
17
|
const require_JsonWebKey2020 = require('./verificationMethod/JsonWebKey2020.js');
|
|
17
18
|
const require_X25519KeyAgreementKey2019 = require('./verificationMethod/X25519KeyAgreementKey2019.js');
|
|
18
19
|
require('./verificationMethod/index.js');
|
|
19
20
|
require('./key-type/ed25519.js');
|
|
20
21
|
const require_DidDocumentBuilder = require('./DidDocumentBuilder.js');
|
|
21
|
-
const require_constants = require('../../vc/constants.js');
|
|
22
22
|
const require_constants$1 = require('../../vc/data-integrity/signature-suites/ed25519/constants.js');
|
|
23
23
|
let __stablelib_ed25519 = require("@stablelib/ed25519");
|
|
24
24
|
__stablelib_ed25519 = require_rolldown_runtime.__toESM(__stablelib_ed25519);
|
|
@@ -11,13 +11,13 @@ import { X25519PublicJwk } from "../../kms/jwk/kty/okp/X25519PublicJwk.mjs";
|
|
|
11
11
|
import { Ed25519PublicJwk } from "../../kms/jwk/kty/okp/Ed25519PublicJwk.mjs";
|
|
12
12
|
import { PublicJwk } from "../../kms/jwk/PublicJwk.mjs";
|
|
13
13
|
import "../../kms/index.mjs";
|
|
14
|
+
import { SECURITY_JWS_CONTEXT_URL, SECURITY_X25519_CONTEXT_URL } from "../../vc/constants.mjs";
|
|
14
15
|
import { getEd25519VerificationKey2018 } from "./verificationMethod/Ed25519VerificationKey2018.mjs";
|
|
15
16
|
import { getJsonWebKey2020 } from "./verificationMethod/JsonWebKey2020.mjs";
|
|
16
17
|
import { getX25519KeyAgreementKey2019 } from "./verificationMethod/X25519KeyAgreementKey2019.mjs";
|
|
17
18
|
import "./verificationMethod/index.mjs";
|
|
18
19
|
import { convertPublicKeyToX25519 } from "./key-type/ed25519.mjs";
|
|
19
20
|
import { DidDocumentBuilder } from "./DidDocumentBuilder.mjs";
|
|
20
|
-
import { SECURITY_JWS_CONTEXT_URL, SECURITY_X25519_CONTEXT_URL } from "../../vc/constants.mjs";
|
|
21
21
|
import { ED25519_SUITE_CONTEXT_URL_2018 } from "../../vc/data-integrity/signature-suites/ed25519/constants.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/modules/dids/domain/keyDidDocument.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDidDocument.mjs","names":[],"sources":["../../../../src/modules/dids/domain/keyDidDocument.ts"],"sourcesContent":["import { CredoError } from '../../../error'\nimport {
|
|
1
|
+
{"version":3,"file":"keyDidDocument.mjs","names":[],"sources":["../../../../src/modules/dids/domain/keyDidDocument.ts"],"sourcesContent":["import { CredoError } from '../../../error'\nimport {\n Ed25519PublicJwk,\n getJwkHumanDescription,\n P256PublicJwk,\n P384PublicJwk,\n P521PublicJwk,\n Secp256k1PublicJwk,\n X25519PublicJwk,\n} from '../../kms'\nimport { PublicJwk } from '../../kms/jwk/PublicJwk'\nimport { SECURITY_JWS_CONTEXT_URL, SECURITY_X25519_CONTEXT_URL } from '../../vc/constants'\nimport { ED25519_SUITE_CONTEXT_URL_2018 } from '../../vc/data-integrity/signature-suites/ed25519/constants'\nimport { DidDocumentBuilder } from './DidDocumentBuilder'\nimport { convertPublicKeyToX25519 } from './key-type/ed25519'\nimport { getEd25519VerificationKey2018, getJsonWebKey2020, getX25519KeyAgreementKey2019 } from './verificationMethod'\nimport type { VerificationMethod } from './verificationMethod/VerificationMethod'\n\nexport function getDidDocumentForPublicJwk(did: string, publicJwk: PublicJwk) {\n if (publicJwk.is(Ed25519PublicJwk)) {\n return getEd25519DidDoc(did, publicJwk as PublicJwk<Ed25519PublicJwk>)\n }\n if (publicJwk.is(X25519PublicJwk)) {\n return getX25519DidDoc(did, publicJwk as PublicJwk<X25519PublicJwk>)\n }\n if (\n publicJwk.is(P256PublicJwk) ||\n publicJwk.is(P384PublicJwk) ||\n publicJwk.is(P521PublicJwk) ||\n publicJwk.is(Secp256k1PublicJwk)\n ) {\n return getJsonWebKey2020DidDocument(did, publicJwk)\n }\n\n throw new CredoError(`Unsupported public key type for did document: ${getJwkHumanDescription(publicJwk.toJson())}`)\n}\n\nexport function getJsonWebKey2020DidDocument(did: string, publicJwk: PublicJwk) {\n const verificationMethod = getJsonWebKey2020({ did, publicJwk })\n\n const didDocumentBuilder = new DidDocumentBuilder(did)\n didDocumentBuilder.addContext(SECURITY_JWS_CONTEXT_URL).addVerificationMethod(verificationMethod)\n\n if (\n publicJwk.supportedSignatureAlgorithms.length === 0 &&\n publicJwk.supportdEncryptionKeyAgreementAlgorithms.length === 0\n ) {\n throw new CredoError('Key must support at least signing or encrypting')\n }\n\n if (publicJwk.supportedSignatureAlgorithms.length > 0) {\n didDocumentBuilder\n .addAuthentication(verificationMethod.id)\n .addAssertionMethod(verificationMethod.id)\n .addCapabilityDelegation(verificationMethod.id)\n .addCapabilityInvocation(verificationMethod.id)\n }\n\n if (publicJwk.supportdEncryptionKeyAgreementAlgorithms.length > 0) {\n didDocumentBuilder.addKeyAgreement(verificationMethod.id)\n }\n\n return didDocumentBuilder.build()\n}\n\nfunction getEd25519DidDoc(did: string, publicJwk: PublicJwk<Ed25519PublicJwk>) {\n const verificationMethod = getEd25519VerificationKey2018({\n id: `${did}#${publicJwk.fingerprint}`,\n publicJwk,\n controller: did,\n })\n\n const publicKeyX25519 = convertPublicKeyToX25519(publicJwk.publicKey.publicKey)\n\n const publicJwkX25519 = PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'X25519',\n publicKey: publicKeyX25519,\n })\n\n const x25519VerificationMethod = getX25519KeyAgreementKey2019({\n id: `${did}#${publicJwkX25519.fingerprint}`,\n publicJwk: publicJwkX25519,\n controller: did,\n })\n\n const didDocBuilder = getSignatureKeyBase({ did, publicJwk, verificationMethod })\n\n didDocBuilder\n .addContext(ED25519_SUITE_CONTEXT_URL_2018)\n .addContext(SECURITY_X25519_CONTEXT_URL)\n .addKeyAgreement(x25519VerificationMethod)\n\n return didDocBuilder.build()\n}\n\nfunction getX25519DidDoc(did: string, publicJwk: PublicJwk<X25519PublicJwk>) {\n const verificationMethod = getX25519KeyAgreementKey2019({\n id: `${did}#${publicJwk.fingerprint}`,\n publicJwk,\n controller: did,\n })\n\n const document = new DidDocumentBuilder(did)\n .addKeyAgreement(verificationMethod)\n .addContext(SECURITY_X25519_CONTEXT_URL)\n .build()\n\n return document\n}\n\nfunction getSignatureKeyBase({\n did,\n publicJwk,\n verificationMethod,\n}: {\n did: string\n publicJwk: PublicJwk\n verificationMethod: VerificationMethod\n}) {\n const keyId = `${did}#${publicJwk.fingerprint}`\n\n return new DidDocumentBuilder(did)\n .addVerificationMethod(verificationMethod)\n .addAuthentication(keyId)\n .addAssertionMethod(keyId)\n .addCapabilityDelegation(keyId)\n .addCapabilityInvocation(keyId)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA,SAAgB,2BAA2B,KAAa,WAAsB;AAC5E,KAAI,UAAU,GAAG,iBAAiB,CAChC,QAAO,iBAAiB,KAAK,UAAyC;AAExE,KAAI,UAAU,GAAG,gBAAgB,CAC/B,QAAO,gBAAgB,KAAK,UAAwC;AAEtE,KACE,UAAU,GAAG,cAAc,IAC3B,UAAU,GAAG,cAAc,IAC3B,UAAU,GAAG,cAAc,IAC3B,UAAU,GAAG,mBAAmB,CAEhC,QAAO,6BAA6B,KAAK,UAAU;AAGrD,OAAM,IAAI,WAAW,iDAAiD,uBAAuB,UAAU,QAAQ,CAAC,GAAG;;AAGrH,SAAgB,6BAA6B,KAAa,WAAsB;CAC9E,MAAM,qBAAqB,kBAAkB;EAAE;EAAK;EAAW,CAAC;CAEhE,MAAM,qBAAqB,IAAI,mBAAmB,IAAI;AACtD,oBAAmB,WAAW,yBAAyB,CAAC,sBAAsB,mBAAmB;AAEjG,KACE,UAAU,6BAA6B,WAAW,KAClD,UAAU,yCAAyC,WAAW,EAE9D,OAAM,IAAI,WAAW,kDAAkD;AAGzE,KAAI,UAAU,6BAA6B,SAAS,EAClD,oBACG,kBAAkB,mBAAmB,GAAG,CACxC,mBAAmB,mBAAmB,GAAG,CACzC,wBAAwB,mBAAmB,GAAG,CAC9C,wBAAwB,mBAAmB,GAAG;AAGnD,KAAI,UAAU,yCAAyC,SAAS,EAC9D,oBAAmB,gBAAgB,mBAAmB,GAAG;AAG3D,QAAO,mBAAmB,OAAO;;AAGnC,SAAS,iBAAiB,KAAa,WAAwC;CAC7E,MAAM,qBAAqB,8BAA8B;EACvD,IAAI,GAAG,IAAI,GAAG,UAAU;EACxB;EACA,YAAY;EACb,CAAC;CAEF,MAAM,kBAAkB,yBAAyB,UAAU,UAAU,UAAU;CAE/E,MAAM,kBAAkB,UAAU,cAAc;EAC9C,KAAK;EACL,KAAK;EACL,WAAW;EACZ,CAAC;CAEF,MAAM,2BAA2B,6BAA6B;EAC5D,IAAI,GAAG,IAAI,GAAG,gBAAgB;EAC9B,WAAW;EACX,YAAY;EACb,CAAC;CAEF,MAAM,gBAAgB,oBAAoB;EAAE;EAAK;EAAW;EAAoB,CAAC;AAEjF,eACG,WAAW,+BAA+B,CAC1C,WAAW,4BAA4B,CACvC,gBAAgB,yBAAyB;AAE5C,QAAO,cAAc,OAAO;;AAG9B,SAAS,gBAAgB,KAAa,WAAuC;CAC3E,MAAM,qBAAqB,6BAA6B;EACtD,IAAI,GAAG,IAAI,GAAG,UAAU;EACxB;EACA,YAAY;EACb,CAAC;AAOF,QALiB,IAAI,mBAAmB,IAAI,CACzC,gBAAgB,mBAAmB,CACnC,WAAW,4BAA4B,CACvC,OAAO;;AAKZ,SAAS,oBAAoB,EAC3B,KACA,WACA,sBAKC;CACD,MAAM,QAAQ,GAAG,IAAI,GAAG,UAAU;AAElC,QAAO,IAAI,mBAAmB,IAAI,CAC/B,sBAAsB,mBAAmB,CACzC,kBAAkB,MAAM,CACxB,mBAAmB,MAAM,CACzB,wBAAwB,MAAM,CAC9B,wBAAwB,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.mts","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parse.d.mts","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,QAAA,eAAuB;iBAUvB,WAAA,eAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,QAAA,eAAuB;iBAUvB,WAAA,eAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.mjs","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"parse.mjs","names":[],"sources":["../../../../src/modules/dids/domain/parse.ts"],"sourcesContent":["import { parse } from 'did-resolver'\nimport { CredoError } from '../../../error'\nimport type { ParsedDid } from '../types'\n\nexport function parseDid(did: string): ParsedDid {\n const parsed = tryParseDid(did)\n\n if (!parsed) {\n throw new CredoError(`Error parsing did '${did}'`)\n }\n\n return parsed\n}\n\nexport function tryParseDid(did: string): ParsedDid | null {\n return parse(did)\n}\n"],"mappings":";;;;;;;AAIA,SAAgB,SAAS,KAAwB;CAC/C,MAAM,SAAS,YAAY,IAAI;AAE/B,KAAI,CAAC,OACH,OAAM,IAAI,WAAW,sBAAsB,IAAI,GAAG;AAGpD,QAAO;;AAGT,SAAgB,YAAY,KAA+B;AACzD,QAAO,MAAM,IAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DidDocumentService } from "./DidDocumentService.mjs";
|
|
2
1
|
import { SingleOrArray } from "../../../../types.mjs";
|
|
2
|
+
import { DidDocumentService } from "./DidDocumentService.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/dids/domain/service/DidCommV2Service.d.ts
|
|
5
5
|
interface DidCommV2ServiceEndpointOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommV2Service.d.mts","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DidCommV2Service.d.mts","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":[],"mappings":";;;;UAQiB,+BAAA;;;;AAAjB;AAMa,cAAA,wBAAA,CACiB;EAuBb,WAAA,CAAA,OAAA,EAvBa,+BAuBU;EAAA,GAAA,EAAA,MAAA;aAEP,CAAA,EAAA,MAAA,EAAA;QAAd,CAAA,EAAA,MAAA,EAAA;EAAa,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA;AAGhC;AAA8B,UALb,uBAAA,CAKa;MACA,MAAA;iBAaW,EAjBtB,aAiBsB,CAjBR,wBAiBQ,CAAA;;AAdH,cAAzB,gBAAA,SAAyB,kBAAA,CAAA;EAAkB,WAAA,CAAA,OAAA,EAC1B,uBAD0B;;mBAc7B,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DidDocumentService } from "./DidDocumentService.js";
|
|
2
1
|
import { SingleOrArray } from "../../../../types.js";
|
|
2
|
+
import { DidDocumentService } from "./DidDocumentService.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/dids/domain/service/DidCommV2Service.d.ts
|
|
5
5
|
interface DidCommV2ServiceEndpointOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommV2Service.d.ts","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DidCommV2Service.d.ts","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":[],"mappings":";;;;UAQiB,+BAAA;;EAAA,WAAA,CAAA,EAAA,MAAA,EAAA;EAMJ,MAAA,CAAA,EAAA,MAAA,EAAA;AAwBb;AAAwC,cAxB3B,wBAAA,CAwB2B;aAEP,CAAA,OAAA,EAzBH,+BAyBG;KAAd,EAAA,MAAA;EAAa,WAAA,CAAA,EAAA,MAAA,EAAA;EAGnB,MAAA,CAAA,EAAA,MAAA,EAAA;EAAiB,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA;;AAcW,UAnBxB,uBAAA,CAmBwB;MAAd,MAAA;iBAdW,EAHnB,aAGmB,CAHL,wBAGK,CAAA;;cAAzB,gBAAA,SAAyB,kBAAA;uBACR;;mBAaH,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommV2Service.mjs","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":["import { Type } from 'class-transformer'\nimport { IsOptional, IsString, ValidateNested } from 'class-validator'\n\nimport { CredoError } from '../../../../error'\nimport {
|
|
1
|
+
{"version":3,"file":"DidCommV2Service.mjs","names":[],"sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"sourcesContent":["import { Type } from 'class-transformer'\nimport { IsOptional, IsString, ValidateNested } from 'class-validator'\n\nimport { CredoError } from '../../../../error'\nimport type { SingleOrArray } from '../../../../types'\nimport { IsInstanceOrArrayOfInstances, IsUri } from '../../../../utils'\nimport { DidDocumentService } from './DidDocumentService'\n\nexport interface DidCommV2ServiceEndpointOptions {\n uri: string\n routingKeys?: string[]\n accept?: string[]\n}\n\nexport class DidCommV2ServiceEndpoint {\n public constructor(options: DidCommV2ServiceEndpointOptions) {\n if (options) {\n this.uri = options.uri\n this.routingKeys = options.routingKeys\n this.accept = options.accept\n }\n }\n\n @IsString()\n @IsUri()\n public uri!: string\n\n @IsString({ each: true })\n @IsOptional()\n public routingKeys?: string[]\n\n @IsString({ each: true })\n @IsOptional()\n public accept?: string[];\n\n [key: string]: unknown | undefined\n}\n\nexport interface DidCommV2ServiceOptions {\n id: string\n serviceEndpoint: SingleOrArray<DidCommV2ServiceEndpoint>\n}\n\nexport class DidCommV2Service extends DidDocumentService {\n public constructor(options: DidCommV2ServiceOptions) {\n super({ ...options, type: DidCommV2Service.type })\n\n if (options) {\n this.serviceEndpoint = options.serviceEndpoint\n }\n }\n\n public static type = 'DIDCommMessaging'\n\n @IsInstanceOrArrayOfInstances({ classType: [DidCommV2ServiceEndpoint] })\n @ValidateNested()\n @Type(() => DidCommV2ServiceEndpoint)\n public serviceEndpoint!: SingleOrArray<DidCommV2ServiceEndpoint>\n\n public get firstServiceEndpointUri(): string {\n if (Array.isArray(this.serviceEndpoint)) {\n if (this.serviceEndpoint.length === 0) {\n throw new CredoError('No entries in serviceEndpoint array')\n }\n\n return this.serviceEndpoint[0].uri\n }\n\n return this.serviceEndpoint.uri\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAcA,IAAa,2BAAb,MAAsC;CACpC,AAAO,YAAY,SAA0C;AAC3D,MAAI,SAAS;AACX,QAAK,MAAM,QAAQ;AACnB,QAAK,cAAc,QAAQ;AAC3B,QAAK,SAAS,QAAQ;;;;;CAIzB,UAAU;CACV,OAAO;;;;CAGP,SAAS,EAAE,MAAM,MAAM,CAAC;CACxB,YAAY;;;;CAGZ,SAAS,EAAE,MAAM,MAAM,CAAC;CACxB,YAAY;;;AAWf,IAAa,mBAAb,MAAa,yBAAyB,mBAAmB;CACvD,AAAO,YAAY,SAAkC;AACnD,QAAM;GAAE,GAAG;GAAS,MAAM,iBAAiB;GAAM,CAAC;AAElD,MAAI,QACF,MAAK,kBAAkB,QAAQ;;CAWnC,IAAW,0BAAkC;AAC3C,MAAI,MAAM,QAAQ,KAAK,gBAAgB,EAAE;AACvC,OAAI,KAAK,gBAAgB,WAAW,EAClC,OAAM,IAAI,WAAW,sCAAsC;AAG7D,UAAO,KAAK,gBAAgB,GAAG;;AAGjC,SAAO,KAAK,gBAAgB;;;iBAhBhB,OAAO;;CAEpB,6BAA6B,EAAE,WAAW,CAAC,yBAAyB,EAAE,CAAC;CACvE,gBAAgB;CAChB,WAAW,yBAAyB"}
|