@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
package/build/crypto/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const require_Sha1 = require('./hashes/Sha1.js');
|
|
4
4
|
const require_Sha256 = require('./hashes/Sha256.js');
|
|
5
|
+
const require_Sha384 = require('./hashes/Sha384.js');
|
|
5
6
|
const require_Sha512 = require('./hashes/Sha512.js');
|
|
6
7
|
const require_Hasher = require('./hashes/Hasher.js');
|
|
7
8
|
require('./hashes/index.js');
|
package/build/crypto/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Jwt.d.mts","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"Jwt.d.mts","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":[],"mappings":";;;;;UAQU,SAAA;;;QAGF;EAHE,GAAA,CAAA,EAAA,MAAS,EAAA;EAgBN,CAAA,GAAA,EAAG,MAAA,CAAA,EAAA,OAAA;;AACM,cADT,GAAA,CACS;SAEK,MAAA,EAFL,MAEK;WACD,OAAA,EADC,UACD;WACG,MAAA,EADH,SACG;WAe0B,SAAA,EAf1B,MAe0B;EAAA;;;;;mDAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Jwt.d.ts","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"Jwt.d.ts","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":[],"mappings":";;;;;UAQU,SAAA;;EAAA,GAAA,CAAA,EAAA,MAAS;EAgBN,GAAA,CAAA,EAbL,GAaQ;EAAA,GAAA,CAAA,EAAA,MAAA,EAAA;MACM,EAAA,MAAA,CAAA,EAAA,OAAA;;AAGI,cAJb,GAAA,CAIa;SACG,MAAA,EAJP,MAIO;WAe0B,OAAA,EAjB5B,UAiB4B;EAAA,SAAA,MAAA,EAhB7B,SAgB6B;sBAf1B;;;;;;mDAe0B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
const require_replaceError = require('../../../logger/replaceError.js');
|
|
3
4
|
const require_CredoError = require('../../../error/CredoError.js');
|
|
4
5
|
require('../../../error/index.js');
|
|
5
|
-
const require_replaceError = require('../../../logger/replaceError.js');
|
|
6
6
|
const require_TypedArrayEncoder = require('../../../utils/TypedArrayEncoder.js');
|
|
7
7
|
const require_JsonEncoder = require('../../../utils/JsonEncoder.js');
|
|
8
8
|
require('../../../utils/index.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { replaceError } from "../../../logger/replaceError.mjs";
|
|
3
4
|
import { CredoError } from "../../../error/CredoError.mjs";
|
|
4
5
|
import "../../../error/index.mjs";
|
|
5
|
-
import { replaceError } from "../../../logger/replaceError.mjs";
|
|
6
6
|
import { TypedArrayEncoder } from "../../../utils/TypedArrayEncoder.mjs";
|
|
7
7
|
import { JsonEncoder } from "../../../utils/JsonEncoder.mjs";
|
|
8
8
|
import "../../../utils/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Jwt.mjs","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Jwt.mjs","names":[],"sources":["../../../../src/crypto/jose/jwt/Jwt.ts"],"sourcesContent":["import { CredoError } from '../../../error'\nimport { replaceError } from '../../../logger/replaceError'\nimport type { Jwk } from '../../../modules/kms'\nimport type { Buffer } from '../../../utils'\nimport { JsonEncoder, TypedArrayEncoder } from '../../../utils'\nimport { JwtPayload } from './JwtPayload'\n\n// TODO: JWT Header typing\ninterface JwtHeader {\n alg: string\n kid?: string\n jwk?: Jwk\n x5c?: string[]\n [key: string]: unknown\n}\n\ninterface JwtOptions {\n payload: JwtPayload\n header: JwtHeader\n signature: Buffer\n\n serializedJwt: string\n}\n\nexport class Jwt {\n public static format = /^[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*$/\n\n public readonly payload: JwtPayload\n public readonly header: JwtHeader\n public readonly signature: Buffer\n\n /**\n * Compact serialization of the JWT. Contains the payload, header, and signature.\n */\n public readonly serializedJwt: string\n\n private constructor(options: JwtOptions) {\n this.serializedJwt = options.serializedJwt\n\n this.payload = options.payload\n this.header = options.header\n this.signature = options.signature\n }\n\n public static fromSerializedJwt(serializedJwt: string) {\n if (typeof serializedJwt !== 'string' || !Jwt.format.test(serializedJwt)) {\n throw new CredoError(`Invalid JWT. '${serializedJwt}' does not match JWT regex`)\n }\n\n const [header, payload, signature] = serializedJwt.split('.')\n\n try {\n return new Jwt({\n header: JsonEncoder.fromBase64(header),\n payload: JwtPayload.fromJson(JsonEncoder.fromBase64(payload)),\n signature: TypedArrayEncoder.fromBase64(signature),\n serializedJwt,\n })\n } catch (error) {\n throw new CredoError(\n `Invalid JWT. ${error instanceof Error ? error.message : JSON.stringify(error, replaceError)}`\n )\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AAwBA,IAAa,MAAb,MAAa,IAAI;CAYf,AAAQ,YAAY,SAAqB;AACvC,OAAK,gBAAgB,QAAQ;AAE7B,OAAK,UAAU,QAAQ;AACvB,OAAK,SAAS,QAAQ;AACtB,OAAK,YAAY,QAAQ;;CAG3B,OAAc,kBAAkB,eAAuB;AACrD,MAAI,OAAO,kBAAkB,YAAY,CAAC,IAAI,OAAO,KAAK,cAAc,CACtE,OAAM,IAAI,WAAW,iBAAiB,cAAc,4BAA4B;EAGlF,MAAM,CAAC,QAAQ,SAAS,aAAa,cAAc,MAAM,IAAI;AAE7D,MAAI;AACF,UAAO,IAAI,IAAI;IACb,QAAQ,YAAY,WAAW,OAAO;IACtC,SAAS,WAAW,SAAS,YAAY,WAAW,QAAQ,CAAC;IAC7D,WAAW,kBAAkB,WAAW,UAAU;IAClD;IACD,CAAC;WACK,OAAO;AACd,SAAM,IAAI,WACR,gBAAgB,iBAAiB,QAAQ,MAAM,UAAU,KAAK,UAAU,OAAO,aAAa,GAC7F;;;;IApCS,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoSubtle.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"CredoSubtle.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":[],"mappings":";;;;cAMa,WAAA,SAAoB,IAAA,CAAK,YAAA;+BACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoSubtle.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"CredoSubtle.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":[],"mappings":";;;;cAMa,WAAA,SAAoB,IAAA,CAAK,YAAA;+BACA;AADtC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
4
4
|
const require_CredoEcdsaProvider = require('./providers/CredoEcdsaProvider.js');
|
|
5
|
-
const require_CredoSha256Provider = require('./providers/CredoSha256Provider.js');
|
|
6
5
|
const require_CredoSha1Provider = require('./providers/CredoSha1Provider.js');
|
|
6
|
+
const require_CredoSha256Provider = require('./providers/CredoSha256Provider.js');
|
|
7
7
|
require('./providers/index.js');
|
|
8
8
|
const require_CredoEd25519Provider = require('./providers/CredoEd25519Provider.js');
|
|
9
9
|
let webcrypto_core = require("webcrypto-core");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
import { CredoEcdsaProvider } from "./providers/CredoEcdsaProvider.mjs";
|
|
4
|
-
import { CredoSha256Provider } from "./providers/CredoSha256Provider.mjs";
|
|
5
4
|
import { CredoSha1Provider } from "./providers/CredoSha1Provider.mjs";
|
|
5
|
+
import { CredoSha256Provider } from "./providers/CredoSha256Provider.mjs";
|
|
6
6
|
import "./providers/index.mjs";
|
|
7
7
|
import { CredoEd25519Provider } from "./providers/CredoEd25519Provider.mjs";
|
|
8
8
|
import * as core from "webcrypto-core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoSubtle.mjs","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"CredoSubtle.mjs","names":[],"sources":["../../../src/crypto/webcrypto/CredoSubtle.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport type { CredoWalletWebCrypto } from './CredoWalletWebCrypto'\n\nimport { CredoEcdsaProvider, CredoSha1Provider, CredoSha256Provider } from './providers'\nimport { CredoEd25519Provider } from './providers/CredoEd25519Provider'\n\nexport class CredoSubtle extends core.SubtleCrypto {\n public constructor(walletWebCrypto: CredoWalletWebCrypto) {\n super()\n\n this.providers.set(new CredoEcdsaProvider(walletWebCrypto))\n this.providers.set(new CredoEd25519Provider(walletWebCrypto))\n\n this.providers.set(new CredoSha1Provider())\n this.providers.set(new CredoSha256Provider())\n }\n}\n"],"mappings":";;;;;;;;;;AAMA,IAAa,cAAb,cAAiC,KAAK,aAAa;CACjD,AAAO,YAAY,iBAAuC;AACxD,SAAO;AAEP,OAAK,UAAU,IAAI,IAAI,mBAAmB,gBAAgB,CAAC;AAC3D,OAAK,UAAU,IAAI,IAAI,qBAAqB,gBAAgB,CAAC;AAE7D,OAAK,UAAU,IAAI,IAAI,mBAAmB,CAAC;AAC3C,OAAK,UAAU,IAAI,IAAI,qBAAqB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KmsCreateKeyReturn } from "../../modules/kms/options/KmsCreateKeyOptions.mjs";
|
|
2
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../../types.mjs";
|
|
2
3
|
import { JsonWebKey, KeyFormat, KeyGenAlgorithm, KeyImportParams, KeySignParams, KeyUsage, KeyVerifyParams } from "./types.mjs";
|
|
4
|
+
import { CredoWebCryptoKey } from "./CredoWebCryptoKey.mjs";
|
|
3
5
|
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
4
|
-
import { KmsCreateKeyReturn } from "../../modules/kms/options/KmsCreateKeyOptions.mjs";
|
|
5
6
|
|
|
6
7
|
//#region src/crypto/webcrypto/CredoWalletWebCrypto.d.ts
|
|
7
8
|
declare class CredoWalletWebCrypto {
|
|
8
|
-
private agentContext;
|
|
9
9
|
private kms;
|
|
10
10
|
constructor(agentContext: AgentContext);
|
|
11
11
|
generateRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
12
|
-
sign(key: CredoWebCryptoKey, message:
|
|
13
|
-
verify(key: CredoWebCryptoKey, algorithm: KeyVerifyParams, message:
|
|
12
|
+
sign(key: CredoWebCryptoKey, message: AnyUint8Array, algorithm: KeySignParams): Promise<Uint8ArrayBuffer>;
|
|
13
|
+
verify(key: CredoWebCryptoKey, algorithm: KeyVerifyParams, message: AnyUint8Array, signature: AnyUint8Array): Promise<boolean>;
|
|
14
14
|
generate(algorithm: KeyGenAlgorithm): Promise<KmsCreateKeyReturn<{
|
|
15
15
|
kty: "OKP";
|
|
16
16
|
crv: "Ed25519";
|
|
@@ -32,8 +32,8 @@ declare class CredoWalletWebCrypto {
|
|
|
32
32
|
modulusLength: 4096 | 3072 | 2048;
|
|
33
33
|
crv?: undefined;
|
|
34
34
|
}>>;
|
|
35
|
-
importKey(format: KeyFormat, keyData:
|
|
36
|
-
exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<
|
|
35
|
+
importKey(format: KeyFormat, keyData: AnyUint8Array | JsonWebKey, algorithm: KeyImportParams, extractable: boolean, keyUsages: Array<KeyUsage>): Promise<CredoWebCryptoKey>;
|
|
36
|
+
exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<Uint8ArrayBuffer | JsonWebKey>;
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
export { CredoWalletWebCrypto };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWalletWebCrypto.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWalletWebCrypto.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CredoWalletWebCrypto.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWalletWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;;;cAqBa,oBAAA;;4BAGsB;iCAIK,+BAA+B,IAAI;YAOlE,4BACI,0BACE,gBACV,QAAQ;EAjBA,MAAA,CAAA,GAAA,EA+BJ,iBA/BwB,EAAA,SAAA,EAgClB,eAhCkB,EAAA,OAAA,EAiCpB,aAjCoB,EAAA,SAAA,EAkClB,aAlCkB,CAAA,EAmC5B,OAnC4B,CAAA,OAAA,CAAA;EAAA,QAAA,CAAA,SAAA,EAkFE,eAlFF,CAAA,EAkFiB,OAlFjB,CAkFiB,kBAlFjB,CAAA;IAGE,GAAA,EAAA,KAAA;IAIK,GAAA,EAAA,SAAA;IAA+B,aAAA,CAAA,EAAA,SAAA;MAAI;IAOlE,GAAA,EAAA,KAAA;IACI,GAAA,EAAA,QAAA;IACE,aAAA,CAAA,EAAA,SAAA;MACF;IAAR,GAAA,EAAA,IAAA;IAcI,GAAA,EAAA,OAAA,GAAA,OAAA,GAAA,OAAA;IACM,aAAA,CAAA,EAAA,SAAA;MACF;IACE,GAAA,EAAA,IAAA;IACV,GAAA,EAAA,WAAA;IA+C8B,aAAA,CAAA,EAAA,SAAA;MAAe;IAAA,GAAA,EAAA,KAAA;IAStC,aAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;IACC,GAAA,CAAA,EAAA,SAAA;KAAgB;WACd,CAAA,MAAA,EAFH,SAEG,EAAA,OAAA,EADF,aACE,GADc,UACd,EAAA,SAAA,EAAA,eAAA,EAAA,WAAA,EAAA,OAAA,EAAA,SAAA,EAEA,KAFA,CAEM,QAFN,CAAA,CAAA,EAGV,OAHU,CAGF,iBAHE,CAAA;WAEM,CAAA,MAAA,EA0BY,SA1BZ,EAAA,GAAA,EA0B4B,iBA1B5B,CAAA,EA0BgD,OA1BhD,CA0BwD,gBA1BxD,GA0B2E,UA1B3E,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KmsCreateKeyReturn } from "../../modules/kms/options/KmsCreateKeyOptions.js";
|
|
2
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../../types.js";
|
|
2
3
|
import { JsonWebKey, KeyFormat, KeyGenAlgorithm, KeyImportParams, KeySignParams, KeyUsage, KeyVerifyParams } from "./types.js";
|
|
4
|
+
import { CredoWebCryptoKey } from "./CredoWebCryptoKey.js";
|
|
3
5
|
import { AgentContext } from "../../agent/context/AgentContext.js";
|
|
4
|
-
import { KmsCreateKeyReturn } from "../../modules/kms/options/KmsCreateKeyOptions.js";
|
|
5
6
|
|
|
6
7
|
//#region src/crypto/webcrypto/CredoWalletWebCrypto.d.ts
|
|
7
8
|
declare class CredoWalletWebCrypto {
|
|
8
|
-
private agentContext;
|
|
9
9
|
private kms;
|
|
10
10
|
constructor(agentContext: AgentContext);
|
|
11
11
|
generateRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
12
|
-
sign(key: CredoWebCryptoKey, message:
|
|
13
|
-
verify(key: CredoWebCryptoKey, algorithm: KeyVerifyParams, message:
|
|
12
|
+
sign(key: CredoWebCryptoKey, message: AnyUint8Array, algorithm: KeySignParams): Promise<Uint8ArrayBuffer>;
|
|
13
|
+
verify(key: CredoWebCryptoKey, algorithm: KeyVerifyParams, message: AnyUint8Array, signature: AnyUint8Array): Promise<boolean>;
|
|
14
14
|
generate(algorithm: KeyGenAlgorithm): Promise<KmsCreateKeyReturn<{
|
|
15
15
|
kty: "OKP";
|
|
16
16
|
crv: "Ed25519";
|
|
@@ -32,8 +32,8 @@ declare class CredoWalletWebCrypto {
|
|
|
32
32
|
modulusLength: 4096 | 3072 | 2048;
|
|
33
33
|
crv?: undefined;
|
|
34
34
|
}>>;
|
|
35
|
-
importKey(format: KeyFormat, keyData:
|
|
36
|
-
exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<
|
|
35
|
+
importKey(format: KeyFormat, keyData: AnyUint8Array | JsonWebKey, algorithm: KeyImportParams, extractable: boolean, keyUsages: Array<KeyUsage>): Promise<CredoWebCryptoKey>;
|
|
36
|
+
exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<Uint8ArrayBuffer | JsonWebKey>;
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
export { CredoWalletWebCrypto };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWalletWebCrypto.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWalletWebCrypto.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CredoWalletWebCrypto.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWalletWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;;;cAqBa,oBAAA;;4BAGsB;EAHtB,oBAAA,CAAA,UAO2B,eAPP,GAAA,IAAA,CAAA,CAAA,KAAA,EAOsC,CAPtC,CAAA,EAO0C,CAP1C;EAAA,IAAA,CAAA,GAAA,EAcxB,iBAdwB,EAAA,OAAA,EAepB,aAfoB,EAAA,SAAA,EAgBlB,aAhBkB,CAAA,EAiB5B,OAjB4B,CAiBpB,gBAjBoB,CAAA;QAGE,CAAA,GAAA,EA4B1B,iBA5B0B,EAAA,SAAA,EA6BpB,eA7BoB,EAAA,OAAA,EA8BtB,aA9BsB,EAAA,SAAA,EA+BpB,aA/BoB,CAAA,EAgC9B,OAhC8B,CAAA,OAAA,CAAA;UAIK,CAAA,SAAA,EA2EL,eA3EK,CAAA,EA2EU,OA3EV,CA2EU,kBA3EV,CAAA;IAA+B,GAAA,EAAA,KAAA;IAAI,GAAA,EAAA,SAAA;IAOlE,aAAA,CAAA,EAAA,SAAA;MACI;IACE,GAAA,EAAA,KAAA;IACF,GAAA,EAAA,QAAA;IAAR,aAAA,CAAA,EAAA,SAAA;MAcI;IACM,GAAA,EAAA,IAAA;IACF,GAAA,EAAA,OAAA,GAAA,OAAA,GAAA,OAAA;IACE,aAAA,CAAA,EAAA,SAAA;MACV;IA+C8B,GAAA,EAAA,IAAA;IAAe,GAAA,EAAA,WAAA;IAAA,aAAA,CAAA,EAAA,SAAA;MAStC;IACC,GAAA,EAAA,KAAA;IAAgB,aAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;IACd,GAAA,CAAA,EAAA,SAAA;KAEM;WAAN,CAAA,MAAA,EAJH,SAIG,EAAA,OAAA,EAHF,aAGE,GAHc,UAGd,EAAA,SAAA,EAFA,eAEA,EAAA,WAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,CAAM,QAAN,CAAA,CAAA,EACV,OADU,CACF,iBADE,CAAA;WACF,CAAA,MAAA,EAyBoB,SAzBpB,EAAA,GAAA,EAyBoC,iBAzBpC,CAAA,EAyBwD,OAzBxD,CAyBgE,gBAzBhE,GAyBmF,UAzBnF,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
4
|
+
const require_Hasher = require('../hashes/Hasher.js');
|
|
5
|
+
require('../hashes/index.js');
|
|
4
6
|
const require_PublicJwk = require('../../modules/kms/jwk/PublicJwk.js');
|
|
5
7
|
const require_KeyManagementApi = require('../../modules/kms/KeyManagementApi.js');
|
|
6
8
|
require('../../modules/kms/index.js');
|
|
@@ -9,21 +11,16 @@ const require_CredoWebCryptoError = require('./CredoWebCryptoError.js');
|
|
|
9
11
|
const require_types = require('./types.js');
|
|
10
12
|
const require_keyAlgorithmConversion = require('./utils/keyAlgorithmConversion.js');
|
|
11
13
|
require('./utils/index.js');
|
|
12
|
-
let __noble_hashes_sha2 = require("@noble/hashes/sha2");
|
|
13
|
-
__noble_hashes_sha2 = require_rolldown_runtime.__toESM(__noble_hashes_sha2);
|
|
14
14
|
let __peculiar_asn1_schema = require("@peculiar/asn1-schema");
|
|
15
15
|
__peculiar_asn1_schema = require_rolldown_runtime.__toESM(__peculiar_asn1_schema);
|
|
16
|
-
let __noble_curves_p384 = require("@noble/curves/p384");
|
|
17
|
-
__noble_curves_p384 = require_rolldown_runtime.__toESM(__noble_curves_p384);
|
|
18
16
|
let __peculiar_asn1_x509 = require("@peculiar/asn1-x509");
|
|
19
17
|
__peculiar_asn1_x509 = require_rolldown_runtime.__toESM(__peculiar_asn1_x509);
|
|
20
|
-
let
|
|
21
|
-
|
|
18
|
+
let __noble_curves_nist_js = require("@noble/curves/nist.js");
|
|
19
|
+
__noble_curves_nist_js = require_rolldown_runtime.__toESM(__noble_curves_nist_js);
|
|
22
20
|
|
|
23
21
|
//#region src/crypto/webcrypto/CredoWalletWebCrypto.ts
|
|
24
22
|
var CredoWalletWebCrypto = class {
|
|
25
23
|
constructor(agentContext) {
|
|
26
|
-
this.agentContext = agentContext;
|
|
27
24
|
this.kms = agentContext.resolve(require_KeyManagementApi.KeyManagementApi);
|
|
28
25
|
}
|
|
29
26
|
generateRandomValues(array) {
|
|
@@ -46,11 +43,11 @@ var CredoWalletWebCrypto = class {
|
|
|
46
43
|
const hashAlg = typeof algorithm.hash === "string" ? algorithm.hash : algorithm.hash.name;
|
|
47
44
|
if (publicKey.kty === "EC" && publicKey.crv === "P-256" && hashAlg !== "SHA-256") {
|
|
48
45
|
if (hashAlg !== "SHA-384") throw new require_CredoWebCryptoError.CredoWebCryptoError(`Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`);
|
|
49
|
-
return
|
|
46
|
+
return __noble_curves_nist_js.p256.verify(signature, require_Hasher.Hasher.hash(message, "sha-384"), publicKey.publicKey, { prehash: false });
|
|
50
47
|
}
|
|
51
48
|
if (publicKey.kty === "EC" && publicKey.crv === "P-384" && hashAlg !== "SHA-384") {
|
|
52
49
|
if (hashAlg !== "SHA-256") throw new require_CredoWebCryptoError.CredoWebCryptoError(`Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`);
|
|
53
|
-
return
|
|
50
|
+
return __noble_curves_nist_js.p384.verify(signature, require_Hasher.Hasher.hash(message, "sha-256"), publicKey.publicKey, { prehash: false });
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
const jwaAlgorithm = require_types.keyParamsToJwaAlgorithm(algorithm, key);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { Hasher } from "../hashes/Hasher.mjs";
|
|
4
|
+
import "../hashes/index.mjs";
|
|
3
5
|
import { PublicJwk } from "../../modules/kms/jwk/PublicJwk.mjs";
|
|
4
6
|
import { KeyManagementApi } from "../../modules/kms/KeyManagementApi.mjs";
|
|
5
7
|
import "../../modules/kms/index.mjs";
|
|
@@ -8,16 +10,13 @@ import { CredoWebCryptoError } from "./CredoWebCryptoError.mjs";
|
|
|
8
10
|
import { keyParamsToJwaAlgorithm } from "./types.mjs";
|
|
9
11
|
import { cryptoKeyAlgorithmToCreateKeyOptions, publicJwkToSpki, spkiToPublicJwk } from "./utils/keyAlgorithmConversion.mjs";
|
|
10
12
|
import "./utils/index.mjs";
|
|
11
|
-
import { sha256, sha384 } from "@noble/hashes/sha2";
|
|
12
13
|
import { AsnConvert, AsnParser } from "@peculiar/asn1-schema";
|
|
13
|
-
import { p384 } from "@noble/curves/p384";
|
|
14
14
|
import { SubjectPublicKeyInfo } from "@peculiar/asn1-x509";
|
|
15
|
-
import { p256 } from "@noble/curves/
|
|
15
|
+
import { p256, p384 } from "@noble/curves/nist.js";
|
|
16
16
|
|
|
17
17
|
//#region src/crypto/webcrypto/CredoWalletWebCrypto.ts
|
|
18
18
|
var CredoWalletWebCrypto = class {
|
|
19
19
|
constructor(agentContext) {
|
|
20
|
-
this.agentContext = agentContext;
|
|
21
20
|
this.kms = agentContext.resolve(KeyManagementApi);
|
|
22
21
|
}
|
|
23
22
|
generateRandomValues(array) {
|
|
@@ -40,11 +39,11 @@ var CredoWalletWebCrypto = class {
|
|
|
40
39
|
const hashAlg = typeof algorithm.hash === "string" ? algorithm.hash : algorithm.hash.name;
|
|
41
40
|
if (publicKey.kty === "EC" && publicKey.crv === "P-256" && hashAlg !== "SHA-256") {
|
|
42
41
|
if (hashAlg !== "SHA-384") throw new CredoWebCryptoError(`Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`);
|
|
43
|
-
return p256.verify(signature,
|
|
42
|
+
return p256.verify(signature, Hasher.hash(message, "sha-384"), publicKey.publicKey, { prehash: false });
|
|
44
43
|
}
|
|
45
44
|
if (publicKey.kty === "EC" && publicKey.crv === "P-384" && hashAlg !== "SHA-384") {
|
|
46
45
|
if (hashAlg !== "SHA-256") throw new CredoWebCryptoError(`Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`);
|
|
47
|
-
return p384.verify(signature,
|
|
46
|
+
return p384.verify(signature, Hasher.hash(message, "sha-256"), publicKey.publicKey, { prehash: false });
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
const jwaAlgorithm = keyParamsToJwaAlgorithm(algorithm, key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWalletWebCrypto.mjs","names":[
|
|
1
|
+
{"version":3,"file":"CredoWalletWebCrypto.mjs","names":[],"sources":["../../../src/crypto/webcrypto/CredoWalletWebCrypto.ts"],"sourcesContent":["import { p256, p384 } from '@noble/curves/nist.js'\nimport { AsnConvert, AsnParser } from '@peculiar/asn1-schema'\nimport { SubjectPublicKeyInfo } from '@peculiar/asn1-x509'\nimport type { AgentContext } from '../../agent'\nimport { KeyManagementApi, PublicJwk } from '../../modules/kms'\nimport type { AnyUint8Array, Uint8ArrayBuffer } from '../../types'\nimport { Hasher } from '../hashes'\nimport { CredoWebCryptoError } from './CredoWebCryptoError'\nimport { CredoWebCryptoKey } from './CredoWebCryptoKey'\nimport {\n type JsonWebKey,\n type KeyFormat,\n type KeyGenAlgorithm,\n type KeyImportParams,\n type KeySignParams,\n type KeyUsage,\n type KeyVerifyParams,\n keyParamsToJwaAlgorithm,\n} from './types'\nimport { cryptoKeyAlgorithmToCreateKeyOptions, publicJwkToSpki, spkiToPublicJwk } from './utils'\n\nexport class CredoWalletWebCrypto {\n private kms: KeyManagementApi\n\n public constructor(agentContext: AgentContext) {\n this.kms = agentContext.resolve(KeyManagementApi)\n }\n\n public generateRandomValues<T extends ArrayBufferView | null>(array: T): T {\n if (!array) return array\n\n return this.kms.randomBytes({ length: array.byteLength }) as unknown as T\n }\n\n public async sign(\n key: CredoWebCryptoKey,\n message: AnyUint8Array,\n algorithm: KeySignParams\n ): Promise<Uint8ArrayBuffer> {\n const jwaAlgorithm = keyParamsToJwaAlgorithm(algorithm, key)\n\n const keyId = key.publicJwk.keyId\n const { signature } = await this.kms.sign({\n keyId,\n data: message,\n algorithm: jwaAlgorithm,\n })\n\n return signature\n }\n\n public async verify(\n key: CredoWebCryptoKey,\n algorithm: KeyVerifyParams,\n message: AnyUint8Array,\n signature: AnyUint8Array\n ): Promise<boolean> {\n const publicKey = key.publicJwk.publicKey\n\n // TODO: with new KMS api we can now define custom algorithms\n // such as ES256-SHA384 to support these non-standard JWA combinatiosn\n // or we can do something like ES256-ph (pre-hashed for more generic)\n if (algorithm.name === 'ECDSA') {\n const hashAlg = typeof algorithm.hash === 'string' ? algorithm.hash : algorithm.hash.name\n if (publicKey.kty === 'EC' && publicKey.crv === 'P-256' && hashAlg !== 'SHA-256') {\n if (hashAlg !== 'SHA-384') {\n throw new CredoWebCryptoError(\n `Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`\n )\n }\n\n return p256.verify(signature, Hasher.hash(message, 'sha-384'), publicKey.publicKey, {\n // we use a custom hash\n prehash: false,\n })\n }\n if (publicKey.kty === 'EC' && publicKey.crv === 'P-384' && hashAlg !== 'SHA-384') {\n if (hashAlg !== 'SHA-256') {\n throw new CredoWebCryptoError(\n `Hash Alg: ${hashAlg} is not supported with key type ${publicKey.crv} currently`\n )\n }\n\n return p384.verify(signature, Hasher.hash(message, 'sha-256'), publicKey.publicKey, {\n // we use a custom hash\n prehash: false,\n })\n }\n }\n\n const jwaAlgorithm = keyParamsToJwaAlgorithm(algorithm, key)\n const { verified } = await this.kms.verify({\n key: {\n publicJwk: key.publicJwk.toJson(),\n },\n algorithm: jwaAlgorithm,\n signature,\n data: message,\n })\n\n return verified\n }\n\n public async generate(algorithm: KeyGenAlgorithm) {\n const key = await this.kms.createKey({\n type: cryptoKeyAlgorithmToCreateKeyOptions(algorithm),\n })\n\n return key\n }\n\n public async importKey(\n format: KeyFormat,\n keyData: AnyUint8Array | JsonWebKey,\n algorithm: KeyImportParams,\n extractable: boolean,\n keyUsages: Array<KeyUsage>\n ): Promise<CredoWebCryptoKey> {\n if (format === 'jwk' && keyData instanceof Uint8Array) {\n throw new Error('JWK format is only allowed with a jwk as key data')\n }\n\n if (format !== 'jwk' && !(keyData instanceof Uint8Array)) {\n throw new Error('non-jwk formats are only allowed with a uint8array as key data')\n }\n\n switch (format.toLowerCase()) {\n case 'jwk': {\n const publicJwk = PublicJwk.fromUnknown(keyData)\n return new CredoWebCryptoKey(publicJwk, algorithm as KeyGenAlgorithm, extractable, 'public', keyUsages)\n }\n case 'spki': {\n const subjectPublicKey = AsnParser.parse(keyData as AnyUint8Array, SubjectPublicKeyInfo)\n const publicJwk = spkiToPublicJwk(subjectPublicKey)\n\n return new CredoWebCryptoKey(publicJwk, algorithm as KeyGenAlgorithm, extractable, 'public', keyUsages)\n }\n default:\n throw new Error(`Unsupported export format: ${format}`)\n }\n }\n\n public async exportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<Uint8ArrayBuffer | JsonWebKey> {\n switch (format.toLowerCase()) {\n case 'jwk': {\n return key.publicJwk.toJson()\n }\n case 'spki': {\n const publicKeyInfo = publicJwkToSpki(key.publicJwk)\n\n const derEncoded = AsnConvert.serialize(publicKeyInfo)\n return new Uint8Array(derEncoded)\n }\n\n default:\n throw new Error(`Unsupported export format: ${format}`)\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAa,uBAAb,MAAkC;CAGhC,AAAO,YAAY,cAA4B;AAC7C,OAAK,MAAM,aAAa,QAAQ,iBAAiB;;CAGnD,AAAO,qBAAuD,OAAa;AACzE,MAAI,CAAC,MAAO,QAAO;AAEnB,SAAO,KAAK,IAAI,YAAY,EAAE,QAAQ,MAAM,YAAY,CAAC;;CAG3D,MAAa,KACX,KACA,SACA,WAC2B;EAC3B,MAAM,eAAe,wBAAwB,WAAW,IAAI;EAE5D,MAAM,QAAQ,IAAI,UAAU;EAC5B,MAAM,EAAE,cAAc,MAAM,KAAK,IAAI,KAAK;GACxC;GACA,MAAM;GACN,WAAW;GACZ,CAAC;AAEF,SAAO;;CAGT,MAAa,OACX,KACA,WACA,SACA,WACkB;EAClB,MAAM,YAAY,IAAI,UAAU;AAKhC,MAAI,UAAU,SAAS,SAAS;GAC9B,MAAM,UAAU,OAAO,UAAU,SAAS,WAAW,UAAU,OAAO,UAAU,KAAK;AACrF,OAAI,UAAU,QAAQ,QAAQ,UAAU,QAAQ,WAAW,YAAY,WAAW;AAChF,QAAI,YAAY,UACd,OAAM,IAAI,oBACR,aAAa,QAAQ,kCAAkC,UAAU,IAAI,YACtE;AAGH,WAAO,KAAK,OAAO,WAAW,OAAO,KAAK,SAAS,UAAU,EAAE,UAAU,WAAW,EAElF,SAAS,OACV,CAAC;;AAEJ,OAAI,UAAU,QAAQ,QAAQ,UAAU,QAAQ,WAAW,YAAY,WAAW;AAChF,QAAI,YAAY,UACd,OAAM,IAAI,oBACR,aAAa,QAAQ,kCAAkC,UAAU,IAAI,YACtE;AAGH,WAAO,KAAK,OAAO,WAAW,OAAO,KAAK,SAAS,UAAU,EAAE,UAAU,WAAW,EAElF,SAAS,OACV,CAAC;;;EAIN,MAAM,eAAe,wBAAwB,WAAW,IAAI;EAC5D,MAAM,EAAE,aAAa,MAAM,KAAK,IAAI,OAAO;GACzC,KAAK,EACH,WAAW,IAAI,UAAU,QAAQ,EAClC;GACD,WAAW;GACX;GACA,MAAM;GACP,CAAC;AAEF,SAAO;;CAGT,MAAa,SAAS,WAA4B;AAKhD,SAJY,MAAM,KAAK,IAAI,UAAU,EACnC,MAAM,qCAAqC,UAAU,EACtD,CAAC;;CAKJ,MAAa,UACX,QACA,SACA,WACA,aACA,WAC4B;AAC5B,MAAI,WAAW,SAAS,mBAAmB,WACzC,OAAM,IAAI,MAAM,oDAAoD;AAGtE,MAAI,WAAW,SAAS,EAAE,mBAAmB,YAC3C,OAAM,IAAI,MAAM,iEAAiE;AAGnF,UAAQ,OAAO,aAAa,EAA5B;GACE,KAAK,MAEH,QAAO,IAAI,kBADO,UAAU,YAAY,QAAQ,EACR,WAA8B,aAAa,UAAU,UAAU;GAEzG,KAAK,OAIH,QAAO,IAAI,kBAFO,gBADO,UAAU,MAAM,SAA0B,qBAAqB,CACrC,EAEX,WAA8B,aAAa,UAAU,UAAU;GAEzG,QACE,OAAM,IAAI,MAAM,8BAA8B,SAAS;;;CAI7D,MAAa,UAAU,QAAmB,KAAgE;AACxG,UAAQ,OAAO,aAAa,EAA5B;GACE,KAAK,MACH,QAAO,IAAI,UAAU,QAAQ;GAE/B,KAAK,QAAQ;IACX,MAAM,gBAAgB,gBAAgB,IAAI,UAAU;IAEpD,MAAM,aAAa,WAAW,UAAU,cAAc;AACtD,WAAO,IAAI,WAAW,WAAW;;GAGnC,QACE,OAAM,IAAI,MAAM,8BAA8B,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCrypto.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CredoWebCrypto.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,cAAA,SAAuB,IAAA,CAAK,MAAA;;UAExB;4BAEkB;EAJtB,eAAA,CAAA,UAUsB,eAVP,GAAA,IAAA,CAAA,CAAA,KAAA,EAUsC,CAVtC,CAAA,EAU0C,CAV1C;EAAA,MAAA,CAAA,SAAA,EAAA,MAAA,EAAA,IAAA,EAca,WAdb,CAAA,EAc2B,WAd3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCrypto.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CredoWebCrypto.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,cAAA,SAAuB,IAAA,CAAK,MAAA;;EAA5B,MAAA,EAEI,WAFW;EAAA,WAAA,CAAA,YAAA,EAIO,YAJP;iBAEX,CAAA,UAQkB,eARlB,GAAA,IAAA,CAAA,CAAA,KAAA,EAQiD,CARjD,CAAA,EAQqD,CARrD;QAEkB,CAAA,SAAA,EAAA,MAAA,EAAA,IAAA,EAUM,WAVN,CAAA,EAUoB,WAVpB"}
|
|
@@ -19,7 +19,7 @@ var CredoWebCrypto = class extends webcrypto_core.Crypto {
|
|
|
19
19
|
return this.walletWebCrypto.generateRandomValues(array);
|
|
20
20
|
}
|
|
21
21
|
digest(algorithm, data) {
|
|
22
|
-
return require_Hasher.Hasher.hash(new Uint8Array(data), algorithm);
|
|
22
|
+
return require_Hasher.Hasher.hash(new Uint8Array(data), algorithm).buffer;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -17,7 +17,7 @@ var CredoWebCrypto = class extends core.Crypto {
|
|
|
17
17
|
return this.walletWebCrypto.generateRandomValues(array);
|
|
18
18
|
}
|
|
19
19
|
digest(algorithm, data) {
|
|
20
|
-
return Hasher.hash(new Uint8Array(data), algorithm);
|
|
20
|
+
return Hasher.hash(new Uint8Array(data), algorithm).buffer;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCrypto.mjs","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"CredoWebCrypto.mjs","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCrypto.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport type { AgentContext } from '../../agent'\n\nimport { Hasher } from '../hashes'\n\nimport { CredoSubtle } from './CredoSubtle'\nimport { CredoWalletWebCrypto } from './CredoWalletWebCrypto'\n\nexport class CredoWebCrypto extends core.Crypto {\n private walletWebCrypto: CredoWalletWebCrypto\n public subtle: CredoSubtle\n\n public constructor(agentContext: AgentContext) {\n super()\n this.walletWebCrypto = new CredoWalletWebCrypto(agentContext)\n this.subtle = new CredoSubtle(this.walletWebCrypto)\n }\n\n public getRandomValues<T extends ArrayBufferView | null>(array: T): T {\n return this.walletWebCrypto.generateRandomValues(array)\n }\n\n public digest(algorithm: string, data: ArrayBuffer): ArrayBuffer {\n return Hasher.hash(new Uint8Array(data), algorithm).buffer\n }\n}\n"],"mappings":";;;;;;;;;AAQA,IAAa,iBAAb,cAAoC,KAAK,OAAO;CAI9C,AAAO,YAAY,cAA4B;AAC7C,SAAO;AACP,OAAK,kBAAkB,IAAI,qBAAqB,aAAa;AAC7D,OAAK,SAAS,IAAI,YAAY,KAAK,gBAAgB;;CAGrD,AAAO,gBAAkD,OAAa;AACpE,SAAO,KAAK,gBAAgB,qBAAqB,MAAM;;CAGzD,AAAO,OAAO,WAAmB,MAAgC;AAC/D,SAAO,OAAO,KAAK,IAAI,WAAW,KAAK,EAAE,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCryptoKey.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CredoWebCryptoKey.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,iBAAA,SAA0B,IAAA,CAAK,SAAA;aAEtB;aACS;;EAHlB,IAAA,EAKa,OALb;EAAkB,MAAA,EAMH,KANG,CAMG,QANH,CAAA;aAET,CAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EACS,eADT,EAAA,WAAA,EAAA,OAAA,EAAA,IAAA,EAGI,OAHJ,EAAA,MAAA,EAIM,KAJN,CAIY,QAJZ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCryptoKey.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CredoWebCryptoKey.d.ts","names":[],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,iBAAA,SAA0B,IAAA,CAAK,SAAA;aAEtB;EAFT,SAAA,EAGkB,eAHA;EAAA,WAAA,EAAA,OAAA;MAET,EAGI,OAHJ;QACS,EAGH,KAHG,CAGG,QAHH,CAAA;aAEL,CAAA,SAAA,EAHJ,SAGI,EAAA,SAAA,EAFK,eAEL,EAAA,WAAA,EAAA,OAAA,EAAA,IAAA,EAAA,OAAA,EAAA,MAAA,EACE,KADF,CACQ,QADR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoWebCryptoKey.mjs","names":["publicJwk: PublicJwk","algorithm: KeyGenAlgorithm","extractable: boolean","type: KeyType","usages: Array<KeyUsage>"],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":["import { PublicJwk } from '../../modules/kms'\nimport type { KeyGenAlgorithm, KeyType, KeyUsage } from './types'\n\
|
|
1
|
+
{"version":3,"file":"CredoWebCryptoKey.mjs","names":["publicJwk: PublicJwk","algorithm: KeyGenAlgorithm","extractable: boolean","type: KeyType","usages: Array<KeyUsage>"],"sources":["../../../src/crypto/webcrypto/CredoWebCryptoKey.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport { PublicJwk } from '../../modules/kms'\nimport type { KeyGenAlgorithm, KeyType, KeyUsage } from './types'\n\nexport class CredoWebCryptoKey extends core.CryptoKey {\n public constructor(\n public publicJwk: PublicJwk,\n public override algorithm: KeyGenAlgorithm,\n public override extractable: boolean,\n public override type: KeyType,\n public override usages: Array<KeyUsage>\n ) {\n super()\n }\n}\n"],"mappings":";;;;;;AAIA,IAAa,oBAAb,cAAuC,KAAK,UAAU;CACpD,AAAO,YACL,AAAOA,WACP,AAAgBC,WAChB,AAAgBC,aAChB,AAAgBC,MAChB,AAAgBC,QAChB;AACA,SAAO;EANA;EACS;EACA;EACA;EACA"}
|
|
@@ -14,7 +14,7 @@ var CredoEcdsaProvider = class extends webcrypto_core.EcdsaProvider {
|
|
|
14
14
|
this.walletWebCrypto = walletWebCrypto;
|
|
15
15
|
}
|
|
16
16
|
async onSign(algorithm, key, data) {
|
|
17
|
-
return this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm);
|
|
17
|
+
return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer;
|
|
18
18
|
}
|
|
19
19
|
async onVerify(algorithm, key, signature, data) {
|
|
20
20
|
return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature));
|
|
@@ -28,7 +28,9 @@ var CredoEcdsaProvider = class extends webcrypto_core.EcdsaProvider {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
async onExportKey(format, key) {
|
|
31
|
-
|
|
31
|
+
const exported = await this.walletWebCrypto.exportKey(format, key);
|
|
32
|
+
if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer;
|
|
33
|
+
return exported;
|
|
32
34
|
}
|
|
33
35
|
async onImportKey(format, keyData, algorithm, extractable, keyUsages) {
|
|
34
36
|
return this.walletWebCrypto.importKey(format, keyData.kty ? keyData : new Uint8Array(keyData), algorithm, extractable, keyUsages);
|
|
@@ -12,7 +12,7 @@ var CredoEcdsaProvider = class extends core.EcdsaProvider {
|
|
|
12
12
|
this.walletWebCrypto = walletWebCrypto;
|
|
13
13
|
}
|
|
14
14
|
async onSign(algorithm, key, data) {
|
|
15
|
-
return this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm);
|
|
15
|
+
return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer;
|
|
16
16
|
}
|
|
17
17
|
async onVerify(algorithm, key, signature, data) {
|
|
18
18
|
return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature));
|
|
@@ -26,7 +26,9 @@ var CredoEcdsaProvider = class extends core.EcdsaProvider {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
async onExportKey(format, key) {
|
|
29
|
-
|
|
29
|
+
const exported = await this.walletWebCrypto.exportKey(format, key);
|
|
30
|
+
if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer;
|
|
31
|
+
return exported;
|
|
30
32
|
}
|
|
31
33
|
async onImportKey(format, keyData, algorithm, extractable, keyUsages) {
|
|
32
34
|
return this.walletWebCrypto.importKey(format, keyData.kty ? keyData : new Uint8Array(keyData), algorithm, extractable, keyUsages);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoEcdsaProvider.mjs","names":["walletWebCrypto: CredoWalletWebCrypto"],"sources":["../../../../src/crypto/webcrypto/providers/CredoEcdsaProvider.ts"],"sourcesContent":["import type { CredoWalletWebCrypto } from '../CredoWalletWebCrypto'\nimport type {\n CredoWebCryptoKeyPair,\n
|
|
1
|
+
{"version":3,"file":"CredoEcdsaProvider.mjs","names":["walletWebCrypto: CredoWalletWebCrypto"],"sources":["../../../../src/crypto/webcrypto/providers/CredoEcdsaProvider.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport { PublicJwk } from '../../../modules/kms'\nimport type { CredoWalletWebCrypto } from '../CredoWalletWebCrypto'\nimport { CredoWebCryptoKey } from '../CredoWebCryptoKey'\nimport type {\n CredoWebCryptoKeyPair,\n EcdsaParams,\n EcKeyGenParams,\n EcKeyImportParams,\n JsonWebKey,\n KeyFormat,\n KeyUsage,\n} from '../types'\n\nexport class CredoEcdsaProvider extends core.EcdsaProvider {\n public constructor(private walletWebCrypto: CredoWalletWebCrypto) {\n super()\n }\n\n public async onSign(algorithm: EcdsaParams, key: CredoWebCryptoKey, data: ArrayBuffer): Promise<ArrayBuffer> {\n return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer\n }\n\n public async onVerify(\n algorithm: EcdsaParams,\n key: CredoWebCryptoKey,\n signature: ArrayBuffer,\n data: ArrayBuffer\n ): Promise<boolean> {\n return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature))\n }\n\n public async onGenerateKey(\n algorithm: EcKeyGenParams,\n extractable: boolean,\n keyUsages: KeyUsage[]\n ): Promise<CredoWebCryptoKeyPair> {\n const key = await this.walletWebCrypto.generate(algorithm)\n const publicJwk = PublicJwk.fromPublicJwk(key.publicJwk)\n\n return {\n publicKey: new CredoWebCryptoKey(publicJwk, algorithm, extractable, 'public', keyUsages),\n privateKey: new CredoWebCryptoKey(publicJwk, algorithm, extractable, 'private', keyUsages),\n }\n }\n\n public async onExportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<JsonWebKey | ArrayBuffer> {\n const exported = await this.walletWebCrypto.exportKey(format, key)\n if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer\n return exported\n }\n\n public async onImportKey(\n format: KeyFormat,\n keyData: JsonWebKey | ArrayBuffer,\n algorithm: EcKeyImportParams,\n extractable: boolean,\n keyUsages: KeyUsage[]\n ): Promise<CredoWebCryptoKey> {\n return this.walletWebCrypto.importKey(\n format,\n (keyData as JsonWebKey).kty ? (keyData as JsonWebKey) : new Uint8Array(keyData as ArrayBuffer),\n algorithm,\n extractable,\n keyUsages\n )\n }\n}\n"],"mappings":";;;;;;;;AAcA,IAAa,qBAAb,cAAwC,KAAK,cAAc;CACzD,AAAO,YAAY,AAAQA,iBAAuC;AAChE,SAAO;EADkB;;CAI3B,MAAa,OAAO,WAAwB,KAAwB,MAAyC;AAC3G,SAAO,IAAI,WAAW,MAAM,KAAK,gBAAgB,KAAK,KAAK,IAAI,WAAW,KAAK,EAAE,UAAU,CAAC,CAAC;;CAG/F,MAAa,SACX,WACA,KACA,WACA,MACkB;AAClB,SAAO,KAAK,gBAAgB,OAAO,KAAK,WAAW,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,UAAU,CAAC;;CAGrG,MAAa,cACX,WACA,aACA,WACgC;EAChC,MAAM,MAAM,MAAM,KAAK,gBAAgB,SAAS,UAAU;EAC1D,MAAM,YAAY,UAAU,cAAc,IAAI,UAAU;AAExD,SAAO;GACL,WAAW,IAAI,kBAAkB,WAAW,WAAW,aAAa,UAAU,UAAU;GACxF,YAAY,IAAI,kBAAkB,WAAW,WAAW,aAAa,WAAW,UAAU;GAC3F;;CAGH,MAAa,YAAY,QAAmB,KAA2D;EACrG,MAAM,WAAW,MAAM,KAAK,gBAAgB,UAAU,QAAQ,IAAI;AAClE,MAAI,oBAAoB,WAAY,QAAO,IAAI,WAAW,SAAS,CAAC;AACpE,SAAO;;CAGT,MAAa,YACX,QACA,SACA,WACA,aACA,WAC4B;AAC5B,SAAO,KAAK,gBAAgB,UAC1B,QACC,QAAuB,MAAO,UAAyB,IAAI,WAAW,QAAuB,EAC9F,WACA,aACA,UACD"}
|
|
@@ -14,7 +14,7 @@ var CredoEd25519Provider = class extends webcrypto_core.Ed25519Provider {
|
|
|
14
14
|
this.walletWebCrypto = walletWebCrypto;
|
|
15
15
|
}
|
|
16
16
|
async onSign(algorithm, key, data) {
|
|
17
|
-
return this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm);
|
|
17
|
+
return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer;
|
|
18
18
|
}
|
|
19
19
|
async onVerify(algorithm, key, signature, data) {
|
|
20
20
|
return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature));
|
|
@@ -28,7 +28,9 @@ var CredoEd25519Provider = class extends webcrypto_core.Ed25519Provider {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
async onExportKey(format, key) {
|
|
31
|
-
|
|
31
|
+
const exported = await this.walletWebCrypto.exportKey(format, key);
|
|
32
|
+
if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer;
|
|
33
|
+
return exported;
|
|
32
34
|
}
|
|
33
35
|
async onImportKey(format, keyData, algorithm, extractable, keyUsages) {
|
|
34
36
|
return this.walletWebCrypto.importKey(format, keyData.kty ? keyData : new Uint8Array(keyData), algorithm, extractable, keyUsages);
|
|
@@ -12,7 +12,7 @@ var CredoEd25519Provider = class extends core.Ed25519Provider {
|
|
|
12
12
|
this.walletWebCrypto = walletWebCrypto;
|
|
13
13
|
}
|
|
14
14
|
async onSign(algorithm, key, data) {
|
|
15
|
-
return this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm);
|
|
15
|
+
return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer;
|
|
16
16
|
}
|
|
17
17
|
async onVerify(algorithm, key, signature, data) {
|
|
18
18
|
return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature));
|
|
@@ -26,7 +26,9 @@ var CredoEd25519Provider = class extends core.Ed25519Provider {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
async onExportKey(format, key) {
|
|
29
|
-
|
|
29
|
+
const exported = await this.walletWebCrypto.exportKey(format, key);
|
|
30
|
+
if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer;
|
|
31
|
+
return exported;
|
|
30
32
|
}
|
|
31
33
|
async onImportKey(format, keyData, algorithm, extractable, keyUsages) {
|
|
32
34
|
return this.walletWebCrypto.importKey(format, keyData.kty ? keyData : new Uint8Array(keyData), algorithm, extractable, keyUsages);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoEd25519Provider.mjs","names":["walletWebCrypto: CredoWalletWebCrypto"],"sources":["../../../../src/crypto/webcrypto/providers/CredoEd25519Provider.ts"],"sourcesContent":["import type { CredoWalletWebCrypto } from '../CredoWalletWebCrypto'\nimport type {\n CredoWebCryptoKeyPair,\n Ed25519KeyGenParams,\n Ed25519KeyImportParams,\n Ed25519Params,\n JsonWebKey,\n KeyFormat,\n KeyUsage,\n} from '../types'\n\
|
|
1
|
+
{"version":3,"file":"CredoEd25519Provider.mjs","names":["walletWebCrypto: CredoWalletWebCrypto"],"sources":["../../../../src/crypto/webcrypto/providers/CredoEd25519Provider.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport { PublicJwk } from '../../../modules/kms'\nimport type { CredoWalletWebCrypto } from '../CredoWalletWebCrypto'\nimport { CredoWebCryptoKey } from '../CredoWebCryptoKey'\nimport type {\n CredoWebCryptoKeyPair,\n Ed25519KeyGenParams,\n Ed25519KeyImportParams,\n Ed25519Params,\n JsonWebKey,\n KeyFormat,\n KeyUsage,\n} from '../types'\n\nexport class CredoEd25519Provider extends core.Ed25519Provider {\n public constructor(private walletWebCrypto: CredoWalletWebCrypto) {\n super()\n }\n\n public async onSign(algorithm: Ed25519Params, key: CredoWebCryptoKey, data: ArrayBuffer): Promise<ArrayBuffer> {\n return new Uint8Array(await this.walletWebCrypto.sign(key, new Uint8Array(data), algorithm)).buffer\n }\n\n public async onVerify(\n algorithm: Ed25519Params,\n key: CredoWebCryptoKey,\n signature: ArrayBuffer,\n data: ArrayBuffer\n ): Promise<boolean> {\n return this.walletWebCrypto.verify(key, algorithm, new Uint8Array(data), new Uint8Array(signature))\n }\n\n public async onGenerateKey(\n algorithm: Ed25519KeyGenParams,\n extractable: boolean,\n keyUsages: KeyUsage[]\n ): Promise<CredoWebCryptoKeyPair> {\n const key = await this.walletWebCrypto.generate(algorithm)\n const publicJwk = PublicJwk.fromPublicJwk(key.publicJwk)\n\n return {\n publicKey: new CredoWebCryptoKey(publicJwk, algorithm, extractable, 'public', keyUsages),\n privateKey: new CredoWebCryptoKey(publicJwk, algorithm, extractable, 'private', keyUsages),\n }\n }\n\n public async onExportKey(format: KeyFormat, key: CredoWebCryptoKey): Promise<JsonWebKey | ArrayBuffer> {\n const exported = await this.walletWebCrypto.exportKey(format, key)\n if (exported instanceof Uint8Array) return new Uint8Array(exported).buffer\n return exported\n }\n\n public async onImportKey(\n format: KeyFormat,\n keyData: JsonWebKey | ArrayBuffer,\n algorithm: Ed25519KeyImportParams,\n extractable: boolean,\n keyUsages: KeyUsage[]\n ): Promise<CredoWebCryptoKey> {\n return this.walletWebCrypto.importKey(\n format,\n (keyData as JsonWebKey).kty ? (keyData as JsonWebKey) : new Uint8Array(keyData as ArrayBuffer),\n algorithm,\n extractable,\n keyUsages\n )\n }\n}\n"],"mappings":";;;;;;;;AAcA,IAAa,uBAAb,cAA0C,KAAK,gBAAgB;CAC7D,AAAO,YAAY,AAAQA,iBAAuC;AAChE,SAAO;EADkB;;CAI3B,MAAa,OAAO,WAA0B,KAAwB,MAAyC;AAC7G,SAAO,IAAI,WAAW,MAAM,KAAK,gBAAgB,KAAK,KAAK,IAAI,WAAW,KAAK,EAAE,UAAU,CAAC,CAAC;;CAG/F,MAAa,SACX,WACA,KACA,WACA,MACkB;AAClB,SAAO,KAAK,gBAAgB,OAAO,KAAK,WAAW,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,UAAU,CAAC;;CAGrG,MAAa,cACX,WACA,aACA,WACgC;EAChC,MAAM,MAAM,MAAM,KAAK,gBAAgB,SAAS,UAAU;EAC1D,MAAM,YAAY,UAAU,cAAc,IAAI,UAAU;AAExD,SAAO;GACL,WAAW,IAAI,kBAAkB,WAAW,WAAW,aAAa,UAAU,UAAU;GACxF,YAAY,IAAI,kBAAkB,WAAW,WAAW,aAAa,WAAW,UAAU;GAC3F;;CAGH,MAAa,YAAY,QAAmB,KAA2D;EACrG,MAAM,WAAW,MAAM,KAAK,gBAAgB,UAAU,QAAQ,IAAI;AAClE,MAAI,oBAAoB,WAAY,QAAO,IAAI,WAAW,SAAS,CAAC;AACpE,SAAO;;CAGT,MAAa,YACX,QACA,SACA,WACA,aACA,WAC4B;AAC5B,SAAO,KAAK,gBAAgB,UAC1B,QACC,QAAuB,MAAO,UAAyB,IAAI,WAAW,QAAuB,EAC9F,WACA,aACA,UACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoSha1Provider.mjs","names":[],"sources":["../../../../src/crypto/webcrypto/providers/CredoSha1Provider.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"CredoSha1Provider.mjs","names":[],"sources":["../../../../src/crypto/webcrypto/providers/CredoSha1Provider.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport { Sha1 } from '../../hashes'\nimport type { HashAlgorithm } from '../types'\n\nexport class CredoSha1Provider extends core.ProviderCrypto {\n public name = 'SHA-1'\n public usages = []\n\n public override async onDigest(algorithm: HashAlgorithm, data: ArrayBuffer): Promise<ArrayBuffer> {\n switch (algorithm.name.toUpperCase()) {\n case 'SHA-1': {\n const hash = new Sha1().hash(new Uint8Array(data))\n return hash.buffer\n }\n default:\n throw new Error(`Hashing algorithm: ${JSON.stringify(algorithm)} is not supported`)\n }\n }\n}\n"],"mappings":";;;;;;;AAIA,IAAa,oBAAb,cAAuC,KAAK,eAAe;;;OAClD,OAAO;OACP,SAAS,EAAE;;CAElB,MAAsB,SAAS,WAA0B,MAAyC;AAChG,UAAQ,UAAU,KAAK,aAAa,EAApC;GACE,KAAK,QAEH,QADa,IAAI,MAAM,CAAC,KAAK,IAAI,WAAW,KAAK,CAAC,CACtC;GAEd,QACE,OAAM,IAAI,MAAM,sBAAsB,KAAK,UAAU,UAAU,CAAC,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredoSha256Provider.mjs","names":[],"sources":["../../../../src/crypto/webcrypto/providers/CredoSha256Provider.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"CredoSha256Provider.mjs","names":[],"sources":["../../../../src/crypto/webcrypto/providers/CredoSha256Provider.ts"],"sourcesContent":["import * as core from 'webcrypto-core'\nimport { Sha256 } from '../../hashes'\nimport type { HashAlgorithm } from '../types'\n\nexport class CredoSha256Provider extends core.ProviderCrypto {\n public name = 'SHA-256'\n public usages = []\n\n public override async onDigest(algorithm: HashAlgorithm, data: ArrayBuffer): Promise<ArrayBuffer> {\n switch (algorithm.name.toUpperCase()) {\n case 'SHA-256': {\n const hash = new Sha256().hash(new Uint8Array(data))\n return hash.buffer\n }\n default:\n throw new Error(`Hashing algorithm: ${JSON.stringify(algorithm)} is not supported`)\n }\n }\n}\n"],"mappings":";;;;;;;AAIA,IAAa,sBAAb,cAAyC,KAAK,eAAe;;;OACpD,OAAO;OACP,SAAS,EAAE;;CAElB,MAAsB,SAAS,WAA0B,MAAyC;AAChG,UAAQ,UAAU,KAAK,aAAa,EAApC;GACE,KAAK,UAEH,QADa,IAAI,QAAQ,CAAC,KAAK,IAAI,WAAW,KAAK,CAAC,CACxC;GAEd,QACE,OAAM,IAAI,MAAM,sBAAsB,KAAK,UAAU,UAAU,CAAC,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_CredoEcdsaProvider = require('./CredoEcdsaProvider.js');
|
|
4
|
-
const require_CredoSha256Provider = require('./CredoSha256Provider.js');
|
|
5
4
|
const require_CredoSha1Provider = require('./CredoSha1Provider.js');
|
|
5
|
+
const require_CredoSha256Provider = require('./CredoSha256Provider.js');
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array } from "../../types.mjs";
|
|
1
2
|
import { Jwk } from "../../modules/kms/jwk/jwk.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/crypto/webcrypto/types.d.ts
|
|
@@ -29,7 +30,7 @@ type EcKeyGenParams = {
|
|
|
29
30
|
type RsaHashedKeyGenParams = {
|
|
30
31
|
name: 'RSASSA-PKCS1-v1_5' | 'RSA-PSS';
|
|
31
32
|
modulusLength: number;
|
|
32
|
-
publicExponent:
|
|
33
|
+
publicExponent: AnyUint8Array;
|
|
33
34
|
hash: {
|
|
34
35
|
name: HashAlgorithmIdentifier;
|
|
35
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/types.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../src/crypto/webcrypto/types.ts"],"sourcesContent":[],"mappings":";;;;;AAgCA,KARK,uBAAA,GAQkB,SAAA,GAAA,SAAA,GAAA,SAAA;AAAA,KAAX,WAAA,GAAW;MAEP,EAAA,OAAA;MAA4B,EAAA;IAAuB,IAAA,EAAnD,uBAAmD;EAGvD,CAAA,GAHgC,uBAGnB;AAEzB,CAAA;AAAwB,KAFZ,aAAA,GAEY;MAER,EAAA,SAAA;;AAAmD,KAFvD,YAAA,GAEuD;EAUvD,IAAA,EAAA,mBAAmB,GAAA,SAAA;EAEnB,IAAA,EAAA;IAKA,IAAA,EAjBI,uBAiBiB;EAAA,CAAA,GAjBW,uBAiBX;YAGf,CAAA,EAAA,MAAA;;AACqB,KAX3B,mBAAA,GAW2B;EAS3B,IAAA,EAAA,SAAA;AAEZ,CAAA;AAKY,KAzBA,cAAA,GAyBqB;EAKrB,IAAA,EAAA,OAAQ;EACR,UAAA,EAAS,OAAA,GAAA,OAAA,GAAA,OAAA,GAAA,OAAA;AACrB,CAAA;AAEY,KA7BA,qBAAA,GA6BgB;EAIhB,IAAA,EAAA,mBAAe,GAAA,SAAA;EAAA,aAAA,EAAA,MAAA;gBAAG,EA9BZ,aA8BY;MAAoB,EAAA;IAAyB,IAAA,EA7B3D,uBA6B2D;EAAqB,CAAA;AAChG,CAAA;AAA2B,KArBf,sBAAA,GAqBe;MAAG,EAAA,SAAA;;AAAuC,KAnBzD,iBAAA,GAmByD;EAAqB,IAAA,EAAA,OAAA;EAC9E,UAAA,EAAA,OAAa,GAAA,OAAA,GAAA,OAAA,GAAA,OAAA;CAAA;AAAG,KAfhB,qBAAA,GAegB;MAAc,EAAA,mBAAA,GAAA,SAAA;MAAgB,EAAA;IAAY,IAAA,EAbtD,uBAasD;EAC1D,CAAA;CAAe;AAAG,KAXlB,QAAA,GAWkB,MAAA,GAAA,QAAA,GAAA,SAAA,GAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,WAAA,GAAA,YAAA;AAAc,KAVhC,SAAA,GAUgC,KAAA,GAAA,OAAA,GAAA,MAAA,GAAA,KAAA;AAAgB,KAThD,OAAA,GASgD,SAAA,GAAA,QAAA,GAAA,QAAA;AAAY,KAP5D,UAAA,GAAa,GAO+C;KAH5D,eAAA,GAAkB,oBAAoB,yBAAyB;KAC/D,eAAA,GAAkB,iBAAiB,sBAAsB;KACzD,aAAA,GAAgB,cAAc,gBAAgB;KAC9C,eAAA,GAAkB,cAAc,gBAAgB"}
|