@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { W3cPresentation } from "../../models/presentation/W3cPresentation.mjs";
|
|
2
|
-
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.mjs";
|
|
3
|
-
import { W3cCredentialRecord } from "../../repository/W3cCredentialRecord.mjs";
|
|
4
2
|
import { DifPresentationExchangeDefinition, DifPresentationExchangeSubmission } from "../../../dif-presentation-exchange/models/index.mjs";
|
|
3
|
+
import { W3cCredentialRecord } from "../../repository/W3cCredentialRecord.mjs";
|
|
4
|
+
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.mjs";
|
|
5
5
|
import { AgentContext } from "../../../../agent/context/AgentContext.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { W3cPresentation } from "../../models/presentation/W3cPresentation.js";
|
|
2
|
-
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.js";
|
|
3
|
-
import { W3cCredentialRecord } from "../../repository/W3cCredentialRecord.js";
|
|
4
2
|
import { DifPresentationExchangeDefinition, DifPresentationExchangeSubmission } from "../../../dif-presentation-exchange/models/index.js";
|
|
3
|
+
import { W3cCredentialRecord } from "../../repository/W3cCredentialRecord.js";
|
|
4
|
+
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.js";
|
|
5
5
|
import { AgentContext } from "../../../../agent/context/AgentContext.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../../../../types.mjs";
|
|
1
2
|
import { VerificationMethod } from "../../../dids/domain/verificationMethod/VerificationMethod.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/modules/vc/data-integrity/models/LdKeyPair.d.ts
|
|
@@ -21,13 +22,13 @@ declare abstract class LdKeyPair {
|
|
|
21
22
|
abstract verifyFingerprint(fingerprint: string): boolean;
|
|
22
23
|
abstract signer(): {
|
|
23
24
|
sign: (data: {
|
|
24
|
-
data:
|
|
25
|
-
}) => Promise<
|
|
25
|
+
data: AnyUint8Array | AnyUint8Array[];
|
|
26
|
+
}) => Promise<Uint8ArrayBuffer | Array<Uint8ArrayBuffer>>;
|
|
26
27
|
};
|
|
27
28
|
abstract verifier(): {
|
|
28
29
|
verify: (data: {
|
|
29
|
-
data:
|
|
30
|
-
signature:
|
|
30
|
+
data: AnyUint8Array | AnyUint8Array[];
|
|
31
|
+
signature: AnyUint8Array;
|
|
31
32
|
}) => Promise<boolean>;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LdKeyPair.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LdKeyPair.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":[],"mappings":";;;;UAGiB,gBAAA;;;;AAAA,uBAKK,SAAA,CALW;EAKX,SAAA,EAAA,EAAS,MAAA;EAAA,SAAA,UAAA,EAAA,MAAA;WAKD,IAAA,EAAA,MAAA;aAKY,CAAA,OAAA,EALZ,gBAKY;SAAR,QAAA,CAAA,CAAA,EAAA,OAAA,CAAQ,SAAR,CAAA;SAIc,IAAA,CAAA,mBAAA,EAAA,kBAAA,CAAA,EAAqB,OAArB,CAA6B,SAA7B,CAAA;QAA6B,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,UAAA,CAAA,EAAA,OAAA,CAAA,EAAA;IAAR,EAAA,EAAA,MAAA;IAsB5C,IAAA,EAAA,MAAA;IAAgB,UAAA,EAAA,MAAA;;WAAuD,WAAA,CAAA,CAAA,EAAA,MAAA;WAAN,iBAAA,CAAA,WAAA,EAAA,MAAA,CAAA,EAAA,OAAA;WAA3B,MAAA,CAAA,CAAA,EAAA;IAIpC,IAAA,EAAA,CAAA,IAAA,EAAA;MAAgB,IAAA,EAJlB,aAIkB,GAJF,aAIE,EAAA;IAA4B,CAAA,EAAA,GAJR,OAIQ,CAJA,gBAIA,GAJmB,KAInB,CAJyB,gBAIzB,CAAA,CAAA;;EAA2B,SAAA,QAAA,CAAA,CAAA,EAAA;;YAAvE,gBAAgB;iBAA4B;UAAoB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../../../../types.js";
|
|
1
2
|
import { VerificationMethod } from "../../../dids/domain/verificationMethod/VerificationMethod.js";
|
|
2
3
|
|
|
3
4
|
//#region src/modules/vc/data-integrity/models/LdKeyPair.d.ts
|
|
@@ -21,13 +22,13 @@ declare abstract class LdKeyPair {
|
|
|
21
22
|
abstract verifyFingerprint(fingerprint: string): boolean;
|
|
22
23
|
abstract signer(): {
|
|
23
24
|
sign: (data: {
|
|
24
|
-
data:
|
|
25
|
-
}) => Promise<
|
|
25
|
+
data: AnyUint8Array | AnyUint8Array[];
|
|
26
|
+
}) => Promise<Uint8ArrayBuffer | Array<Uint8ArrayBuffer>>;
|
|
26
27
|
};
|
|
27
28
|
abstract verifier(): {
|
|
28
29
|
verify: (data: {
|
|
29
|
-
data:
|
|
30
|
-
signature:
|
|
30
|
+
data: AnyUint8Array | AnyUint8Array[];
|
|
31
|
+
signature: AnyUint8Array;
|
|
31
32
|
}) => Promise<boolean>;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LdKeyPair.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LdKeyPair.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":[],"mappings":";;;;UAGiB,gBAAA;;EAAA,UAAA,EAAA,MAAA;AAKjB;AAA+B,uBAAT,SAAA,CAAS;WAKD,EAAA,EAAA,MAAA;WAKY,UAAA,EAAA,MAAA;WAAR,IAAA,EAAA,MAAA;aAIc,CAAA,OAAA,EATlB,gBASkB;SAA6B,QAAA,CAAA,CAAA,EAJ3C,OAI2C,CAJnC,SAImC,CAAA;SAAR,IAAA,CAAA,mBAAA,EAArB,kBAAqB,CAAA,EAAA,OAAA,CAAQ,SAAR,CAAA;QAsB5C,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,UAAA,CAAA,EAAA,OAAA,CAAA,EAAA;IAAgB,EAAA,EAAA,MAAA;IAA8B,IAAA,EAAA,MAAA;IAAyB,UAAA,EAAA,MAAA;;WAAjC,WAAA,CAAA,CAAA,EAAA,MAAA;WAIpC,iBAAA,CAAA,WAAA,EAAA,MAAA,CAAA,EAAA,OAAA;WAAgB,MAAA,CAAA,CAAA,EAAA;IAA4B,IAAA,EAAA,CAAA,IAAA,EAAA;MAAoB,IAAA,EAJlE,aAIkE,GAJlD,aAIkD,EAAA;IAAO,CAAA,EAAA,GAJnC,OAImC,CAJ3B,gBAI2B,GAJR,KAIQ,CAJF,gBAIE,CAAA,CAAA;;;;YAAvE,gBAAgB;iBAA4B;UAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LdKeyPair.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":["import type { VerificationMethod } from '../../../dids'\n\nexport interface LdKeyPairOptions {\n id: string\n controller: string\n}\n\nexport abstract class LdKeyPair {\n public readonly id: string\n public readonly controller: string\n public abstract type: string\n\n public constructor(options: LdKeyPairOptions) {\n this.id = options.id\n this.controller = options.controller\n }\n\n public static async generate(): Promise<LdKeyPair> {\n throw new Error('Not implemented')\n }\n\n public static async from(_verificationMethod: VerificationMethod): Promise<LdKeyPair> {\n throw new Error('Abstract method from() must be implemented in subclass.')\n }\n\n public export(publicKey = false, privateKey = false) {\n if (!publicKey && !privateKey) {\n throw new Error('Export requires specifying either \"publicKey\" or \"privateKey\".')\n }\n const key = {\n id: this.id,\n type: this.type,\n controller: this.controller,\n }\n\n return key\n }\n\n public abstract fingerprint(): string\n\n public abstract verifyFingerprint(fingerprint: string): boolean\n\n public abstract signer(): {\n sign: (data: { data:
|
|
1
|
+
{"version":3,"file":"LdKeyPair.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/LdKeyPair.ts"],"sourcesContent":["import type { AnyUint8Array, Uint8ArrayBuffer } from '../../../../types'\nimport type { VerificationMethod } from '../../../dids'\n\nexport interface LdKeyPairOptions {\n id: string\n controller: string\n}\n\nexport abstract class LdKeyPair {\n public readonly id: string\n public readonly controller: string\n public abstract type: string\n\n public constructor(options: LdKeyPairOptions) {\n this.id = options.id\n this.controller = options.controller\n }\n\n public static async generate(): Promise<LdKeyPair> {\n throw new Error('Not implemented')\n }\n\n public static async from(_verificationMethod: VerificationMethod): Promise<LdKeyPair> {\n throw new Error('Abstract method from() must be implemented in subclass.')\n }\n\n public export(publicKey = false, privateKey = false) {\n if (!publicKey && !privateKey) {\n throw new Error('Export requires specifying either \"publicKey\" or \"privateKey\".')\n }\n const key = {\n id: this.id,\n type: this.type,\n controller: this.controller,\n }\n\n return key\n }\n\n public abstract fingerprint(): string\n\n public abstract verifyFingerprint(fingerprint: string): boolean\n\n public abstract signer(): {\n sign: (data: { data: AnyUint8Array | AnyUint8Array[] }) => Promise<Uint8ArrayBuffer | Array<Uint8ArrayBuffer>>\n }\n\n public abstract verifier(): {\n verify: (data: { data: AnyUint8Array | AnyUint8Array[]; signature: AnyUint8Array }) => Promise<boolean>\n }\n}\n"],"mappings":";;;AAQA,IAAsB,YAAtB,MAAgC;CAK9B,AAAO,YAAY,SAA2B;AAC5C,OAAK,KAAK,QAAQ;AAClB,OAAK,aAAa,QAAQ;;CAG5B,aAAoB,WAA+B;AACjD,QAAM,IAAI,MAAM,kBAAkB;;CAGpC,aAAoB,KAAK,qBAA6D;AACpF,QAAM,IAAI,MAAM,0DAA0D;;CAG5E,AAAO,OAAO,YAAY,OAAO,aAAa,OAAO;AACnD,MAAI,CAAC,aAAa,CAAC,WACjB,OAAM,IAAI,MAAM,qEAAiE;AAQnF,SANY;GACV,IAAI,KAAK;GACT,MAAM,KAAK;GACX,YAAY,KAAK;GAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofTransformer.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/ProofTransformer.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ProofTransformer.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/ProofTransformer.ts"],"sourcesContent":["import { instanceToPlain, plainToInstance, Transform, TransformationType } from 'class-transformer'\nimport type { SingleOrArray } from '../../../../types'\nimport type { DataIntegrityProofOptions } from './DataIntegrityProof'\nimport { DataIntegrityProof } from './DataIntegrityProof'\nimport type { LinkedDataProofOptions } from './LinkedDataProof'\nimport { LinkedDataProof } from './LinkedDataProof'\n\nexport function ProofTransformer() {\n return Transform(\n ({\n value,\n type,\n }: {\n value: SingleOrArray<LinkedDataProofOptions | DataIntegrityProofOptions>\n type: TransformationType\n }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n const plainOptionsToClass = (v: LinkedDataProofOptions | DataIntegrityProofOptions) => {\n if ('cryptosuite' in v) {\n return plainToInstance(DataIntegrityProof, v)\n }\n return plainToInstance(LinkedDataProof, v)\n }\n\n if (Array.isArray(value)) return value.map(plainOptionsToClass)\n return plainOptionsToClass(value)\n }\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (Array.isArray(value)) return value.map((v) => instanceToPlain(v))\n return instanceToPlain(value)\n }\n // PLAIN_TO_PLAIN\n return value\n }\n )\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,mBAAmB;AACjC,QAAO,WACJ,EACC,OACA,WAII;AACJ,MAAI,SAAS,mBAAmB,gBAAgB;GAC9C,MAAM,uBAAuB,MAA0D;AACrF,QAAI,iBAAiB,EACnB,QAAO,gBAAgB,oBAAoB,EAAE;AAE/C,WAAO,gBAAgB,iBAAiB,EAAE;;AAG5C,OAAI,MAAM,QAAQ,MAAM,CAAE,QAAO,MAAM,IAAI,oBAAoB;AAC/D,UAAO,oBAAoB,MAAM;;AAEnC,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,MAAM,QAAQ,MAAM,CAAE,QAAO,MAAM,KAAK,MAAM,gBAAgB,EAAE,CAAC;AACrE,UAAO,gBAAgB,MAAM;;AAG/B,SAAO;GAEV"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { SingleOrArray } from "../../../../types.mjs";
|
|
2
|
+
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
1
3
|
import { W3cCredential, W3cCredentialOptions } from "../../models/credential/W3cCredential.mjs";
|
|
2
4
|
import { W3cJsonCredential } from "../../models/credential/W3cJsonCredential.mjs";
|
|
3
5
|
import { DataIntegrityProof, DataIntegrityProofOptions } from "./DataIntegrityProof.mjs";
|
|
4
6
|
import { LinkedDataProof, LinkedDataProofOptions } from "./LinkedDataProof.mjs";
|
|
5
|
-
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
6
|
-
import { SingleOrArray } from "../../../../types.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts
|
|
9
9
|
interface W3cJsonLdVerifiableCredentialOptions extends W3cCredentialOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiableCredential.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiableCredential.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAaiB,oCAAA,SAA6C;EAA7C,KAAA,EACR,aADQ,CACM,sBAD+B,GACN,yBADM,CAAA;;AAC/B,cAGV,6BAAA,SAAsC,aAAA,CAH5B;aAAyB,CAAA,OAAA,EAIlB,oCAJkB;OAAvC,EAiBQ,aAjBR,CAiBsB,eAjBtB,GAiBwC,kBAjBxC,CAAA;MADqD,UAAA,CAAA,CAAA,EAoBnC,KApBmC,CAAA,MAAA,CAAA;EAAoB,IAAA,yBAAA,CAAA,CAAA,EAyBxC,KAzBwC,CAAA,MAAA,CAAA;EAIrE,MAAA,CAAA,CAAA,EA4BE,MA5BF,CAAA,MAAA,EAAA,GAAA,CAAA;EAA8B,OAAA,QAAA,CAAA,IAAA,EAgCZ,MAhCY,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,EAgCW,6BAhCX;;;;MAc1B,WAAA,CAAA,CAAA,EAyBW,WAAA,CAAY,KAzBvB;;;;;MAkBqC,OAAA,CAAA,CAAA,EAelC,MAfkC,CAAA,MAAA,EAAA,GAAA,CAAA;MAO1B,cAAY,CAAA,CAAA,EAYT,iBAZS"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { SingleOrArray } from "../../../../types.js";
|
|
2
|
+
import { ClaimFormat } from "../../models/ClaimFormat.js";
|
|
1
3
|
import { W3cCredential, W3cCredentialOptions } from "../../models/credential/W3cCredential.js";
|
|
2
4
|
import { W3cJsonCredential } from "../../models/credential/W3cJsonCredential.js";
|
|
3
5
|
import { DataIntegrityProof, DataIntegrityProofOptions } from "./DataIntegrityProof.js";
|
|
4
6
|
import { LinkedDataProof, LinkedDataProofOptions } from "./LinkedDataProof.js";
|
|
5
|
-
import { ClaimFormat } from "../../models/ClaimFormat.js";
|
|
6
|
-
import { SingleOrArray } from "../../../../types.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiableCredential.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiableCredential.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAasD,UAArC,oCAAA,SAA6C,oBAAR,CAAA;OAC/B,EAAd,aAAc,CAAA,sBAAA,GAAyB,yBAAzB,CAAA;;AAAd,cAGI,6BAAA,SAAsC,aAAA,CAH1C;aADqD,CAAA,OAAA,EAKhC,oCALgC;EAAoB,KAAA,EAkBjE,aAlBiE,CAkBnD,eAlBmD,GAkBjC,kBAlBiC,CAAA;EAIrE,IAAA,UAAA,CAAA,CAAA,EAgBc,KAhBd,CAAA,MAAA,CAAA;EAA8B,IAAA,yBAAA,CAAA,CAAA,EAqBD,KArBC,CAAA,MAAA,CAAA;QACb,CAAA,CAAA,EA2Bf,MA3Be,CAAA,MAAA,EAAA,GAAA,CAAA;SAaC,QAAA,CAAA,IAAA,EAkBA,MAlBA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,EAkBuB,6BAlBvB;;;;MAOW,WAAA,CAAA,CAAA,EAkBd,WAAA,CAAY,KAlBE;;;;;MA0BtB,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA;MAIW,cAAA,CAAA,CAAA,EAAA,iBAAA"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
4
4
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
5
5
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
6
|
-
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
7
6
|
const require_array = require('../../../../utils/array.js');
|
|
7
|
+
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
8
8
|
const require_validators = require('../../../../utils/validators.js');
|
|
9
9
|
require('../../../../utils/index.js');
|
|
10
10
|
const require_ClaimFormat = require('../../models/ClaimFormat.js');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
4
4
|
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
5
|
-
import { JsonTransformer } from "../../../../utils/JsonTransformer.mjs";
|
|
6
5
|
import { asArray, mapSingleOrArray } from "../../../../utils/array.mjs";
|
|
6
|
+
import { JsonTransformer } from "../../../../utils/JsonTransformer.mjs";
|
|
7
7
|
import { IsInstanceOrArrayOfInstances } from "../../../../utils/validators.mjs";
|
|
8
8
|
import "../../../../utils/index.mjs";
|
|
9
9
|
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"sourcesContent":["import { ValidateNested } from 'class-validator'\nimport type { SingleOrArray } from '../../../../types'\nimport { asArray, IsInstanceOrArrayOfInstances, JsonTransformer, mapSingleOrArray } from '../../../../utils'\nimport { ClaimFormat } from '../../models/ClaimFormat'\nimport type { W3cCredentialOptions } from '../../models/credential/W3cCredential'\nimport { W3cCredential } from '../../models/credential/W3cCredential'\nimport type { W3cJsonCredential } from '../../models/credential/W3cJsonCredential'\nimport type { DataIntegrityProofOptions } from './DataIntegrityProof'\nimport { DataIntegrityProof } from './DataIntegrityProof'\nimport type { LinkedDataProofOptions } from './LinkedDataProof'\nimport { LinkedDataProof } from './LinkedDataProof'\nimport { ProofTransformer } from './ProofTransformer'\n\nexport interface W3cJsonLdVerifiableCredentialOptions extends W3cCredentialOptions {\n proof: SingleOrArray<LinkedDataProofOptions | DataIntegrityProofOptions>\n}\n\nexport class W3cJsonLdVerifiableCredential extends W3cCredential {\n public constructor(options: W3cJsonLdVerifiableCredentialOptions) {\n super(options)\n if (options) {\n this.proof = mapSingleOrArray(options.proof, (proof) => {\n if (proof.cryptosuite) return new DataIntegrityProof(proof)\n return new LinkedDataProof(proof as LinkedDataProofOptions)\n })\n }\n }\n\n @ProofTransformer()\n @IsInstanceOrArrayOfInstances({ classType: [LinkedDataProof, DataIntegrityProof] })\n @ValidateNested()\n public proof!: SingleOrArray<LinkedDataProof | DataIntegrityProof>\n\n public get proofTypes(): Array<string> {\n const proofArray = asArray(this.proof) ?? []\n return proofArray.map((proof) => proof.type)\n }\n\n public get dataIntegrityCryptosuites(): Array<string> {\n const proofArray = asArray(this.proof) ?? []\n return proofArray\n .filter((proof): proof is DataIntegrityProof => proof.type === 'DataIntegrityProof' && 'cryptosuite' in proof)\n .map((proof) => proof.cryptosuite)\n }\n\n public toJson() {\n return JsonTransformer.toJSON(this)\n }\n\n public static fromJson(json: Record<string, unknown>) {\n return JsonTransformer.fromJSON(json, W3cJsonLdVerifiableCredential)\n }\n\n /**\n * The {@link ClaimFormat} of the credential. For JSON-LD credentials this is always `ldp_vc`.\n */\n public get claimFormat(): ClaimFormat.LdpVc {\n return ClaimFormat.LdpVc\n }\n\n /**\n * Get the encoded variant of the W3C Verifiable Credential. For JSON-LD credentials this is\n * a JSON object.\n */\n public get encoded() {\n return this.toJson()\n }\n\n public get jsonCredential(): W3cJsonCredential {\n return this.toJson() as W3cJsonCredential\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,IAAa,gCAAb,MAAa,sCAAsC,cAAc;CAC/D,AAAO,YAAY,SAA+C;AAChE,QAAM,QAAQ;AACd,MAAI,QACF,MAAK,QAAQ,iBAAiB,QAAQ,QAAQ,UAAU;AACtD,OAAI,MAAM,YAAa,QAAO,IAAI,mBAAmB,MAAM;AAC3D,UAAO,IAAI,gBAAgB,MAAgC;IAC3D;;CASN,IAAW,aAA4B;AAErC,UADmB,QAAQ,KAAK,MAAM,IAAI,EAAE,EAC1B,KAAK,UAAU,MAAM,KAAK;;CAG9C,IAAW,4BAA2C;AAEpD,UADmB,QAAQ,KAAK,MAAM,IAAI,EAAE,EAEzC,QAAQ,UAAuC,MAAM,SAAS,wBAAwB,iBAAiB,MAAM,CAC7G,KAAK,UAAU,MAAM,YAAY;;CAGtC,AAAO,SAAS;AACd,SAAO,gBAAgB,OAAO,KAAK;;CAGrC,OAAc,SAAS,MAA+B;AACpD,SAAO,gBAAgB,SAAS,MAAM,8BAA8B;;;;;CAMtE,IAAW,cAAiC;AAC1C,SAAO,YAAY;;;;;;CAOrB,IAAW,UAAU;AACnB,SAAO,KAAK,QAAQ;;CAGtB,IAAW,iBAAoC;AAC7C,SAAO,KAAK,QAAQ;;;;CAzCrB,kBAAkB;CAClB,6BAA6B,EAAE,WAAW,CAAC,iBAAiB,mBAAmB,EAAE,CAAC;CAClF,gBAAgB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SingleOrArray } from "../../../../types.mjs";
|
|
2
|
+
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
1
3
|
import { DataIntegrityProof, DataIntegrityProofOptions } from "./DataIntegrityProof.mjs";
|
|
2
4
|
import { LinkedDataProof, LinkedDataProofOptions } from "./LinkedDataProof.mjs";
|
|
3
|
-
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
4
5
|
import { W3cPresentation, W3cPresentationOptions } from "../../models/presentation/W3cPresentation.mjs";
|
|
5
|
-
import { SingleOrArray } from "../../../../types.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts
|
|
8
8
|
interface W3cJsonLdVerifiablePresentationOptions extends W3cPresentationOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiablePresentation.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiablePresentation.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,sCAAA,SAA+C;EAA/C,KAAA,EACR,sBADQ,GACiB,yBADsB;;AAC/C,cAGI,+BAAA,SAAwC,eAAA,CAH5C;aAAyB,CAAA,OAAA,EAIJ,sCAJI;OAD8B,EAe/C,aAf+C,CAejC,eAfiC,GAef,kBAfe,CAAA;EAAsB,IAAA,UAAA,CAAA,CAAA,EAiB3D,KAjB2D,CAAA,MAAA,CAAA;EAIzE,IAAA,yBAAA,CAAA,CAAA,EAkB6B,KAlBG,CAAA,MAAA,CAAA;EAAA,MAAA,CAAA,CAAA,EAyB9B,MAzB8B,CAAA,MAAA,EAAA,GAAA,CAAA;;;;MAW5B,WAAA,CAAA,CAAA,EAqBW,WAAA,CAAY,KArBvB;;;;;MA6BG,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SingleOrArray } from "../../../../types.js";
|
|
2
|
+
import { ClaimFormat } from "../../models/ClaimFormat.js";
|
|
1
3
|
import { DataIntegrityProof, DataIntegrityProofOptions } from "./DataIntegrityProof.js";
|
|
2
4
|
import { LinkedDataProof, LinkedDataProofOptions } from "./LinkedDataProof.js";
|
|
3
|
-
import { ClaimFormat } from "../../models/ClaimFormat.js";
|
|
4
5
|
import { W3cPresentation, W3cPresentationOptions } from "../../models/presentation/W3cPresentation.js";
|
|
5
|
-
import { SingleOrArray } from "../../../../types.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiablePresentation.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiablePresentation.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAWwD,UAAvC,sCAAA,SAA+C,sBAAR,CAAA;OAC/C,EAAA,sBAAA,GAAyB,yBAAzB;;AADuD,cAInD,+BAAA,SAAwC,eAAA,CAJW;EAAsB,WAAA,CAAA,OAAA,EAKxD,sCALwD;EAIzE,KAAA,EAWI,aAXJ,CAWkB,eAXc,GAWI,kBAXJ,CAAA;EAAA,IAAA,UAAA,CAAA,CAAA,EAalB,KAbkB,CAAA,MAAA,CAAA;MACf,yBAAA,CAAA,CAAA,EAiBY,KAjBZ,CAAA,MAAA,CAAA;QAUC,CAAA,CAAA,EAchB,MAdgB,CAAA,MAAA,EAAA,GAAA,CAAA;;;;MAOW,WAAA,CAAA,CAAA,EAcd,WAAA,CAAY,KAdE;;;;;EAlB0B,IAAA,OAAA,CAAA,CAAA,EAwChD,MAxCgD,CAAA,MAAA,EAAA,GAAA,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
4
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
5
|
-
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
6
5
|
const require_array = require('../../../../utils/array.js');
|
|
6
|
+
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
7
7
|
const require_validators = require('../../../../utils/validators.js');
|
|
8
8
|
require('../../../../utils/index.js');
|
|
9
9
|
const require_ClaimFormat = require('../../models/ClaimFormat.js');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
4
4
|
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
5
|
-
import { JsonTransformer } from "../../../../utils/JsonTransformer.mjs";
|
|
6
5
|
import { asArray } from "../../../../utils/array.mjs";
|
|
6
|
+
import { JsonTransformer } from "../../../../utils/JsonTransformer.mjs";
|
|
7
7
|
import { IsInstanceOrArrayOfInstances } from "../../../../utils/validators.mjs";
|
|
8
8
|
import "../../../../utils/index.mjs";
|
|
9
9
|
import { ClaimFormat } from "../../models/ClaimFormat.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiablePresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiablePresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"sourcesContent":["import type { SingleOrArray } from '../../../../types'\nimport { asArray, IsInstanceOrArrayOfInstances, JsonTransformer } from '../../../../utils'\nimport { ClaimFormat } from '../../models'\nimport type { W3cPresentationOptions } from '../../models/presentation/W3cPresentation'\nimport { W3cPresentation } from '../../models/presentation/W3cPresentation'\nimport type { DataIntegrityProofOptions } from './DataIntegrityProof'\nimport { DataIntegrityProof } from './DataIntegrityProof'\nimport type { LinkedDataProofOptions } from './LinkedDataProof'\nimport { LinkedDataProof } from './LinkedDataProof'\nimport { ProofTransformer } from './ProofTransformer'\n\nexport interface W3cJsonLdVerifiablePresentationOptions extends W3cPresentationOptions {\n proof: LinkedDataProofOptions | DataIntegrityProofOptions\n}\n\nexport class W3cJsonLdVerifiablePresentation extends W3cPresentation {\n public constructor(options: W3cJsonLdVerifiablePresentationOptions) {\n super(options)\n if (options) {\n if (options.proof.cryptosuite) this.proof = new DataIntegrityProof(options.proof)\n else this.proof = new LinkedDataProof(options.proof as LinkedDataProofOptions)\n }\n }\n\n @ProofTransformer()\n @IsInstanceOrArrayOfInstances({ classType: [LinkedDataProof, DataIntegrityProof] })\n public proof!: SingleOrArray<LinkedDataProof | DataIntegrityProof>\n\n public get proofTypes(): Array<string> {\n const proofArray = asArray(this.proof) ?? []\n return proofArray.map((proof) => proof.type)\n }\n\n public get dataIntegrityCryptosuites(): Array<string> {\n const proofArray = asArray(this.proof) ?? []\n return proofArray\n .filter((proof): proof is DataIntegrityProof => proof.type === 'DataIntegrityProof' && 'cryptosuite' in proof)\n .map((proof) => proof.cryptosuite)\n }\n\n public toJson() {\n return JsonTransformer.toJSON(this)\n }\n\n /**\n * The {@link ClaimFormat} of the presentation. For JSON-LD credentials this is always `ldp_vp`.\n */\n public get claimFormat(): ClaimFormat.LdpVp {\n return ClaimFormat.LdpVp\n }\n\n /**\n * Get the encoded variant of the W3C Verifiable Presentation. For JSON-LD presentations this is\n * a JSON object.\n */\n public get encoded() {\n return this.toJson()\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAa,kCAAb,cAAqD,gBAAgB;CACnE,AAAO,YAAY,SAAiD;AAClE,QAAM,QAAQ;AACd,MAAI,QACF,KAAI,QAAQ,MAAM,YAAa,MAAK,QAAQ,IAAI,mBAAmB,QAAQ,MAAM;MAC5E,MAAK,QAAQ,IAAI,gBAAgB,QAAQ,MAAgC;;CAQlF,IAAW,aAA4B;AAErC,UADmB,QAAQ,KAAK,MAAM,IAAI,EAAE,EAC1B,KAAK,UAAU,MAAM,KAAK;;CAG9C,IAAW,4BAA2C;AAEpD,UADmB,QAAQ,KAAK,MAAM,IAAI,EAAE,EAEzC,QAAQ,UAAuC,MAAM,SAAS,wBAAwB,iBAAiB,MAAM,CAC7G,KAAK,UAAU,MAAM,YAAY;;CAGtC,AAAO,SAAS;AACd,SAAO,gBAAgB,OAAO,KAAK;;;;;CAMrC,IAAW,cAAiC;AAC1C,SAAO,YAAY;;;;;;CAOrB,IAAW,UAAU;AACnB,SAAO,KAAK,QAAQ;;;;CAhCrB,kBAAkB;CAClB,6BAA6B,EAAE,WAAW,CAAC,iBAAiB,mBAAmB,EAAE,CAAC"}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const require_DataIntegrityProof = require('./DataIntegrityProof.js');
|
|
4
4
|
const require_W3cJsonLdVerifiableCredential = require('./W3cJsonLdVerifiableCredential.js');
|
|
5
|
-
const require_W3cJsonLdVerifiablePresentation = require('./W3cJsonLdVerifiablePresentation.js');
|
|
6
|
-
const require_LdKeyPair = require('./LdKeyPair.js');
|
|
7
5
|
const require_IAnonCredsDataIntegrityService = require('./IAnonCredsDataIntegrityService.js');
|
|
6
|
+
const require_LdKeyPair = require('./LdKeyPair.js');
|
|
7
|
+
const require_W3cJsonLdVerifiablePresentation = require('./W3cJsonLdVerifiablePresentation.js');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { DataIntegrityProof } from "./DataIntegrityProof.mjs";
|
|
4
4
|
import { W3cJsonLdVerifiableCredential } from "./W3cJsonLdVerifiableCredential.mjs";
|
|
5
|
-
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.mjs";
|
|
6
|
-
import { LdKeyPair } from "./LdKeyPair.mjs";
|
|
7
5
|
import { ANONCREDS_DATA_INTEGRITY_CRYPTOSUITE, AnonCredsDataIntegrityServiceSymbol } from "./IAnonCredsDataIntegrityService.mjs";
|
|
6
|
+
import { LdKeyPair } from "./LdKeyPair.mjs";
|
|
7
|
+
import { W3cJsonLdVerifiablePresentation } from "./W3cJsonLdVerifiablePresentation.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLoader, Proof } from "../jsonldUtil.mjs";
|
|
2
1
|
import { JsonObject } from "../../../../types.mjs";
|
|
2
|
+
import { DocumentLoader, Proof } from "../jsonldUtil.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts
|
|
5
5
|
declare const AssertionProofPurpose: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLoader, Proof } from "../jsonldUtil.js";
|
|
2
1
|
import { JsonObject } from "../../../../types.js";
|
|
2
|
+
import { DocumentLoader, Proof } from "../jsonldUtil.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts
|
|
5
5
|
declare const AssertionProofPurpose: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialIssuancePurpose.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.ts"],"sourcesContent":["import type { JsonObject } from '../../../../types'\nimport type { DocumentLoader, Proof } from '../jsonldUtil'\n\nimport { purposes, suites } from '../libraries/jsonld-signatures'\n\nconst AssertionProofPurpose = purposes.AssertionProofPurpose\nconst LinkedDataProof = suites.LinkedDataProof\n/**\n * Creates a proof purpose that will validate whether or not the verification\n * method in a proof was authorized by its declared controller for the\n * proof's purpose.\n */\nexport class CredentialIssuancePurpose extends AssertionProofPurpose {\n /**\n * @param {object} options - The options to use.\n * @param {object} [options.controller] - The description of the controller,\n * if it is not to be dereferenced via a `documentLoader`.\n * @param {string|Date|number} [options.date] - The expected date for\n * the creation of the proof.\n * @param {number} [options.maxTimestampDelta=Infinity] - A maximum number\n * of seconds that the date on the signature can deviate from.\n */\n public constructor(options: { controller?: Record<string, unknown>; date: string; maxTimestampDelta?: number }) {\n options.maxTimestampDelta = options.maxTimestampDelta || Number.POSITIVE_INFINITY\n super(options)\n }\n\n /**\n * Validates the purpose of a proof. This method is called during\n * proof verification, after the proof value has been checked against the\n * given verification method (in the case of a digital signature, the\n * signature has been cryptographically verified against the public key).\n *\n * @param {object} proof - The proof to validate.\n * @param {object} options - The options to use.\n * @param {object} options.document - The document whose signature is\n * being verified.\n * @param {object} options.suite - Signature suite used in\n * the proof.\n * @param {string} options.verificationMethod - Key id URL to the paired\n * public key.\n * @param {object} [options.documentLoader] - A document loader.\n *\n * @throws {Error} If verification method not authorized by controller.\n * @throws {Error} If proof's created timestamp is out of range.\n *\n * @returns {Promise<{valid: boolean, error: Error}>} Resolves on completion.\n */\n public async validate(\n proof: Proof,\n options?: {\n document: JsonObject\n suite: typeof LinkedDataProof\n verificationMethod: string\n documentLoader?: DocumentLoader\n }\n // biome-ignore lint/suspicious/noExplicitAny:
|
|
1
|
+
{"version":3,"file":"CredentialIssuancePurpose.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.ts"],"sourcesContent":["import type { JsonObject } from '../../../../types'\nimport type { DocumentLoader, Proof } from '../jsonldUtil'\n\nimport { purposes, suites } from '../libraries/jsonld-signatures'\n\nconst AssertionProofPurpose = purposes.AssertionProofPurpose\nconst LinkedDataProof = suites.LinkedDataProof\n/**\n * Creates a proof purpose that will validate whether or not the verification\n * method in a proof was authorized by its declared controller for the\n * proof's purpose.\n */\nexport class CredentialIssuancePurpose extends AssertionProofPurpose {\n /**\n * @param {object} options - The options to use.\n * @param {object} [options.controller] - The description of the controller,\n * if it is not to be dereferenced via a `documentLoader`.\n * @param {string|Date|number} [options.date] - The expected date for\n * the creation of the proof.\n * @param {number} [options.maxTimestampDelta=Infinity] - A maximum number\n * of seconds that the date on the signature can deviate from.\n */\n public constructor(options: { controller?: Record<string, unknown>; date: string; maxTimestampDelta?: number }) {\n options.maxTimestampDelta = options.maxTimestampDelta || Number.POSITIVE_INFINITY\n super(options)\n }\n\n /**\n * Validates the purpose of a proof. This method is called during\n * proof verification, after the proof value has been checked against the\n * given verification method (in the case of a digital signature, the\n * signature has been cryptographically verified against the public key).\n *\n * @param {object} proof - The proof to validate.\n * @param {object} options - The options to use.\n * @param {object} options.document - The document whose signature is\n * being verified.\n * @param {object} options.suite - Signature suite used in\n * the proof.\n * @param {string} options.verificationMethod - Key id URL to the paired\n * public key.\n * @param {object} [options.documentLoader] - A document loader.\n *\n * @throws {Error} If verification method not authorized by controller.\n * @throws {Error} If proof's created timestamp is out of range.\n *\n * @returns {Promise<{valid: boolean, error: Error}>} Resolves on completion.\n */\n public async validate(\n proof: Proof,\n options?: {\n document: JsonObject\n suite: typeof LinkedDataProof\n verificationMethod: string\n documentLoader?: DocumentLoader\n }\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n ): Promise<{ valid: boolean; error?: any }> {\n try {\n const result = await super.validate(proof, options)\n\n if (!result.valid) {\n throw result.error\n }\n\n // This @ts-expect-error is necessary because the .getValues() method is not part of the public API.\n //@ts-expect-error\n const issuer = jsonld.util.getValues(options.document, 'issuer')\n\n if (!issuer || issuer.length === 0) {\n throw new Error('Credential issuer is required.')\n }\n\n const issuerId = typeof issuer[0] === 'string' ? issuer[0] : issuer[0].id\n\n if (result.controller.id !== issuerId) {\n throw new Error('Credential issuer must match the verification method controller.')\n }\n\n return { valid: true }\n } catch (error) {\n return { valid: false, error }\n }\n }\n}\n"],"mappings":";;;;;AAKA,MAAM,wBAAwB,SAAS;AACf,OAAO;;;;;;AAM/B,IAAa,4BAAb,cAA+C,sBAAsB;;;;;;;;;;CAUnE,AAAO,YAAY,SAA6F;AAC9G,UAAQ,oBAAoB,QAAQ,qBAAqB,OAAO;AAChE,QAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;CAwBhB,MAAa,SACX,OACA,SAO0C;AAC1C,MAAI;GACF,MAAM,SAAS,MAAM,MAAM,SAAS,OAAO,QAAQ;AAEnD,OAAI,CAAC,OAAO,MACV,OAAM,OAAO;GAKf,MAAM,SAAS,OAAO,KAAK,UAAU,QAAQ,UAAU,SAAS;AAEhE,OAAI,CAAC,UAAU,OAAO,WAAW,EAC/B,OAAM,IAAI,MAAM,iCAAiC;GAGnD,MAAM,WAAW,OAAO,OAAO,OAAO,WAAW,OAAO,KAAK,OAAO,GAAG;AAEvE,OAAI,OAAO,WAAW,OAAO,SAC3B,OAAM,IAAI,MAAM,mEAAmE;AAGrF,UAAO,EAAE,OAAO,MAAM;WACf,OAAO;AACd,UAAO;IAAE,OAAO;IAAO;IAAO"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array } from "../../../../types.mjs";
|
|
1
2
|
import { DocumentLoader, Proof, VerificationMethod } from "../jsonldUtil.mjs";
|
|
2
3
|
import { LdKeyPair } from "../models/LdKeyPair.mjs";
|
|
3
4
|
|
|
@@ -52,7 +53,7 @@ declare class JwsLinkedDataSignature extends LinkedDataSignature {
|
|
|
52
53
|
* @returns The proof containing the signature value.
|
|
53
54
|
*/
|
|
54
55
|
sign(options: {
|
|
55
|
-
verifyData:
|
|
56
|
+
verifyData: AnyUint8Array;
|
|
56
57
|
proof: Proof;
|
|
57
58
|
}): Promise<Proof>;
|
|
58
59
|
/**
|
|
@@ -64,7 +65,7 @@ declare class JwsLinkedDataSignature extends LinkedDataSignature {
|
|
|
64
65
|
* @returns Resolves with the verification result.
|
|
65
66
|
*/
|
|
66
67
|
verifySignature(options: {
|
|
67
|
-
verifyData:
|
|
68
|
+
verifyData: AnyUint8Array;
|
|
68
69
|
verificationMethod: VerificationMethod;
|
|
69
70
|
proof: Proof;
|
|
70
71
|
}): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwsLinkedDataSignature.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JwsLinkedDataSignature.d.mts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":[],"mappings":";;;;;cAWM;AAAA,UACW,6BAAA,CADqC;EACrC,IAAA,EAAA,MAAA;EAA6B,SAAA,EAAA,MAAA;YAGzB,EAAA,OAAA,SAAA;KACb,CAAA,EAAA,SAAA;OACC,EAAA,KAAA;EAAK,IAAA,EAAA,MAAA;EAMD,UAAA,EAAA,MAAA;EAAuB,iBAAA,EAAA,OAAA;;AAoDO,cApD9B,sBAAA,SAA+B,mBAAA,CAoDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAxBb;;;;;;;;;;;gBAwBa;WAAsB;MAAO,QAAA;;;;;;;;;;gBA6CxD;wBACQ;WACb;MACR;;WA6CoD;qBAAwB;MAAgB;;;;;;;;;;;;;;;;;WA8CpF;cACG;;qBAGO;MAClB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array } from "../../../../types.js";
|
|
1
2
|
import { DocumentLoader, Proof, VerificationMethod } from "../jsonldUtil.js";
|
|
2
3
|
import { LdKeyPair } from "../models/LdKeyPair.js";
|
|
3
4
|
|
|
@@ -53,7 +54,7 @@ declare class JwsLinkedDataSignature extends LinkedDataSignature {
|
|
|
53
54
|
* @returns The proof containing the signature value.
|
|
54
55
|
*/
|
|
55
56
|
sign(options: {
|
|
56
|
-
verifyData:
|
|
57
|
+
verifyData: AnyUint8Array;
|
|
57
58
|
proof: Proof;
|
|
58
59
|
}): Promise<Proof>;
|
|
59
60
|
/**
|
|
@@ -65,7 +66,7 @@ declare class JwsLinkedDataSignature extends LinkedDataSignature {
|
|
|
65
66
|
* @returns Resolves with the verification result.
|
|
66
67
|
*/
|
|
67
68
|
verifySignature(options: {
|
|
68
|
-
verifyData:
|
|
69
|
+
verifyData: AnyUint8Array;
|
|
69
70
|
verificationMethod: VerificationMethod;
|
|
70
71
|
proof: Proof;
|
|
71
72
|
}): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwsLinkedDataSignature.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JwsLinkedDataSignature.d.ts","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":[],"mappings":";;;;;;AAYA,cADM,mBACW,EAAA,GAA6B;AAAA,UAA7B,6BAAA,CAA6B;MAGzB,EAAA,MAAA;WACb,EAAA,MAAA;YACC,EAAA,OAFY,SAEZ;EAAK,GAAA,CAAA,EADN,SACM;EAMD,KAAA,EANJ,KAMI;EAAuB,IAAA,EAAA,MAAA;YA4BN,EAAA,MAAA;mBAwBa,EAAA,OAAA;;AAA6B,cApD3D,sBAAA,SAA+B,mBAAA,CAoD4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAxB1C;;;;;;;;;;;gBAwBa;WAAsB;MAAO,QAAA;;;;;;;;;;gBA6CxD;wBACQ;WACb;MACR;;WA6CoD;qBAAwB;MAAgB;;;;;;;;;;;;;;;;;WA8CpF;cACG;;qBAGO;MAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwsLinkedDataSignature.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":["/*!\n * Copyright (c) 2020-2021 Digital Bazaar, Inc. All rights reserved.\n */\nimport type { DocumentLoader, Proof, VerificationMethod } from '../jsonldUtil'\nimport type { LdKeyPair } from '../models/LdKeyPair'\n\nimport { CredoError } from '../../../../error'\nimport { JsonEncoder, TypedArrayEncoder } from '../../../../utils'\nimport { suites } from '../libraries/jsonld-signatures'\n\nconst LinkedDataSignature = suites.LinkedDataSignature\nexport interface JwsLinkedDataSignatureOptions {\n type: string\n algorithm: string\n LDKeyClass: typeof LdKeyPair\n key?: LdKeyPair\n proof: Proof\n date: string\n contextUrl: string\n useNativeCanonize: boolean\n}\n\nexport class JwsLinkedDataSignature extends LinkedDataSignature {\n /**\n * @param options - Options hashmap.\n * @param options.type - Provided by subclass.\n * @param options.alg - JWS alg provided by subclass.\n * @param [options.LDKeyClass] - Provided by subclass or subclass\n * overrides `getVerificationMethod`.\n *\n * Either a `key` OR at least one of `signer`/`verifier` is required.\n *\n * @param [options.key] - An optional key object (containing an\n * `id` property, and either `signer` or `verifier`, depending on the\n * intended operation. Useful for when the application is managing keys\n * itself (when using a KMS, you never have access to the private key,\n * and so should use the `signer` param instead).\n *\n * Advanced optional parameters and overrides.\n *\n * @param [options.proof] - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from `security-v2`.\n * @param [options.date] - Signing date to use if not passed.\n * @param options.contextUrl - JSON-LD context url that corresponds\n * to this signature suite. Used for enforcing suite context during the\n * `sign()` operation.\n * @param [options.useNativeCanonize] - Whether to use a native\n * canonize algorithm.\n */\n public constructor(options: JwsLinkedDataSignatureOptions) {\n super({\n type: options.type,\n LDKeyClass: options.LDKeyClass,\n contextUrl: options.contextUrl,\n key: options.key,\n signer: undefined,\n verifier: undefined,\n proof: options.proof,\n date: options.date,\n useNativeCanonize: options.useNativeCanonize,\n })\n this.alg = options.algorithm\n }\n\n /**\n * @param options - Options hashmap.\n * @param options.verifyData - The data to sign.\n * @param options.proof - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from `security-v2`.\n *\n * @returns The proof containing the signature value.\n */\n public async sign(options: { verifyData: Uint8Array; proof: Proof }) {\n if (!(this.signer && typeof this.signer.sign === 'function')) {\n throw new Error('A signer API has not been specified.')\n }\n // JWS header\n const header = {\n alg: this.alg,\n b64: false,\n crit: ['b64'],\n }\n\n /*\n +-------+-----------------------------------------------------------+\n | \"b64\" | JWS Signing Input Formula |\n +-------+-----------------------------------------------------------+\n | true | ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.' || |\n | | BASE64URL(JWS Payload)) |\n | | |\n | false | ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.') || |\n | | JWS Payload |\n +-------+-----------------------------------------------------------+\n */\n\n // create JWS data and sign\n const encodedHeader = JsonEncoder.toBase64URL(header)\n\n const data = _createJws({ encodedHeader, verifyData: options.verifyData })\n\n const signature = await this.signer.sign({ data })\n\n // create detached content signature\n const encodedSignature = TypedArrayEncoder.toBase64URL(signature)\n options.proof.jws = `${encodedHeader}..${encodedSignature}`\n return options.proof\n }\n\n /**\n * @param options - Options hashmap.\n * @param options.verifyData - The data to verify.\n * @param options.verificationMethod - A verification method.\n * @param options.proof - The proof to be verified.\n *\n * @returns Resolves with the verification result.\n */\n public async verifySignature(options: {\n verifyData: Uint8Array\n verificationMethod: VerificationMethod\n proof: Proof\n }) {\n if (!(options.proof.jws && typeof options.proof.jws === 'string' && options.proof.jws.includes('.'))) {\n throw new TypeError('The proof does not include a valid \"jws\" property.')\n }\n // add payload into detached content signature\n const [encodedHeader /*payload*/, , encodedSignature] = options.proof.jws.split('.')\n\n // biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>\n let header\n try {\n header = JsonEncoder.fromBase64(encodedHeader)\n } catch (e) {\n throw new Error(`Could not parse JWS header; ${e}`)\n }\n if (!(header && typeof header === 'object')) {\n throw new Error('Invalid JWS header.')\n }\n\n // confirm header matches all expectations\n if (\n !(\n header.alg === this.alg &&\n header.b64 === false &&\n Array.isArray(header.crit) &&\n header.crit.length === 1 &&\n header.crit[0] === 'b64'\n ) &&\n Object.keys(header).length === 3\n ) {\n throw new Error(`Invalid JWS header parameters for ${this.type}.`)\n }\n\n // do signature verification\n const signature = TypedArrayEncoder.fromBase64(encodedSignature)\n\n const data = _createJws({ encodedHeader, verifyData: options.verifyData })\n\n let { verifier } = this\n if (!verifier) {\n const key = await this.LDKeyClass.from(options.verificationMethod)\n verifier = key.verifier()\n }\n return verifier.verify({ data, signature })\n }\n\n public async getVerificationMethod(options: { proof: Proof; documentLoader?: DocumentLoader }) {\n if (this.key) {\n // This happens most often during sign() operations. For verify(),\n // the expectation is that the verification method will be fetched\n // by the documentLoader (below), not provided as a `key` parameter.\n return this.key.export({ publicKey: true })\n }\n\n let { verificationMethod } = options.proof\n\n if (typeof verificationMethod === 'object' && verificationMethod !== null) {\n verificationMethod = verificationMethod.id\n }\n\n if (!verificationMethod) {\n throw new Error('No \"verificationMethod\" found in proof.')\n }\n\n if (!options.documentLoader) {\n throw new CredoError('Missing custom document loader. This is required for resolving verification methods.')\n }\n\n const { document } = await options.documentLoader(verificationMethod)\n\n verificationMethod = typeof document === 'string' ? JSON.parse(document) : document\n\n await this.assertVerificationMethod(verificationMethod)\n return verificationMethod\n }\n\n /**\n * Checks whether a given proof exists in the document.\n *\n * @param options - Options hashmap.\n * @param options.proof - A proof.\n * @param options.document - A JSON-LD document.\n * @param options.purpose - A jsonld-signatures ProofPurpose\n * instance (e.g. AssertionProofPurpose, AuthenticationProofPurpose, etc).\n * @param options.documentLoader - A secure document loader (it is\n * recommended to use one that provides static known documents, instead of\n * fetching from the web) for returning contexts, controller documents,\n * keys, and other relevant URLs needed for the proof.\n *\n * @returns Whether a match for the proof was found.\n */\n public async matchProof(options: {\n proof: Proof\n document: VerificationMethod\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n purpose: any\n documentLoader?: DocumentLoader\n }) {\n const proofMatches = await super.matchProof({\n proof: options.proof,\n document: options.document,\n purpose: options.purpose,\n documentLoader: options.documentLoader,\n })\n if (!proofMatches) {\n return false\n }\n // NOTE: When subclassing this suite: Extending suites will need to check\n\n if (!this.key) {\n // no key specified, so assume this suite matches and it can be retrieved\n return true\n }\n\n const { verificationMethod } = options.proof\n\n // only match if the key specified matches the one in the proof\n if (typeof verificationMethod === 'object') {\n return verificationMethod.id === this.key.id\n }\n return verificationMethod === this.key.id\n }\n}\n\n/**\n * Creates the bytes ready for signing.\n *\n * @param {object} options - Options hashmap.\n * @param {string} options.encodedHeader - A base64url encoded JWT header.\n * @param {Uint8Array} options.verifyData - Payload to sign/verify.\n * @returns {Uint8Array} A combined byte array for signing.\n */\nfunction _createJws(options: { encodedHeader: string; verifyData: Uint8Array }): Uint8Array {\n const encodedHeaderBytes = TypedArrayEncoder.fromString(`${options.encodedHeader}.`)\n\n // concatenate the two uint8arrays\n const data = new Uint8Array(encodedHeaderBytes.length + options.verifyData.length)\n data.set(encodedHeaderBytes, 0)\n data.set(options.verifyData, encodedHeaderBytes.length)\n return data\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"JwsLinkedDataSignature.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.ts"],"sourcesContent":["/*!\n * Copyright (c) 2020-2021 Digital Bazaar, Inc. All rights reserved.\n */\n\nimport { CredoError } from '../../../../error'\nimport type { AnyUint8Array, Uint8ArrayBuffer } from '../../../../types'\nimport { JsonEncoder, TypedArrayEncoder } from '../../../../utils'\nimport type { DocumentLoader, Proof, VerificationMethod } from '../jsonldUtil'\nimport { suites } from '../libraries/jsonld-signatures'\nimport type { LdKeyPair } from '../models/LdKeyPair'\n\nconst LinkedDataSignature = suites.LinkedDataSignature\nexport interface JwsLinkedDataSignatureOptions {\n type: string\n algorithm: string\n LDKeyClass: typeof LdKeyPair\n key?: LdKeyPair\n proof: Proof\n date: string\n contextUrl: string\n useNativeCanonize: boolean\n}\n\nexport class JwsLinkedDataSignature extends LinkedDataSignature {\n /**\n * @param options - Options hashmap.\n * @param options.type - Provided by subclass.\n * @param options.alg - JWS alg provided by subclass.\n * @param [options.LDKeyClass] - Provided by subclass or subclass\n * overrides `getVerificationMethod`.\n *\n * Either a `key` OR at least one of `signer`/`verifier` is required.\n *\n * @param [options.key] - An optional key object (containing an\n * `id` property, and either `signer` or `verifier`, depending on the\n * intended operation. Useful for when the application is managing keys\n * itself (when using a KMS, you never have access to the private key,\n * and so should use the `signer` param instead).\n *\n * Advanced optional parameters and overrides.\n *\n * @param [options.proof] - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from `security-v2`.\n * @param [options.date] - Signing date to use if not passed.\n * @param options.contextUrl - JSON-LD context url that corresponds\n * to this signature suite. Used for enforcing suite context during the\n * `sign()` operation.\n * @param [options.useNativeCanonize] - Whether to use a native\n * canonize algorithm.\n */\n public constructor(options: JwsLinkedDataSignatureOptions) {\n super({\n type: options.type,\n LDKeyClass: options.LDKeyClass,\n contextUrl: options.contextUrl,\n key: options.key,\n signer: undefined,\n verifier: undefined,\n proof: options.proof,\n date: options.date,\n useNativeCanonize: options.useNativeCanonize,\n })\n this.alg = options.algorithm\n }\n\n /**\n * @param options - Options hashmap.\n * @param options.verifyData - The data to sign.\n * @param options.proof - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from `security-v2`.\n *\n * @returns The proof containing the signature value.\n */\n public async sign(options: { verifyData: AnyUint8Array; proof: Proof }) {\n if (!(this.signer && typeof this.signer.sign === 'function')) {\n throw new Error('A signer API has not been specified.')\n }\n // JWS header\n const header = {\n alg: this.alg,\n b64: false,\n crit: ['b64'],\n }\n\n /*\n +-------+-----------------------------------------------------------+\n | \"b64\" | JWS Signing Input Formula |\n +-------+-----------------------------------------------------------+\n | true | ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.' || |\n | | BASE64URL(JWS Payload)) |\n | | |\n | false | ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.') || |\n | | JWS Payload |\n +-------+-----------------------------------------------------------+\n */\n\n // create JWS data and sign\n const encodedHeader = JsonEncoder.toBase64URL(header)\n\n const data = _createJws({ encodedHeader, verifyData: options.verifyData })\n\n const signature = await this.signer.sign({ data })\n\n // create detached content signature\n const encodedSignature = TypedArrayEncoder.toBase64URL(signature)\n options.proof.jws = `${encodedHeader}..${encodedSignature}`\n return options.proof\n }\n\n /**\n * @param options - Options hashmap.\n * @param options.verifyData - The data to verify.\n * @param options.verificationMethod - A verification method.\n * @param options.proof - The proof to be verified.\n *\n * @returns Resolves with the verification result.\n */\n public async verifySignature(options: {\n verifyData: AnyUint8Array\n verificationMethod: VerificationMethod\n proof: Proof\n }) {\n if (!(options.proof.jws && typeof options.proof.jws === 'string' && options.proof.jws.includes('.'))) {\n throw new TypeError('The proof does not include a valid \"jws\" property.')\n }\n // add payload into detached content signature\n const [encodedHeader /*payload*/, , encodedSignature] = options.proof.jws.split('.')\n\n // biome-ignore lint/suspicious/noImplicitAnyLet: no explanation\n let header\n try {\n header = JsonEncoder.fromBase64(encodedHeader)\n } catch (e) {\n throw new Error(`Could not parse JWS header; ${e}`)\n }\n if (!(header && typeof header === 'object')) {\n throw new Error('Invalid JWS header.')\n }\n\n // confirm header matches all expectations\n if (\n !(\n header.alg === this.alg &&\n header.b64 === false &&\n Array.isArray(header.crit) &&\n header.crit.length === 1 &&\n header.crit[0] === 'b64'\n ) &&\n Object.keys(header).length === 3\n ) {\n throw new Error(`Invalid JWS header parameters for ${this.type}.`)\n }\n\n // do signature verification\n const signature = TypedArrayEncoder.fromBase64(encodedSignature)\n\n const data = _createJws({ encodedHeader, verifyData: options.verifyData })\n\n let { verifier } = this\n if (!verifier) {\n const key = await this.LDKeyClass.from(options.verificationMethod)\n verifier = key.verifier()\n }\n return verifier.verify({ data, signature })\n }\n\n public async getVerificationMethod(options: { proof: Proof; documentLoader?: DocumentLoader }) {\n if (this.key) {\n // This happens most often during sign() operations. For verify(),\n // the expectation is that the verification method will be fetched\n // by the documentLoader (below), not provided as a `key` parameter.\n return this.key.export({ publicKey: true })\n }\n\n let { verificationMethod } = options.proof\n\n if (typeof verificationMethod === 'object' && verificationMethod !== null) {\n verificationMethod = verificationMethod.id\n }\n\n if (!verificationMethod) {\n throw new Error('No \"verificationMethod\" found in proof.')\n }\n\n if (!options.documentLoader) {\n throw new CredoError('Missing custom document loader. This is required for resolving verification methods.')\n }\n\n const { document } = await options.documentLoader(verificationMethod)\n\n verificationMethod = typeof document === 'string' ? JSON.parse(document) : document\n\n await this.assertVerificationMethod(verificationMethod)\n return verificationMethod\n }\n\n /**\n * Checks whether a given proof exists in the document.\n *\n * @param options - Options hashmap.\n * @param options.proof - A proof.\n * @param options.document - A JSON-LD document.\n * @param options.purpose - A jsonld-signatures ProofPurpose\n * instance (e.g. AssertionProofPurpose, AuthenticationProofPurpose, etc).\n * @param options.documentLoader - A secure document loader (it is\n * recommended to use one that provides static known documents, instead of\n * fetching from the web) for returning contexts, controller documents,\n * keys, and other relevant URLs needed for the proof.\n *\n * @returns Whether a match for the proof was found.\n */\n public async matchProof(options: {\n proof: Proof\n document: VerificationMethod\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n purpose: any\n documentLoader?: DocumentLoader\n }) {\n const proofMatches = await super.matchProof({\n proof: options.proof,\n document: options.document,\n purpose: options.purpose,\n documentLoader: options.documentLoader,\n })\n if (!proofMatches) {\n return false\n }\n // NOTE: When subclassing this suite: Extending suites will need to check\n\n if (!this.key) {\n // no key specified, so assume this suite matches and it can be retrieved\n return true\n }\n\n const { verificationMethod } = options.proof\n\n // only match if the key specified matches the one in the proof\n if (typeof verificationMethod === 'object') {\n return verificationMethod.id === this.key.id\n }\n return verificationMethod === this.key.id\n }\n}\n\n/**\n * Creates the bytes ready for signing.\n *\n * @param {object} options - Options hashmap.\n * @param {string} options.encodedHeader - A base64url encoded JWT header.\n * @param {Uint8Array} options.verifyData - Payload to sign/verify.\n * @returns {Uint8Array} A combined byte array for signing.\n */\nfunction _createJws(options: { encodedHeader: string; verifyData: AnyUint8Array }): Uint8ArrayBuffer {\n const encodedHeaderBytes = TypedArrayEncoder.fromString(`${options.encodedHeader}.`)\n\n // concatenate the two uint8arrays\n const data = new Uint8Array(encodedHeaderBytes.length + options.verifyData.length)\n data.set(encodedHeaderBytes, 0)\n data.set(options.verifyData, encodedHeaderBytes.length)\n return data\n}\n"],"mappings":"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"}
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2018.d.mts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"Ed25519Signature2018.d.mts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":[],"mappings":";;;;KAWK,2BAAA,GAA8B,KACjC;cAIW,oBAAA,SAA6B,sBAAA;;EALrC,OAAA,OAAA,EAAA,GAAA;EAA2B;;;;AAKhC;;;;;;;;;;;;;;;;;;;;;;;uBA+B8B;qCAcoB,YAAS;;WAgCJ;qBAAwB;MAAgB;;;;;;;;;;;;;cA2C9C;;;;;;;;;;;;;;;;;;;;;WA0BtC;cACG;;qBAGO;MAClB"}
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2018.d.ts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"Ed25519Signature2018.d.ts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":[],"mappings":";;;;KAWK,2BAAA,GAA8B,KACjC;AADG,cAKQ,oBAAA,SAA6B,sBAAA,CALV;EAAA,OAAA,WAAA,EAAA,MAAA;SAC9B,OAAA,EAAA,GAAA;;;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;uBA+B8B;qCAcoB,YAAS;;WAgCJ;qBAAwB;MAAgB;;;;;;;;;;;;;cA2C9C;;;;;;;;;;;;;;;;;;;;;WA0BtC;cACG;;qBAGO;MAClB"}
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2018.mjs","names":["jsonld"],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":["import type { DocumentLoader, JsonLdDoc, Proof, VerificationMethod } from '../../jsonldUtil'\nimport type { JwsLinkedDataSignatureOptions } from '../JwsLinkedDataSignature'\n\nimport { MultiBaseEncoder, TypedArrayEncoder } from '../../../../../utils'\nimport { CREDENTIALS_CONTEXT_V1_URL, SECURITY_CONTEXT_URL } from '../../../constants'\nimport { _includesContext } from '../../jsonldUtil'\nimport jsonld from '../../libraries/jsonld'\nimport { JwsLinkedDataSignature } from '../JwsLinkedDataSignature'\n\nimport { ED25519_SUITE_CONTEXT_URL_2018, ED25519_SUITE_CONTEXT_URL_2020 } from './constants'\nimport { ed25519Signature2018Context } from './context'\n\ntype Ed25519Signature2018Options = Pick<\n JwsLinkedDataSignatureOptions,\n 'key' | 'proof' | 'date' | 'useNativeCanonize' | 'LDKeyClass'\n>\n\nexport class Ed25519Signature2018 extends JwsLinkedDataSignature {\n public static CONTEXT_URL = ED25519_SUITE_CONTEXT_URL_2018\n public static CONTEXT = ed25519Signature2018Context.get(ED25519_SUITE_CONTEXT_URL_2018)\n\n /**\n * @param {object} options - Options hashmap.\n *\n * Either a `key` OR at least one of `signer`/`verifier` is required.\n *\n * @param {object} [options.key] - An optional key object (containing an\n * `id` property, and either `signer` or `verifier`, depending on the\n * intended operation. Useful for when the application is managing keys\n * itself (when using a KMS, you never have access to the private key,\n * and so should use the `signer` param instead).\n * @param {Function} [options.signer] - Signer function that returns an\n * object with an async sign() method. This is useful when interfacing\n * with a KMS (since you don't get access to the private key and its\n * `signer()`, the KMS client gives you only the signer function to use).\n * @param {Function} [options.verifier] - Verifier function that returns\n * an object with an async `verify()` method. Useful when working with a\n * KMS-provided verifier function.\n *\n * Advanced optional parameters and overrides.\n *\n * @param {object} [options.proof] - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from security-v2).\n * @param {string|Date} [options.date] - Signing date to use if not passed.\n * @param {boolean} [options.useNativeCanonize] - Whether to use a native\n * canonize algorithm.\n */\n public constructor(options: Ed25519Signature2018Options) {\n super({\n type: 'Ed25519Signature2018',\n algorithm: 'EdDSA',\n LDKeyClass: options.LDKeyClass,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2018,\n key: options.key,\n proof: options.proof,\n date: options.date,\n useNativeCanonize: options.useNativeCanonize,\n })\n this.requiredKeyType = 'Ed25519VerificationKey2018'\n }\n\n public async assertVerificationMethod(document: JsonLdDoc) {\n if (!_includesCompatibleContext({ document: document })) {\n // For DID Documents, since keys do not have their own contexts,\n // the suite context is usually provided by the documentLoader logic\n throw new TypeError(\n `The '@context' of the verification method (key) MUST contain the context url \"${this.contextUrl}\".`\n )\n }\n\n if (!_isEd2018Key(document) && !_isEd2020Key(document)) {\n const verificationMethodType = jsonld.getValues(document, 'type')[0]\n throw new Error(\n `Unsupported verification method type '${verificationMethodType}'. Verification method type MUST be 'Ed25519VerificationKey2018' or 'Ed25519VerificationKey2020'.`\n )\n }\n if (_isEd2018Key(document) && !_includesEd2018Context(document)) {\n throw new Error(\n `For verification method type 'Ed25519VerificationKey2018' the '@context' MUST contain the context url \"${ED25519_SUITE_CONTEXT_URL_2018}\".`\n )\n }\n if (_isEd2020Key(document) && !_includesEd2020Context(document)) {\n throw new Error(\n `For verification method type 'Ed25519VerificationKey2020' the '@context' MUST contain the context url \"${ED25519_SUITE_CONTEXT_URL_2020}\".`\n )\n }\n\n // ensure verification method has not been revoked\n if (document.revoked !== undefined) {\n throw new Error('The verification method has been revoked.')\n }\n }\n\n public async getVerificationMethod(options: { proof: Proof; documentLoader?: DocumentLoader }) {\n let verificationMethod = await super.getVerificationMethod({\n proof: options.proof,\n documentLoader: options.documentLoader,\n })\n\n // convert Ed25519VerificationKey2020 to Ed25519VerificationKey2018\n if (_isEd2020Key(verificationMethod) && _includesEd2020Context(verificationMethod)) {\n // -- convert multibase to base58 --\n const publicKeyBuffer = MultiBaseEncoder.decode(verificationMethod.publicKeyMultibase)\n\n // -- update context --\n // remove 2020 context\n const context2020Index = verificationMethod['@context'].indexOf(ED25519_SUITE_CONTEXT_URL_2020)\n verificationMethod['@context'].splice(context2020Index, 1)\n\n // add 2018 context\n verificationMethod['@context'].push(ED25519_SUITE_CONTEXT_URL_2018)\n\n // -- update type\n verificationMethod.type = 'Ed25519VerificationKey2018'\n\n verificationMethod = {\n ...verificationMethod,\n publicKeyMultibase: undefined,\n publicKeyBase58: TypedArrayEncoder.toBase58(publicKeyBuffer.data),\n }\n }\n\n return verificationMethod\n }\n\n /**\n * Ensures the document to be signed contains the required signature suite\n * specific `@context`, by either adding it (if `addSuiteContext` is true),\n * or throwing an error if it's missing.\n *\n * @override\n *\n * @param {object} options - Options hashmap.\n * @param {object} options.document - JSON-LD document to be signed.\n * @param {boolean} options.addSuiteContext - Add suite context?\n */\n public ensureSuiteContext(options: { document: JsonLdDoc; addSuiteContext: boolean }) {\n if (_includesCompatibleContext({ document: options.document })) {\n return\n }\n\n super.ensureSuiteContext({ document: options.document, addSuiteContext: options.addSuiteContext })\n }\n\n /**\n * Checks whether a given proof exists in the document.\n *\n * @override\n *\n * @param {object} options - Options hashmap.\n * @param {object} options.proof - A proof.\n * @param {object} options.document - A JSON-LD document.\n * @param {object} options.purpose - A jsonld-signatures ProofPurpose\n * instance (e.g. AssertionProofPurpose, AuthenticationProofPurpose, etc).\n * @param {Function} options.documentLoader - A secure document loader (it is\n * recommended to use one that provides static known documents, instead of\n * fetching from the web) for returning contexts, controller documents,\n * keys, and other relevant URLs needed for the proof.\n *\n * @returns {Promise<boolean>} Whether a match for the proof was found.\n */\n public async matchProof(options: {\n proof: Proof\n document: VerificationMethod\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n purpose: any\n documentLoader?: DocumentLoader\n }) {\n if (!_includesCompatibleContext({ document: options.document })) {\n return false\n }\n return super.matchProof({\n proof: options.proof,\n document: options.document,\n purpose: options.purpose,\n documentLoader: options.documentLoader,\n })\n }\n}\n\nfunction _includesCompatibleContext(options: { document: JsonLdDoc }) {\n // Handle the unfortunate Ed25519Signature2018 / credentials/v1 collision\n const hasEd2018 = _includesContext({\n document: options.document,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2018,\n })\n const hasEd2020 = _includesContext({\n document: options.document,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2020,\n })\n const hasCred = _includesContext({ document: options.document, contextUrl: CREDENTIALS_CONTEXT_V1_URL })\n const hasSecV2 = _includesContext({ document: options.document, contextUrl: SECURITY_CONTEXT_URL })\n\n // TODO: the console.warn statements below should probably be replaced with logging statements. However, this would currently require injection and I'm not sure we want to do that.\n if (hasEd2018 && hasCred) {\n // Warn if both are present\n // console.warn('Warning: The ed25519-2018/v1 and credentials/v1 ' + 'contexts are incompatible.')\n // console.warn('For VCs using Ed25519Signature2018 suite,' + ' using the credentials/v1 context is sufficient.')\n return false\n }\n\n if (hasEd2018 && hasSecV2) {\n // Warn if both are present\n // console.warn('Warning: The ed25519-2018/v1 and security/v2 ' + 'contexts are incompatible.')\n // console.warn('For VCs using Ed25519Signature2018 suite,' + ' using the security/v2 context is sufficient.')\n return false\n }\n\n // Either one by itself is fine, for this suite\n return hasEd2018 || hasEd2020 || hasCred || hasSecV2\n}\n\nfunction _isEd2018Key(verificationMethod: JsonLdDoc) {\n // @ts-ignore - .hasValue is not part of the public API\n return jsonld.hasValue(verificationMethod, 'type', 'Ed25519VerificationKey2018')\n}\n\nfunction _includesEd2018Context(document: JsonLdDoc) {\n return _includesContext({ document, contextUrl: ED25519_SUITE_CONTEXT_URL_2018 })\n}\n\nfunction _isEd2020Key(verificationMethod: JsonLdDoc) {\n // @ts-ignore - .hasValue is not part of the public API\n return jsonld.hasValue(verificationMethod, 'type', 'Ed25519VerificationKey2020')\n}\n\nfunction _includesEd2020Context(document: JsonLdDoc) {\n return _includesContext({ document, contextUrl: ED25519_SUITE_CONTEXT_URL_2020 })\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"Ed25519Signature2018.mjs","names":["jsonld"],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.ts"],"sourcesContent":["import { MultiBaseEncoder, TypedArrayEncoder } from '../../../../../utils'\nimport { CREDENTIALS_CONTEXT_V1_URL, SECURITY_CONTEXT_URL } from '../../../constants'\nimport type { DocumentLoader, JsonLdDoc, Proof, VerificationMethod } from '../../jsonldUtil'\nimport { _includesContext } from '../../jsonldUtil'\nimport jsonld from '../../libraries/jsonld'\nimport type { JwsLinkedDataSignatureOptions } from '../JwsLinkedDataSignature'\nimport { JwsLinkedDataSignature } from '../JwsLinkedDataSignature'\n\nimport { ED25519_SUITE_CONTEXT_URL_2018, ED25519_SUITE_CONTEXT_URL_2020 } from './constants'\nimport { ed25519Signature2018Context } from './context'\n\ntype Ed25519Signature2018Options = Pick<\n JwsLinkedDataSignatureOptions,\n 'key' | 'proof' | 'date' | 'useNativeCanonize' | 'LDKeyClass'\n>\n\nexport class Ed25519Signature2018 extends JwsLinkedDataSignature {\n public static CONTEXT_URL = ED25519_SUITE_CONTEXT_URL_2018\n public static CONTEXT = ed25519Signature2018Context.get(ED25519_SUITE_CONTEXT_URL_2018)\n\n /**\n * @param {object} options - Options hashmap.\n *\n * Either a `key` OR at least one of `signer`/`verifier` is required.\n *\n * @param {object} [options.key] - An optional key object (containing an\n * `id` property, and either `signer` or `verifier`, depending on the\n * intended operation. Useful for when the application is managing keys\n * itself (when using a KMS, you never have access to the private key,\n * and so should use the `signer` param instead).\n * @param {Function} [options.signer] - Signer function that returns an\n * object with an async sign() method. This is useful when interfacing\n * with a KMS (since you don't get access to the private key and its\n * `signer()`, the KMS client gives you only the signer function to use).\n * @param {Function} [options.verifier] - Verifier function that returns\n * an object with an async `verify()` method. Useful when working with a\n * KMS-provided verifier function.\n *\n * Advanced optional parameters and overrides.\n *\n * @param {object} [options.proof] - A JSON-LD document with options to use\n * for the `proof` node. Any other custom fields can be provided here\n * using a context different from security-v2).\n * @param {string|Date} [options.date] - Signing date to use if not passed.\n * @param {boolean} [options.useNativeCanonize] - Whether to use a native\n * canonize algorithm.\n */\n public constructor(options: Ed25519Signature2018Options) {\n super({\n type: 'Ed25519Signature2018',\n algorithm: 'EdDSA',\n LDKeyClass: options.LDKeyClass,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2018,\n key: options.key,\n proof: options.proof,\n date: options.date,\n useNativeCanonize: options.useNativeCanonize,\n })\n this.requiredKeyType = 'Ed25519VerificationKey2018'\n }\n\n public async assertVerificationMethod(document: JsonLdDoc) {\n if (!_includesCompatibleContext({ document: document })) {\n // For DID Documents, since keys do not have their own contexts,\n // the suite context is usually provided by the documentLoader logic\n throw new TypeError(\n `The '@context' of the verification method (key) MUST contain the context url \"${this.contextUrl}\".`\n )\n }\n\n if (!_isEd2018Key(document) && !_isEd2020Key(document)) {\n const verificationMethodType = jsonld.getValues(document, 'type')[0]\n throw new Error(\n `Unsupported verification method type '${verificationMethodType}'. Verification method type MUST be 'Ed25519VerificationKey2018' or 'Ed25519VerificationKey2020'.`\n )\n }\n if (_isEd2018Key(document) && !_includesEd2018Context(document)) {\n throw new Error(\n `For verification method type 'Ed25519VerificationKey2018' the '@context' MUST contain the context url \"${ED25519_SUITE_CONTEXT_URL_2018}\".`\n )\n }\n if (_isEd2020Key(document) && !_includesEd2020Context(document)) {\n throw new Error(\n `For verification method type 'Ed25519VerificationKey2020' the '@context' MUST contain the context url \"${ED25519_SUITE_CONTEXT_URL_2020}\".`\n )\n }\n\n // ensure verification method has not been revoked\n if (document.revoked !== undefined) {\n throw new Error('The verification method has been revoked.')\n }\n }\n\n public async getVerificationMethod(options: { proof: Proof; documentLoader?: DocumentLoader }) {\n let verificationMethod = await super.getVerificationMethod({\n proof: options.proof,\n documentLoader: options.documentLoader,\n })\n\n // convert Ed25519VerificationKey2020 to Ed25519VerificationKey2018\n if (_isEd2020Key(verificationMethod) && _includesEd2020Context(verificationMethod)) {\n // -- convert multibase to base58 --\n const publicKeyBuffer = MultiBaseEncoder.decode(verificationMethod.publicKeyMultibase)\n\n // -- update context --\n // remove 2020 context\n const context2020Index = verificationMethod['@context'].indexOf(ED25519_SUITE_CONTEXT_URL_2020)\n verificationMethod['@context'].splice(context2020Index, 1)\n\n // add 2018 context\n verificationMethod['@context'].push(ED25519_SUITE_CONTEXT_URL_2018)\n\n // -- update type\n verificationMethod.type = 'Ed25519VerificationKey2018'\n\n verificationMethod = {\n ...verificationMethod,\n publicKeyMultibase: undefined,\n publicKeyBase58: TypedArrayEncoder.toBase58(publicKeyBuffer.data),\n }\n }\n\n return verificationMethod\n }\n\n /**\n * Ensures the document to be signed contains the required signature suite\n * specific `@context`, by either adding it (if `addSuiteContext` is true),\n * or throwing an error if it's missing.\n *\n * @override\n *\n * @param {object} options - Options hashmap.\n * @param {object} options.document - JSON-LD document to be signed.\n * @param {boolean} options.addSuiteContext - Add suite context?\n */\n public ensureSuiteContext(options: { document: JsonLdDoc; addSuiteContext: boolean }) {\n if (_includesCompatibleContext({ document: options.document })) {\n return\n }\n\n super.ensureSuiteContext({ document: options.document, addSuiteContext: options.addSuiteContext })\n }\n\n /**\n * Checks whether a given proof exists in the document.\n *\n * @override\n *\n * @param {object} options - Options hashmap.\n * @param {object} options.proof - A proof.\n * @param {object} options.document - A JSON-LD document.\n * @param {object} options.purpose - A jsonld-signatures ProofPurpose\n * instance (e.g. AssertionProofPurpose, AuthenticationProofPurpose, etc).\n * @param {Function} options.documentLoader - A secure document loader (it is\n * recommended to use one that provides static known documents, instead of\n * fetching from the web) for returning contexts, controller documents,\n * keys, and other relevant URLs needed for the proof.\n *\n * @returns {Promise<boolean>} Whether a match for the proof was found.\n */\n public async matchProof(options: {\n proof: Proof\n document: VerificationMethod\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n purpose: any\n documentLoader?: DocumentLoader\n }) {\n if (!_includesCompatibleContext({ document: options.document })) {\n return false\n }\n return super.matchProof({\n proof: options.proof,\n document: options.document,\n purpose: options.purpose,\n documentLoader: options.documentLoader,\n })\n }\n}\n\nfunction _includesCompatibleContext(options: { document: JsonLdDoc }) {\n // Handle the unfortunate Ed25519Signature2018 / credentials/v1 collision\n const hasEd2018 = _includesContext({\n document: options.document,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2018,\n })\n const hasEd2020 = _includesContext({\n document: options.document,\n contextUrl: ED25519_SUITE_CONTEXT_URL_2020,\n })\n const hasCred = _includesContext({ document: options.document, contextUrl: CREDENTIALS_CONTEXT_V1_URL })\n const hasSecV2 = _includesContext({ document: options.document, contextUrl: SECURITY_CONTEXT_URL })\n\n // TODO: the console.warn statements below should probably be replaced with logging statements. However, this would currently require injection and I'm not sure we want to do that.\n if (hasEd2018 && hasCred) {\n // Warn if both are present\n // console.warn('Warning: The ed25519-2018/v1 and credentials/v1 ' + 'contexts are incompatible.')\n // console.warn('For VCs using Ed25519Signature2018 suite,' + ' using the credentials/v1 context is sufficient.')\n return false\n }\n\n if (hasEd2018 && hasSecV2) {\n // Warn if both are present\n // console.warn('Warning: The ed25519-2018/v1 and security/v2 ' + 'contexts are incompatible.')\n // console.warn('For VCs using Ed25519Signature2018 suite,' + ' using the security/v2 context is sufficient.')\n return false\n }\n\n // Either one by itself is fine, for this suite\n return hasEd2018 || hasEd2020 || hasCred || hasSecV2\n}\n\nfunction _isEd2018Key(verificationMethod: JsonLdDoc) {\n // @ts-expect-error - .hasValue is not part of the public API\n return jsonld.hasValue(verificationMethod, 'type', 'Ed25519VerificationKey2018')\n}\n\nfunction _includesEd2018Context(document: JsonLdDoc) {\n return _includesContext({ document, contextUrl: ED25519_SUITE_CONTEXT_URL_2018 })\n}\n\nfunction _isEd2020Key(verificationMethod: JsonLdDoc) {\n // @ts-expect-error - .hasValue is not part of the public API\n return jsonld.hasValue(verificationMethod, 'type', 'Ed25519VerificationKey2020')\n}\n\nfunction _includesEd2020Context(document: JsonLdDoc) {\n return _includesContext({ document, contextUrl: ED25519_SUITE_CONTEXT_URL_2020 })\n}\n"],"mappings":"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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array } from "../../../../../types.mjs";
|
|
1
2
|
import { DocumentLoader, JsonLdDoc, Proof, VerificationMethod } from "../../jsonldUtil.mjs";
|
|
2
3
|
import { JwsLinkedDataSignature, JwsLinkedDataSignatureOptions } from "../JwsLinkedDataSignature.mjs";
|
|
3
4
|
|
|
@@ -87,7 +88,7 @@ declare class Ed25519Signature2020 extends JwsLinkedDataSignature {
|
|
|
87
88
|
* @returns The proof containing the signature value.
|
|
88
89
|
*/
|
|
89
90
|
sign(options: {
|
|
90
|
-
verifyData:
|
|
91
|
+
verifyData: AnyUint8Array;
|
|
91
92
|
proof: Proof;
|
|
92
93
|
}): Promise<Proof>;
|
|
93
94
|
/**
|
|
@@ -99,7 +100,7 @@ declare class Ed25519Signature2020 extends JwsLinkedDataSignature {
|
|
|
99
100
|
* @returns Resolves with the verification result.
|
|
100
101
|
*/
|
|
101
102
|
verifySignature(options: {
|
|
102
|
-
verifyData:
|
|
103
|
+
verifyData: AnyUint8Array;
|
|
103
104
|
verificationMethod: VerificationMethod;
|
|
104
105
|
proof: Proof;
|
|
105
106
|
}): Promise<any>;
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2020.d.mts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Ed25519Signature2020.d.mts","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.ts"],"sourcesContent":[],"mappings":";;;;;KAYK,2BAAA,GAA8B,KACjC;cAIW,oBAAA,SAA6B,sBAAA;;EALrC,OAAA,OAAA,EAAA,GAAA;EAA2B;;;;AAKhC;;;;;;;;;;;;;;;;;;;;;;;uBA+B8B;qCAcoB,YAAS;;WA2BJ;qBAAwB;MAAgB;;;;;;;;;;;;;cAsC9C;;;;;;;;;;;;;;;;;;;;;WA0BtC;cACG;;qBAGO;MAClB;;;;;;;;;;;gBAqBwC;WAAsB;MAAO,QAAA;;;;;;;;;;gBAqBxD;wBACQ;WACb;MACR"}
|