@credo-ts/core 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent/Agent.d.mts +1 -1
- package/build/agent/Agent.d.mts.map +1 -1
- package/build/agent/Agent.d.ts +1 -1
- package/build/agent/Agent.d.ts.map +1 -1
- package/build/agent/Agent.js +2 -2
- package/build/agent/Agent.mjs +2 -2
- package/build/agent/Agent.mjs.map +1 -1
- package/build/agent/AgentConfig.d.mts +1 -1
- package/build/agent/AgentConfig.d.mts.map +1 -1
- package/build/agent/AgentConfig.d.ts +1 -1
- package/build/agent/AgentConfig.d.ts.map +1 -1
- package/build/agent/AgentConfig.mjs.map +1 -1
- package/build/agent/AgentModules.d.mts +4 -4
- package/build/agent/AgentModules.d.mts.map +1 -1
- package/build/agent/AgentModules.d.ts +4 -4
- package/build/agent/AgentModules.d.ts.map +1 -1
- package/build/agent/AgentModules.mjs.map +1 -1
- package/build/agent/BaseAgent.d.mts +4 -4
- package/build/agent/BaseAgent.d.ts +4 -4
- package/build/agent/BaseAgent.mjs.map +1 -1
- package/build/agent/EventEmitter.d.mts +1 -1
- package/build/agent/EventEmitter.d.mts.map +1 -1
- package/build/agent/EventEmitter.d.ts +1 -1
- package/build/agent/EventEmitter.d.ts.map +1 -1
- package/build/agent/EventEmitter.mjs.map +1 -1
- package/build/agent/context/AgentContext.d.mts.map +1 -1
- package/build/agent/context/AgentContext.d.ts.map +1 -1
- package/build/agent/context/AgentContext.mjs.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.mts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.ts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs.map +1 -1
- package/build/crypto/JwsService.d.mts +5 -5
- package/build/crypto/JwsService.d.mts.map +1 -1
- package/build/crypto/JwsService.d.ts +5 -5
- package/build/crypto/JwsService.d.ts.map +1 -1
- package/build/crypto/JwsService.js +3 -3
- package/build/crypto/JwsService.mjs +3 -3
- package/build/crypto/JwsService.mjs.map +1 -1
- package/build/crypto/KmsKeyPair.js +1 -5
- package/build/crypto/KmsKeyPair.mjs +1 -2
- package/build/crypto/KmsKeyPair.mjs.map +1 -1
- package/build/crypto/hashes/Hasher.d.mts +4 -2
- package/build/crypto/hashes/Hasher.d.mts.map +1 -1
- package/build/crypto/hashes/Hasher.d.ts +4 -2
- package/build/crypto/hashes/Hasher.d.ts.map +1 -1
- package/build/crypto/hashes/Hasher.js +8 -3
- package/build/crypto/hashes/Hasher.mjs +8 -3
- package/build/crypto/hashes/Hasher.mjs.map +1 -1
- package/build/crypto/hashes/IHash.d.mts +3 -1
- package/build/crypto/hashes/IHash.d.mts.map +1 -1
- package/build/crypto/hashes/IHash.d.ts +3 -1
- package/build/crypto/hashes/IHash.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.d.mts +2 -1
- package/build/crypto/hashes/Sha1.d.mts.map +1 -1
- package/build/crypto/hashes/Sha1.d.ts +2 -1
- package/build/crypto/hashes/Sha1.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.js +3 -3
- package/build/crypto/hashes/Sha1.mjs +1 -1
- package/build/crypto/hashes/Sha1.mjs.map +1 -1
- package/build/crypto/hashes/Sha256.d.mts +2 -1
- package/build/crypto/hashes/Sha256.d.mts.map +1 -1
- package/build/crypto/hashes/Sha256.d.ts +2 -1
- package/build/crypto/hashes/Sha256.d.ts.map +1 -1
- package/build/crypto/hashes/Sha256.js +3 -3
- package/build/crypto/hashes/Sha256.mjs +1 -1
- package/build/crypto/hashes/Sha256.mjs.map +1 -1
- package/build/crypto/hashes/Sha384.d.mts +10 -0
- package/build/crypto/hashes/Sha384.d.mts.map +1 -0
- package/build/crypto/hashes/Sha384.d.ts +10 -0
- package/build/crypto/hashes/Sha384.d.ts.map +1 -0
- package/build/crypto/hashes/Sha384.js +15 -0
- package/build/crypto/hashes/Sha384.mjs +14 -0
- package/build/crypto/hashes/Sha384.mjs.map +1 -0
- package/build/crypto/hashes/Sha512.d.mts +2 -1
- package/build/crypto/hashes/Sha512.d.mts.map +1 -1
- package/build/crypto/hashes/Sha512.d.ts +2 -1
- package/build/crypto/hashes/Sha512.d.ts.map +1 -1
- package/build/crypto/hashes/Sha512.js +3 -3
- package/build/crypto/hashes/Sha512.mjs +1 -1
- package/build/crypto/hashes/Sha512.mjs.map +1 -1
- package/build/crypto/hashes/index.js +1 -0
- package/build/crypto/hashes/index.mjs +1 -0
- package/build/crypto/index.js +1 -0
- package/build/crypto/index.mjs +1 -0
- package/build/crypto/jose/jwt/Jwt.d.mts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.d.ts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.js +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.js +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.js +6 -9
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs +5 -6
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.js +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha1Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha256Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/index.js +1 -1
- package/build/crypto/webcrypto/providers/index.mjs +1 -1
- package/build/crypto/webcrypto/types.d.mts +2 -1
- package/build/crypto/webcrypto/types.d.mts.map +1 -1
- package/build/crypto/webcrypto/types.d.ts +2 -1
- package/build/crypto/webcrypto/types.d.ts.map +1 -1
- package/build/crypto/webcrypto/types.mjs.map +1 -1
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.js +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs.map +1 -1
- package/build/error/index.js +2 -2
- package/build/error/index.mjs +2 -2
- package/build/index.d.mts +161 -157
- package/build/index.d.mts.map +1 -1
- package/build/index.d.ts +161 -157
- package/build/index.d.ts.map +1 -1
- package/build/index.js +67 -62
- package/build/index.mjs +66 -62
- package/build/index.mjs.map +1 -1
- package/build/logger/BaseLogger.mjs.map +1 -1
- package/build/logger/ConsoleLogger.mjs.map +1 -1
- package/build/logger/Logger.mjs.map +1 -1
- package/build/modules/cache/CacheModule.mjs.map +1 -1
- package/build/modules/cache/CachedStorageService.mjs.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.mts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.ts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.js +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs.map +1 -1
- package/build/modules/dcql/DcqlModule.d.mts.map +1 -1
- package/build/modules/dcql/DcqlModule.d.ts.map +1 -1
- package/build/modules/dcql/DcqlModule.mjs.map +1 -1
- package/build/modules/dcql/DcqlService.d.mts.map +1 -1
- package/build/modules/dcql/DcqlService.d.ts.map +1 -1
- package/build/modules/dcql/DcqlService.js +2 -2
- package/build/modules/dcql/DcqlService.mjs +2 -2
- package/build/modules/dcql/DcqlService.mjs.map +1 -1
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.mts +3 -3
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +3 -3
- package/build/modules/dcql/models/index.d.mts +2 -2
- package/build/modules/dcql/models/index.d.mts.map +1 -1
- package/build/modules/dcql/models/index.d.ts +2 -2
- package/build/modules/dcql/models/index.d.ts.map +1 -1
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.mts +2 -2
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.mts +2 -2
- package/build/modules/dids/DidsApi.d.mts.map +1 -1
- package/build/modules/dids/DidsApi.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.ts.map +1 -1
- package/build/modules/dids/DidsApi.js +1 -1
- package/build/modules/dids/DidsApi.mjs +1 -1
- package/build/modules/dids/DidsApi.mjs.map +1 -1
- package/build/modules/dids/DidsModule.d.mts.map +1 -1
- package/build/modules/dids/DidsModule.d.ts.map +1 -1
- package/build/modules/dids/DidsModule.mjs.map +1 -1
- package/build/modules/dids/DidsModuleConfig.js +2 -2
- package/build/modules/dids/DidsModuleConfig.mjs +2 -2
- package/build/modules/dids/domain/DidDocument.d.mts +1 -1
- package/build/modules/dids/domain/DidDocument.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocument.js +6 -6
- package/build/modules/dids/domain/DidDocument.mjs +6 -6
- package/build/modules/dids/domain/DidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.mjs.map +1 -1
- package/build/modules/dids/domain/index.js +11 -11
- package/build/modules/dids/domain/index.mjs +11 -11
- package/build/modules/dids/domain/key-type/ed25519.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidJsonWebKey.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.js +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/x25519.js +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs.map +1 -1
- package/build/modules/dids/domain/keyDidDocument.js +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/parse.d.mts.map +1 -1
- package/build/modules/dids/domain/parse.d.ts.map +1 -1
- package/build/modules/dids/domain/parse.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidDocumentService.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/index.js +3 -3
- package/build/modules/dids/domain/verificationMethod/index.mjs +3 -3
- package/build/modules/dids/findMatchingEd25519Key.d.mts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.d.ts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.js +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs.map +1 -1
- package/build/modules/dids/helpers.mjs.map +1 -1
- package/build/modules/dids/index.js +15 -15
- package/build/modules/dids/index.mjs +15 -15
- package/build/modules/dids/methods/index.js +5 -5
- package/build/modules/dids/methods/index.mjs +5 -5
- package/build/modules/dids/methods/jwk/DidJwk.d.mts +1 -1
- package/build/modules/dids/methods/jwk/DidJwk.d.ts +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.js +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs.map +1 -1
- package/build/modules/dids/methods/key/DidKey.d.mts +1 -1
- package/build/modules/dids/methods/key/DidKey.d.ts +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.js +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.mjs.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs.map +1 -1
- package/build/modules/dids/methods/peer/index.js +1 -1
- package/build/modules/dids/methods/peer/index.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo0.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +7 -8
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs +4 -4
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.mjs.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRecord.js +1 -1
- package/build/modules/dids/repository/DidRecord.mjs +1 -1
- package/build/modules/dids/repository/DidRecord.mjs.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.mts +3 -3
- package/build/modules/dids/repository/DidRepository.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.ts +3 -3
- package/build/modules/dids/repository/DidRepository.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRepository.js +1 -1
- package/build/modules/dids/repository/DidRepository.mjs +1 -1
- package/build/modules/dids/repository/DidRepository.mjs.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.mts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.ts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.mjs.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.mts.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.ts.map +1 -1
- package/build/modules/dids/services/DidResolverService.js +1 -1
- package/build/modules/dids/services/DidResolverService.mjs +1 -1
- package/build/modules/dids/services/DidResolverService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.mts +3 -3
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +3 -3
- package/build/modules/dif-presentation-exchange/models/index.d.mts +4 -4
- package/build/modules/dif-presentation-exchange/models/index.d.ts +4 -4
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.mjs.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.mjs.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.mts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.ts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.mjs.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.mts +7 -7
- package/build/modules/kms/KeyManagementApi.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.ts +7 -7
- package/build/modules/kms/KeyManagementApi.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementApi.js +7 -7
- package/build/modules/kms/KeyManagementApi.mjs +7 -7
- package/build/modules/kms/KeyManagementApi.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.mts +2 -2
- package/build/modules/kms/KeyManagementModule.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.ts +2 -2
- package/build/modules/kms/KeyManagementModule.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModule.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.js +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs.map +1 -1
- package/build/modules/kms/KeyManagementService.d.mts +6 -6
- package/build/modules/kms/KeyManagementService.d.ts +6 -6
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.mts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.ts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.js +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs.map +1 -1
- package/build/modules/kms/index.d.mts +25 -25
- package/build/modules/kms/index.d.ts +25 -25
- package/build/modules/kms/index.js +10 -10
- package/build/modules/kms/index.mjs +10 -10
- package/build/modules/kms/index.mjs.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.mts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.ts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.js +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/index.js +1 -1
- package/build/modules/kms/jwk/alg/index.mjs +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.mjs.map +1 -1
- package/build/modules/kms/jwk/assertSupported.d.mts +2 -2
- package/build/modules/kms/jwk/assertSupported.d.ts +2 -2
- package/build/modules/kms/jwk/humanDescription.d.mts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.d.ts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.mjs.map +1 -1
- package/build/modules/kms/jwk/index.js +8 -8
- package/build/modules/kms/jwk/index.mjs +8 -8
- package/build/modules/kms/jwk/jwkThumbprint.js +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.mts.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.ts.map +1 -1
- package/build/modules/kms/jwk/keyOps.js +1 -1
- package/build/modules/kms/jwk/keyOps.mjs +1 -1
- package/build/modules/kms/jwk/keyOps.mjs.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.js +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.js +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/index.js +1 -1
- package/build/modules/kms/jwk/kty/index.mjs +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/okpPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/rsaPublicKey.mjs.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.mts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.ts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.js +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.mts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.ts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.js +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.js +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.js +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsOperation.d.mts +3 -3
- package/build/modules/kms/options/KmsOperation.d.ts +3 -3
- package/build/modules/kms/options/KmsOperation.mjs.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.mts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.ts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.js +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.mts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.ts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.js +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs.map +1 -1
- package/build/modules/mdoc/Mdoc.d.mts +1 -3
- package/build/modules/mdoc/Mdoc.d.mts.map +1 -1
- package/build/modules/mdoc/Mdoc.d.ts +1 -3
- package/build/modules/mdoc/Mdoc.d.ts.map +1 -1
- package/build/modules/mdoc/Mdoc.js +1 -7
- package/build/modules/mdoc/Mdoc.mjs +1 -7
- package/build/modules/mdoc/Mdoc.mjs.map +1 -1
- package/build/modules/mdoc/MdocApi.d.mts +1 -1
- package/build/modules/mdoc/MdocApi.d.mts.map +1 -1
- package/build/modules/mdoc/MdocApi.d.ts +1 -1
- package/build/modules/mdoc/MdocApi.d.ts.map +1 -1
- package/build/modules/mdoc/MdocApi.mjs.map +1 -1
- package/build/modules/mdoc/MdocContext.js +9 -11
- package/build/modules/mdoc/MdocContext.mjs +6 -7
- package/build/modules/mdoc/MdocContext.mjs.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.mjs.map +1 -1
- package/build/modules/mdoc/MdocModule.d.mts.map +1 -1
- package/build/modules/mdoc/MdocModule.d.ts.map +1 -1
- package/build/modules/mdoc/MdocModule.mjs.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.mts +4 -3
- package/build/modules/mdoc/MdocOptions.d.mts.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.ts +4 -3
- package/build/modules/mdoc/MdocOptions.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.d.mts +1 -1
- package/build/modules/mdoc/MdocService.d.mts.map +1 -1
- package/build/modules/mdoc/MdocService.d.ts +1 -2
- package/build/modules/mdoc/MdocService.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.mjs.map +1 -1
- package/build/modules/mdoc/index.d.mts +3 -3
- package/build/modules/mdoc/index.d.ts +3 -3
- package/build/modules/mdoc/repository/MdocRecord.d.mts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.mts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +40 -48
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs +41 -49
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/disclosureFrame.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/index.js +1 -1
- package/build/modules/sd-jwt-vc/index.mjs +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.ts +1 -1
- package/build/modules/sd-jwt-vc/utils.js +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.mts +2 -2
- package/build/modules/vc/W3cCredentialService.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.ts +2 -2
- package/build/modules/vc/W3cCredentialService.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialServiceOptions.d.mts +2 -2
- package/build/modules/vc/W3cCredentialServiceOptions.d.ts +2 -2
- package/build/modules/vc/W3cCredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialService.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialService.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialService.js +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialsModule.mjs.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs.map +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.mts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.ts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.js +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs.map +1 -1
- package/build/modules/vc/data-integrity/index.js +8 -8
- package/build/modules/vc/data-integrity/index.mjs +8 -8
- package/build/modules/vc/data-integrity/jsonldUtil.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.js +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/index.js +1 -1
- package/build/modules/vc/data-integrity/libraries/index.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.js +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/ProofTransformer.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/index.js +2 -2
- package/build/modules/vc/data-integrity/models/index.mjs +2 -2
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.mts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.mjs.map +1 -1
- package/build/modules/vc/index.js +14 -14
- package/build/modules/vc/index.mjs +14 -14
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/jwt-vc/credentialTransformer.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/index.js +1 -1
- package/build/modules/vc/jwt-vc/index.mjs +1 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.mts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.ts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.js +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.js +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.js +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Evidence.js +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Issuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2LocalizedValue.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/index.js +1 -1
- package/build/modules/vc/models/credential/index.mjs +1 -1
- package/build/modules/vc/models/index.js +1 -1
- package/build/modules/vc/models/index.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2Holder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.mts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.ts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.mjs.map +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.js +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.mts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.ts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.js +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/v2-jwt-utils.js +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs.map +1 -1
- package/build/modules/vc/validators.mjs.map +1 -1
- package/build/modules/x509/X509Api.d.mts +1 -1
- package/build/modules/x509/X509Api.d.ts +1 -1
- package/build/modules/x509/X509Api.js +1 -1
- package/build/modules/x509/X509Api.mjs +1 -1
- package/build/modules/x509/X509Certificate.d.mts +5 -5
- package/build/modules/x509/X509Certificate.d.mts.map +1 -1
- package/build/modules/x509/X509Certificate.d.ts +5 -5
- package/build/modules/x509/X509Certificate.d.ts.map +1 -1
- package/build/modules/x509/X509Certificate.js +4 -7
- package/build/modules/x509/X509Certificate.mjs +3 -6
- package/build/modules/x509/X509Certificate.mjs.map +1 -1
- package/build/modules/x509/X509Module.d.mts.map +1 -1
- package/build/modules/x509/X509Module.d.ts.map +1 -1
- package/build/modules/x509/X509Module.js +1 -1
- package/build/modules/x509/X509Module.mjs +1 -1
- package/build/modules/x509/X509Module.mjs.map +1 -1
- package/build/modules/x509/X509ModuleConfig.d.mts +2 -2
- package/build/modules/x509/X509ModuleConfig.d.ts +2 -2
- package/build/modules/x509/X509Service.d.mts +1 -1
- package/build/modules/x509/X509Service.d.mts.map +1 -1
- package/build/modules/x509/X509Service.d.ts +1 -1
- package/build/modules/x509/X509Service.d.ts.map +1 -1
- package/build/modules/x509/X509Service.js +4 -4
- package/build/modules/x509/X509Service.mjs +3 -3
- package/build/modules/x509/X509Service.mjs.map +1 -1
- package/build/modules/x509/extraction.d.mts +1 -1
- package/build/modules/x509/extraction.d.ts +1 -1
- package/build/modules/x509/index.js +3 -3
- package/build/modules/x509/index.mjs +3 -3
- package/build/modules/x509/utils/extensions.d.mts.map +1 -1
- package/build/modules/x509/utils/extensions.d.ts.map +1 -1
- package/build/modules/x509/utils/extensions.js +1 -1
- package/build/modules/x509/utils/extensions.mjs +1 -1
- package/build/modules/x509/utils/extensions.mjs.map +1 -1
- package/build/modules/x509/utils/index.js +1 -1
- package/build/modules/x509/utils/index.mjs +1 -1
- package/build/modules/x509/utils/nameConversion.d.mts.map +1 -1
- package/build/modules/x509/utils/nameConversion.d.ts.map +1 -1
- package/build/modules/x509/utils/nameConversion.mjs.map +1 -1
- package/build/plugins/DependencyManager.d.mts.map +1 -1
- package/build/plugins/DependencyManager.d.ts.map +1 -1
- package/build/plugins/DependencyManager.mjs.map +1 -1
- package/build/storage/BaseRecord.mjs.map +1 -1
- package/build/storage/Metadata.mjs.map +1 -1
- package/build/storage/Repository.d.mts.map +1 -1
- package/build/storage/Repository.d.ts.map +1 -1
- package/build/storage/Repository.js +1 -1
- package/build/storage/Repository.mjs +1 -1
- package/build/storage/Repository.mjs.map +1 -1
- package/build/storage/RepositoryEvents.mjs.map +1 -1
- package/build/storage/StorageService.d.mts +1 -1
- package/build/storage/StorageService.d.ts +1 -1
- package/build/storage/index.js +1 -1
- package/build/storage/index.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.d.mts.map +1 -1
- package/build/storage/migration/StorageUpdateService.d.ts.map +1 -1
- package/build/storage/migration/StorageUpdateService.js +1 -1
- package/build/storage/migration/StorageUpdateService.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.mjs.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts.map +1 -1
- package/build/storage/migration/UpdateAssistant.js +1 -1
- package/build/storage/migration/UpdateAssistant.mjs +1 -1
- package/build/storage/migration/UpdateAssistant.mjs.map +1 -1
- package/build/storage/migration/index.js +1 -1
- package/build/storage/migration/index.mjs +1 -1
- package/build/storage/migration/isUpToDate.d.mts.map +1 -1
- package/build/storage/migration/isUpToDate.d.ts.map +1 -1
- package/build/storage/migration/isUpToDate.js +1 -1
- package/build/storage/migration/isUpToDate.mjs +1 -1
- package/build/storage/migration/isUpToDate.mjs.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/cache.mjs.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.mjs.map +1 -1
- package/build/storage/migration/updates.d.mts +1 -1
- package/build/storage/migration/updates.d.mts.map +1 -1
- package/build/storage/migration/updates.d.ts +1 -1
- package/build/storage/migration/updates.d.ts.map +1 -1
- package/build/storage/migration/updates.js +4 -4
- package/build/storage/migration/updates.mjs +1 -1
- package/build/storage/migration/updates.mjs.map +1 -1
- package/build/types.d.mts +12 -1
- package/build/types.d.mts.map +1 -1
- package/build/types.d.ts +12 -1
- package/build/types.d.ts.map +1 -1
- package/build/types.mjs.map +1 -1
- package/build/utils/HashlinkEncoder.d.mts +1 -1
- package/build/utils/HashlinkEncoder.d.mts.map +1 -1
- package/build/utils/HashlinkEncoder.d.ts +1 -1
- package/build/utils/HashlinkEncoder.d.ts.map +1 -1
- package/build/utils/HashlinkEncoder.mjs.map +1 -1
- package/build/utils/JsonEncoder.d.mts +3 -2
- package/build/utils/JsonEncoder.d.mts.map +1 -1
- package/build/utils/JsonEncoder.d.ts +3 -2
- package/build/utils/JsonEncoder.d.ts.map +1 -1
- package/build/utils/JsonEncoder.js +8 -8
- package/build/utils/JsonEncoder.mjs +4 -3
- package/build/utils/JsonEncoder.mjs.map +1 -1
- package/build/utils/JsonTransformer.mjs.map +1 -1
- package/build/utils/MessageValidator.mjs.map +1 -1
- package/build/utils/MultiBaseEncoder.d.mts +4 -2
- package/build/utils/MultiBaseEncoder.d.mts.map +1 -1
- package/build/utils/MultiBaseEncoder.d.ts +4 -2
- package/build/utils/MultiBaseEncoder.d.ts.map +1 -1
- package/build/utils/MultiBaseEncoder.mjs.map +1 -1
- package/build/utils/MultiHashEncoder.d.mts +5 -5
- package/build/utils/MultiHashEncoder.d.mts.map +1 -1
- package/build/utils/MultiHashEncoder.d.ts +5 -5
- package/build/utils/MultiHashEncoder.d.ts.map +1 -1
- package/build/utils/MultiHashEncoder.js +5 -7
- package/build/utils/MultiHashEncoder.mjs +5 -4
- package/build/utils/MultiHashEncoder.mjs.map +1 -1
- package/build/utils/TypedArrayEncoder.d.mts +12 -9
- package/build/utils/TypedArrayEncoder.d.mts.map +1 -1
- package/build/utils/TypedArrayEncoder.d.ts +12 -9
- package/build/utils/TypedArrayEncoder.d.ts.map +1 -1
- package/build/utils/TypedArrayEncoder.js +22 -17
- package/build/utils/TypedArrayEncoder.mjs +7 -1
- package/build/utils/TypedArrayEncoder.mjs.map +1 -1
- package/build/utils/VarintEncoder.js +1 -4
- package/build/utils/VarintEncoder.mjs +1 -2
- package/build/utils/VarintEncoder.mjs.map +1 -1
- package/build/utils/base58.mjs.map +1 -1
- package/build/utils/buffer.d.mts +1 -1
- package/build/utils/buffer.d.ts +1 -1
- package/build/utils/buffer.mjs +1 -1
- package/build/utils/deepEquality.mjs.map +1 -1
- package/build/utils/index.js +10 -11
- package/build/utils/index.mjs +9 -9
- package/build/utils/objectEquality.mjs.map +1 -1
- package/build/utils/timestamp.d.mts +10 -2
- package/build/utils/timestamp.d.mts.map +1 -1
- package/build/utils/timestamp.d.ts +10 -2
- package/build/utils/timestamp.d.ts.map +1 -1
- package/build/utils/timestamp.js +9 -1
- package/build/utils/timestamp.mjs +8 -2
- package/build/utils/timestamp.mjs.map +1 -1
- package/build/utils/transformers.d.mts.map +1 -1
- package/build/utils/transformers.d.ts.map +1 -1
- package/build/utils/transformers.mjs.map +1 -1
- package/build/utils/validators.d.mts.map +1 -1
- package/build/utils/validators.d.ts.map +1 -1
- package/build/utils/validators.mjs.map +1 -1
- package/build/utils/zod.js +2 -0
- package/build/utils/zod.mjs +2 -1
- package/build/utils/zod.mjs.map +1 -1
- package/package.json +25 -25
- package/build/utils/buffer.js +0 -5
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { TypedArrayEncoder } from "./TypedArrayEncoder.mjs";
|
|
3
4
|
import { Hasher } from "../crypto/hashes/Hasher.mjs";
|
|
4
5
|
import "../crypto/hashes/index.mjs";
|
|
5
|
-
import { Buffer } from "./buffer.mjs";
|
|
6
6
|
import { VarintEncoder } from "./VarintEncoder.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/utils/MultiHashEncoder.ts
|
|
9
9
|
const multiHashNameMap = {
|
|
10
10
|
"sha-1": 17,
|
|
11
11
|
"sha-256": 18,
|
|
12
|
-
"sha-512": 19
|
|
12
|
+
"sha-512": 19,
|
|
13
|
+
"sha-384": 32
|
|
13
14
|
};
|
|
14
15
|
const multiHashCodeMap = Object.entries(multiHashNameMap).reduce((map, [hashName, hashCode]) => ({
|
|
15
16
|
...map,
|
|
@@ -30,7 +31,7 @@ var MultiHashEncoder = class MultiHashEncoder {
|
|
|
30
31
|
const hashCode = multiHashNameMap[hashName];
|
|
31
32
|
const hashPrefix = VarintEncoder.encode(hashCode);
|
|
32
33
|
const hashLengthPrefix = VarintEncoder.encode(hash.length);
|
|
33
|
-
return
|
|
34
|
+
return TypedArrayEncoder.concat([
|
|
34
35
|
hashPrefix,
|
|
35
36
|
hashLengthPrefix,
|
|
36
37
|
hash
|
|
@@ -51,7 +52,7 @@ var MultiHashEncoder = class MultiHashEncoder {
|
|
|
51
52
|
const withoutLengthPrefix = withoutHashPrefix.slice(lengthPrefixByteLength);
|
|
52
53
|
if (!multiHashCodeMap[hashPrefix]) throw new Error(`Unsupported hash code 0x${hashPrefix.toString(16)}`);
|
|
53
54
|
return {
|
|
54
|
-
data:
|
|
55
|
+
data: new Uint8Array(withoutLengthPrefix),
|
|
55
56
|
hashName: multiHashCodeMap[hashPrefix]
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiHashEncoder.mjs","names":["multiHashNameMap: MultiHashNameMap","multiHashCodeMap: MultiHashCodeMap"],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":["import type { HashName } from '../crypto/hashes'\n\nimport { Hasher } from '../crypto/hashes'\
|
|
1
|
+
{"version":3,"file":"MultiHashEncoder.mjs","names":["multiHashNameMap: MultiHashNameMap","multiHashCodeMap: MultiHashCodeMap"],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":["import type { HashName } from '../crypto/hashes'\n\nimport { Hasher } from '../crypto/hashes'\nimport type { AnyUint8Array, Uint8ArrayBuffer } from '../types'\nimport { TypedArrayEncoder } from './TypedArrayEncoder'\nimport { VarintEncoder } from './VarintEncoder'\n\ntype MultiHashNameMap = {\n [key in HashName]: number\n}\n\ntype MultiHashCodeMap = {\n [key: number]: HashName\n}\n\nconst multiHashNameMap: MultiHashNameMap = {\n 'sha-1': 0x11,\n 'sha-256': 0x12,\n 'sha-512': 0x13,\n 'sha-384': 0x20,\n}\n\nconst multiHashCodeMap: MultiHashCodeMap = Object.entries(multiHashNameMap).reduce(\n // biome-ignore lint/performance/noAccumulatingSpread: no explanation\n (map, [hashName, hashCode]) => ({ ...map, [hashCode]: hashName }),\n {}\n)\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class MultiHashEncoder {\n /**\n *\n * Encodes a buffer into a hash\n *\n * @param buffer the buffer that has to be encoded\n * @param hashName the hashing algorithm, 'sha-256'\n *\n * @returns a multihash\n */\n public static encode(data: AnyUint8Array, hashName: HashName): Uint8ArrayBuffer {\n const hash = Hasher.hash(data, hashName)\n const hashCode = multiHashNameMap[hashName]\n\n const hashPrefix = VarintEncoder.encode(hashCode)\n const hashLengthPrefix = VarintEncoder.encode(hash.length)\n\n return TypedArrayEncoder.concat([hashPrefix, hashLengthPrefix, hash])\n }\n\n /**\n *\n * Decodes the multihash\n *\n * @param data the multihash that has to be decoded\n *\n * @returns object with the data and the hashing algorithm\n */\n public static decode(data: AnyUint8Array): { data: Uint8ArrayBuffer; hashName: string } {\n const [hashPrefix, hashPrefixByteLength] = VarintEncoder.decode(data)\n const withoutHashPrefix = data.slice(hashPrefixByteLength)\n\n const [, lengthPrefixByteLength] = VarintEncoder.decode(withoutHashPrefix)\n const withoutLengthPrefix = withoutHashPrefix.slice(lengthPrefixByteLength)\n\n const hashName = multiHashCodeMap[hashPrefix]\n\n if (!hashName) {\n throw new Error(`Unsupported hash code 0x${hashPrefix.toString(16)}`)\n }\n\n return {\n data: new Uint8Array(withoutLengthPrefix),\n hashName: multiHashCodeMap[hashPrefix],\n }\n }\n\n /**\n *\n * Validates if it is a valid mulithash\n *\n * @param data the multihash that needs to be validated\n *\n * @returns a boolean whether the multihash is valid\n */\n public static isValid(data: AnyUint8Array): boolean {\n try {\n MultiHashEncoder.decode(data)\n return true\n } catch (_e) {\n return false\n }\n }\n}\n"],"mappings":";;;;;;;;AAeA,MAAMA,mBAAqC;CACzC,SAAS;CACT,WAAW;CACX,WAAW;CACX,WAAW;CACZ;AAED,MAAMC,mBAAqC,OAAO,QAAQ,iBAAiB,CAAC,QAEzE,KAAK,CAAC,UAAU,eAAe;CAAE,GAAG;EAAM,WAAW;CAAU,GAChE,EAAE,CACH;AAGD,IAAa,mBAAb,MAAa,iBAAiB;;;;;;;;;;CAU5B,OAAc,OAAO,MAAqB,UAAsC;EAC9E,MAAM,OAAO,OAAO,KAAK,MAAM,SAAS;EACxC,MAAM,WAAW,iBAAiB;EAElC,MAAM,aAAa,cAAc,OAAO,SAAS;EACjD,MAAM,mBAAmB,cAAc,OAAO,KAAK,OAAO;AAE1D,SAAO,kBAAkB,OAAO;GAAC;GAAY;GAAkB;GAAK,CAAC;;;;;;;;;;CAWvE,OAAc,OAAO,MAAmE;EACtF,MAAM,CAAC,YAAY,wBAAwB,cAAc,OAAO,KAAK;EACrE,MAAM,oBAAoB,KAAK,MAAM,qBAAqB;EAE1D,MAAM,GAAG,0BAA0B,cAAc,OAAO,kBAAkB;EAC1E,MAAM,sBAAsB,kBAAkB,MAAM,uBAAuB;AAI3E,MAAI,CAFa,iBAAiB,YAGhC,OAAM,IAAI,MAAM,2BAA2B,WAAW,SAAS,GAAG,GAAG;AAGvE,SAAO;GACL,MAAM,IAAI,WAAW,oBAAoB;GACzC,UAAU,iBAAiB;GAC5B;;;;;;;;;;CAWH,OAAc,QAAQ,MAA8B;AAClD,MAAI;AACF,oBAAiB,OAAO,KAAK;AAC7B,UAAO;WACA,IAAI;AACX,UAAO"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../types.mjs";
|
|
1
2
|
import { Buffer } from "./buffer.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/utils/TypedArrayEncoder.d.ts
|
|
@@ -7,50 +8,52 @@ declare class TypedArrayEncoder {
|
|
|
7
8
|
*
|
|
8
9
|
* @param buffer the buffer to encode into base64 string
|
|
9
10
|
*/
|
|
10
|
-
static toBase64(buffer: Buffer |
|
|
11
|
+
static toBase64(buffer: Buffer | AnyUint8Array): string;
|
|
11
12
|
/**
|
|
12
13
|
* Encode buffer into base64url string.
|
|
13
14
|
*
|
|
14
15
|
* @param buffer the buffer to encode into base64url string
|
|
15
16
|
*/
|
|
16
|
-
static toBase64URL(buffer: Buffer |
|
|
17
|
+
static toBase64URL(buffer: Buffer | AnyUint8Array): string;
|
|
17
18
|
/**
|
|
18
19
|
* Encode buffer into base58 string.
|
|
19
20
|
*
|
|
20
21
|
* @param buffer the buffer to encode into base58 string
|
|
21
22
|
*/
|
|
22
|
-
static toBase58(buffer: Buffer |
|
|
23
|
+
static toBase58(buffer: Buffer | AnyUint8Array): string;
|
|
23
24
|
/**
|
|
24
25
|
* Decode base64 string into buffer. Also supports base64url
|
|
25
26
|
*
|
|
26
27
|
* @param base64 the base64 or base64url string to decode into buffer format
|
|
27
28
|
*/
|
|
28
|
-
static fromBase64(base64: string): Buffer
|
|
29
|
+
static fromBase64(base64: string): Buffer<ArrayBuffer>;
|
|
29
30
|
/**
|
|
30
31
|
* Decode base58 string into buffer
|
|
31
32
|
*
|
|
32
33
|
* @param base58 the base58 string to decode into buffer format
|
|
33
34
|
*/
|
|
34
|
-
static fromBase58(base58: string): Buffer
|
|
35
|
+
static fromBase58(base58: string): Buffer<ArrayBuffer>;
|
|
35
36
|
/**
|
|
36
37
|
* Encode buffer into base64 string.
|
|
37
38
|
*
|
|
38
39
|
* @param buffer the buffer to encode into base64 string
|
|
39
40
|
*/
|
|
40
|
-
static toHex(buffer: Buffer |
|
|
41
|
+
static toHex(buffer: Buffer | AnyUint8Array): string;
|
|
41
42
|
/**
|
|
42
43
|
* Decode hex string into buffer
|
|
43
44
|
*
|
|
44
45
|
* @param hex the hex string to decode into buffer format
|
|
45
46
|
*/
|
|
46
|
-
static fromHex(hex: string): Buffer
|
|
47
|
+
static fromHex(hex: string): Buffer<ArrayBuffer>;
|
|
47
48
|
/**
|
|
48
49
|
* Decode string into buffer.
|
|
49
50
|
*
|
|
50
51
|
* @param str the string to decode into buffer format
|
|
51
52
|
*/
|
|
52
|
-
static fromString(str: string):
|
|
53
|
-
static toUtf8String(buffer: Buffer |
|
|
53
|
+
static fromString(str: string): Uint8ArrayBuffer;
|
|
54
|
+
static toUtf8String(buffer: Buffer | AnyUint8Array): string;
|
|
55
|
+
static concat(entries: AnyUint8Array[]): Uint8ArrayBuffer;
|
|
56
|
+
static equals(firstBuffer: AnyUint8Array, otherBuffer: AnyUint8Array): boolean;
|
|
54
57
|
/**
|
|
55
58
|
* Check whether an array is byte, or typed, array
|
|
56
59
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedArrayEncoder.d.mts","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypedArrayEncoder.d.mts","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":[],"mappings":";;;;cAMa,iBAAA;;;;AAAb;;SAMiC,QAAA,CAAA,MAAA,EAAA,MAAA,GAAS,aAAT,CAAA,EAAA,MAAA;;;;;;SA2BQ,WAAA,CAAA,MAAA,EAlBL,MAkBK,GAlBI,aAkBJ,CAAA,EAAA,MAAA;;;;;;SA2BN,QAAA,CAAA,MAAA,EApCF,MAoCE,GApCO,aAoCP,CAAA,EAAA,MAAA;;;;;;SAiBe,UAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EA5CT,MA4CS,CA5CT,WA4CS,CAAA;;;;;;qCAnCT,OAAA;;;;;;uBASX,SAAS;;;;;;+BASJ,OAAA;;;;;;kCASM;8BAIJ,SAAS;yBAId,kBAAkB;6BAId,4BAA4B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyUint8Array, Uint8ArrayBuffer } from "../types.js";
|
|
1
2
|
import { Buffer } from "./buffer.js";
|
|
2
3
|
|
|
3
4
|
//#region src/utils/TypedArrayEncoder.d.ts
|
|
@@ -7,50 +8,52 @@ declare class TypedArrayEncoder {
|
|
|
7
8
|
*
|
|
8
9
|
* @param buffer the buffer to encode into base64 string
|
|
9
10
|
*/
|
|
10
|
-
static toBase64(buffer: Buffer |
|
|
11
|
+
static toBase64(buffer: Buffer | AnyUint8Array): string;
|
|
11
12
|
/**
|
|
12
13
|
* Encode buffer into base64url string.
|
|
13
14
|
*
|
|
14
15
|
* @param buffer the buffer to encode into base64url string
|
|
15
16
|
*/
|
|
16
|
-
static toBase64URL(buffer: Buffer |
|
|
17
|
+
static toBase64URL(buffer: Buffer | AnyUint8Array): string;
|
|
17
18
|
/**
|
|
18
19
|
* Encode buffer into base58 string.
|
|
19
20
|
*
|
|
20
21
|
* @param buffer the buffer to encode into base58 string
|
|
21
22
|
*/
|
|
22
|
-
static toBase58(buffer: Buffer |
|
|
23
|
+
static toBase58(buffer: Buffer | AnyUint8Array): string;
|
|
23
24
|
/**
|
|
24
25
|
* Decode base64 string into buffer. Also supports base64url
|
|
25
26
|
*
|
|
26
27
|
* @param base64 the base64 or base64url string to decode into buffer format
|
|
27
28
|
*/
|
|
28
|
-
static fromBase64(base64: string): Buffer
|
|
29
|
+
static fromBase64(base64: string): Buffer<ArrayBuffer>;
|
|
29
30
|
/**
|
|
30
31
|
* Decode base58 string into buffer
|
|
31
32
|
*
|
|
32
33
|
* @param base58 the base58 string to decode into buffer format
|
|
33
34
|
*/
|
|
34
|
-
static fromBase58(base58: string): Buffer
|
|
35
|
+
static fromBase58(base58: string): Buffer<ArrayBuffer>;
|
|
35
36
|
/**
|
|
36
37
|
* Encode buffer into base64 string.
|
|
37
38
|
*
|
|
38
39
|
* @param buffer the buffer to encode into base64 string
|
|
39
40
|
*/
|
|
40
|
-
static toHex(buffer: Buffer |
|
|
41
|
+
static toHex(buffer: Buffer | AnyUint8Array): string;
|
|
41
42
|
/**
|
|
42
43
|
* Decode hex string into buffer
|
|
43
44
|
*
|
|
44
45
|
* @param hex the hex string to decode into buffer format
|
|
45
46
|
*/
|
|
46
|
-
static fromHex(hex: string): Buffer
|
|
47
|
+
static fromHex(hex: string): Buffer<ArrayBuffer>;
|
|
47
48
|
/**
|
|
48
49
|
* Decode string into buffer.
|
|
49
50
|
*
|
|
50
51
|
* @param str the string to decode into buffer format
|
|
51
52
|
*/
|
|
52
|
-
static fromString(str: string):
|
|
53
|
-
static toUtf8String(buffer: Buffer |
|
|
53
|
+
static fromString(str: string): Uint8ArrayBuffer;
|
|
54
|
+
static toUtf8String(buffer: Buffer | AnyUint8Array): string;
|
|
55
|
+
static concat(entries: AnyUint8Array[]): Uint8ArrayBuffer;
|
|
56
|
+
static equals(firstBuffer: AnyUint8Array, otherBuffer: AnyUint8Array): boolean;
|
|
54
57
|
/**
|
|
55
58
|
* Check whether an array is byte, or typed, array
|
|
56
59
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedArrayEncoder.d.ts","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypedArrayEncoder.d.ts","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":[],"mappings":";;;;cAMa,iBAAA;;AAAb;;;;SAeoC,QAAA,CAAA,MAAA,EATH,MASG,GATM,aASN,CAAA,EAAA,MAAA;;;;;;SA2BK,WAAA,CAAA,MAAA,EA3BL,MA2BK,GA3BI,aA2BJ,CAAA,EAAA,MAAA;;;;;;SA2BA,QAAA,CAAA,MAAA,EA7CR,MA6CQ,GA7CC,aA6CD,CAAA,EAAA,MAAA;;;;;;SAYuB,UAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAhDvB,MAgDuB,CAhDvB,WAgDuB,CAAA;EAAa;;;;;qCAvCpC,OAAA;;;;;;uBASX,SAAS;;;;;;+BASJ,OAAA;;;;;;kCASM;8BAIJ,SAAS;yBAId,kBAAkB;6BAId,4BAA4B"}
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
4
4
|
const require_base58 = require('./base58.js');
|
|
5
5
|
const require_base64 = require('./base64.js');
|
|
6
|
-
require(
|
|
7
|
-
|
|
8
|
-
buffer_index_js = require_rolldown_runtime.__toESM(buffer_index_js);
|
|
6
|
+
let buffer = require("buffer");
|
|
7
|
+
buffer = require_rolldown_runtime.__toESM(buffer);
|
|
9
8
|
|
|
10
9
|
//#region src/utils/TypedArrayEncoder.ts
|
|
11
10
|
var TypedArrayEncoder = class TypedArrayEncoder {
|
|
@@ -14,24 +13,24 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
14
13
|
*
|
|
15
14
|
* @param buffer the buffer to encode into base64 string
|
|
16
15
|
*/
|
|
17
|
-
static toBase64(buffer) {
|
|
18
|
-
return
|
|
16
|
+
static toBase64(buffer$1) {
|
|
17
|
+
return buffer.Buffer.from(buffer$1).toString("base64");
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Encode buffer into base64url string.
|
|
22
21
|
*
|
|
23
22
|
* @param buffer the buffer to encode into base64url string
|
|
24
23
|
*/
|
|
25
|
-
static toBase64URL(buffer) {
|
|
26
|
-
return require_base64.base64ToBase64URL(TypedArrayEncoder.toBase64(buffer));
|
|
24
|
+
static toBase64URL(buffer$1) {
|
|
25
|
+
return require_base64.base64ToBase64URL(TypedArrayEncoder.toBase64(buffer$1));
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
* Encode buffer into base58 string.
|
|
30
29
|
*
|
|
31
30
|
* @param buffer the buffer to encode into base58 string
|
|
32
31
|
*/
|
|
33
|
-
static toBase58(buffer) {
|
|
34
|
-
return require_base58.encodeToBase58(buffer);
|
|
32
|
+
static toBase58(buffer$1) {
|
|
33
|
+
return require_base58.encodeToBase58(buffer$1);
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
* Decode base64 string into buffer. Also supports base64url
|
|
@@ -39,7 +38,7 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
39
38
|
* @param base64 the base64 or base64url string to decode into buffer format
|
|
40
39
|
*/
|
|
41
40
|
static fromBase64(base64) {
|
|
42
|
-
return
|
|
41
|
+
return buffer.Buffer.from(base64, "base64");
|
|
43
42
|
}
|
|
44
43
|
/**
|
|
45
44
|
* Decode base58 string into buffer
|
|
@@ -47,15 +46,15 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
47
46
|
* @param base58 the base58 string to decode into buffer format
|
|
48
47
|
*/
|
|
49
48
|
static fromBase58(base58) {
|
|
50
|
-
return
|
|
49
|
+
return buffer.Buffer.from(require_base58.decodeFromBase58(base58));
|
|
51
50
|
}
|
|
52
51
|
/**
|
|
53
52
|
* Encode buffer into base64 string.
|
|
54
53
|
*
|
|
55
54
|
* @param buffer the buffer to encode into base64 string
|
|
56
55
|
*/
|
|
57
|
-
static toHex(buffer) {
|
|
58
|
-
return
|
|
56
|
+
static toHex(buffer$1) {
|
|
57
|
+
return buffer.Buffer.from(buffer$1).toString("hex");
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* Decode hex string into buffer
|
|
@@ -63,7 +62,7 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
63
62
|
* @param hex the hex string to decode into buffer format
|
|
64
63
|
*/
|
|
65
64
|
static fromHex(hex) {
|
|
66
|
-
return
|
|
65
|
+
return buffer.Buffer.from(hex, "hex");
|
|
67
66
|
}
|
|
68
67
|
/**
|
|
69
68
|
* Decode string into buffer.
|
|
@@ -71,10 +70,16 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
71
70
|
* @param str the string to decode into buffer format
|
|
72
71
|
*/
|
|
73
72
|
static fromString(str) {
|
|
74
|
-
return
|
|
73
|
+
return buffer.Buffer.from(str);
|
|
75
74
|
}
|
|
76
|
-
static toUtf8String(buffer) {
|
|
77
|
-
return
|
|
75
|
+
static toUtf8String(buffer$1) {
|
|
76
|
+
return buffer.Buffer.from(buffer$1).toString();
|
|
77
|
+
}
|
|
78
|
+
static concat(entries) {
|
|
79
|
+
return buffer.Buffer.concat(entries);
|
|
80
|
+
}
|
|
81
|
+
static equals(firstBuffer, otherBuffer) {
|
|
82
|
+
return buffer.Buffer.from(firstBuffer).equals(otherBuffer);
|
|
78
83
|
}
|
|
79
84
|
/**
|
|
80
85
|
* Check whether an array is byte, or typed, array
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { Buffer } from "./buffer.mjs";
|
|
3
4
|
import { decodeFromBase58, encodeToBase58 } from "./base58.mjs";
|
|
4
5
|
import { base64ToBase64URL } from "./base64.mjs";
|
|
5
|
-
import { Buffer } from "./buffer.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/utils/TypedArrayEncoder.ts
|
|
8
8
|
var TypedArrayEncoder = class TypedArrayEncoder {
|
|
@@ -73,6 +73,12 @@ var TypedArrayEncoder = class TypedArrayEncoder {
|
|
|
73
73
|
static toUtf8String(buffer) {
|
|
74
74
|
return Buffer.from(buffer).toString();
|
|
75
75
|
}
|
|
76
|
+
static concat(entries) {
|
|
77
|
+
return Buffer.concat(entries);
|
|
78
|
+
}
|
|
79
|
+
static equals(firstBuffer, otherBuffer) {
|
|
80
|
+
return Buffer.from(firstBuffer).equals(otherBuffer);
|
|
81
|
+
}
|
|
76
82
|
/**
|
|
77
83
|
* Check whether an array is byte, or typed, array
|
|
78
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedArrayEncoder.mjs","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":["import { decodeFromBase58, encodeToBase58 } from './base58'\nimport { base64ToBase64URL } from './base64'\nimport { Buffer } from './buffer'\n\n// biome-ignore lint/complexity/noStaticOnlyClass:
|
|
1
|
+
{"version":3,"file":"TypedArrayEncoder.mjs","names":[],"sources":["../../src/utils/TypedArrayEncoder.ts"],"sourcesContent":["import type { AnyUint8Array, Uint8ArrayBuffer } from '../types'\nimport { decodeFromBase58, encodeToBase58 } from './base58'\nimport { base64ToBase64URL } from './base64'\nimport { Buffer } from './buffer'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class TypedArrayEncoder {\n /**\n * Encode buffer into base64 string.\n *\n * @param buffer the buffer to encode into base64 string\n */\n public static toBase64(buffer: Buffer | AnyUint8Array) {\n return Buffer.from(buffer).toString('base64')\n }\n\n /**\n * Encode buffer into base64url string.\n *\n * @param buffer the buffer to encode into base64url string\n */\n public static toBase64URL(buffer: Buffer | AnyUint8Array) {\n return base64ToBase64URL(TypedArrayEncoder.toBase64(buffer))\n }\n\n /**\n * Encode buffer into base58 string.\n *\n * @param buffer the buffer to encode into base58 string\n */\n public static toBase58(buffer: Buffer | AnyUint8Array) {\n return encodeToBase58(buffer)\n }\n\n /**\n * Decode base64 string into buffer. Also supports base64url\n *\n * @param base64 the base64 or base64url string to decode into buffer format\n */\n public static fromBase64(base64: string) {\n return Buffer.from(base64, 'base64')\n }\n\n /**\n * Decode base58 string into buffer\n *\n * @param base58 the base58 string to decode into buffer format\n */\n public static fromBase58(base58: string) {\n return Buffer.from(decodeFromBase58(base58))\n }\n\n /**\n * Encode buffer into base64 string.\n *\n * @param buffer the buffer to encode into base64 string\n */\n public static toHex(buffer: Buffer | AnyUint8Array) {\n return Buffer.from(buffer).toString('hex')\n }\n\n /**\n * Decode hex string into buffer\n *\n * @param hex the hex string to decode into buffer format\n */\n public static fromHex(hex: string) {\n return Buffer.from(hex, 'hex')\n }\n\n /**\n * Decode string into buffer.\n *\n * @param str the string to decode into buffer format\n */\n public static fromString(str: string): Uint8ArrayBuffer {\n return Buffer.from(str)\n }\n\n public static toUtf8String(buffer: Buffer | AnyUint8Array) {\n return Buffer.from(buffer).toString()\n }\n\n public static concat(entries: AnyUint8Array[]): Uint8ArrayBuffer {\n return Buffer.concat(entries)\n }\n\n public static equals(firstBuffer: AnyUint8Array, otherBuffer: AnyUint8Array): boolean {\n return Buffer.from(firstBuffer).equals(otherBuffer)\n }\n\n /**\n * Check whether an array is byte, or typed, array\n *\n * @param array unknown The array that has to be checked\n *\n * @returns A boolean if the array is a byte array\n */\n public static isTypedArray(array: unknown): boolean {\n // Checks whether the static property 'BYTES_PER_ELEMENT' exists on the provided array.\n // This has to be done, since the TypedArrays, e.g. Uint8Array and Float32Array, do not\n // extend a single base class\n return 'BYTES_PER_ELEMENT' in (array as Record<string, unknown>)\n }\n}\n"],"mappings":";;;;;;;AAMA,IAAa,oBAAb,MAAa,kBAAkB;;;;;;CAM7B,OAAc,SAAS,QAAgC;AACrD,SAAO,OAAO,KAAK,OAAO,CAAC,SAAS,SAAS;;;;;;;CAQ/C,OAAc,YAAY,QAAgC;AACxD,SAAO,kBAAkB,kBAAkB,SAAS,OAAO,CAAC;;;;;;;CAQ9D,OAAc,SAAS,QAAgC;AACrD,SAAO,eAAe,OAAO;;;;;;;CAQ/B,OAAc,WAAW,QAAgB;AACvC,SAAO,OAAO,KAAK,QAAQ,SAAS;;;;;;;CAQtC,OAAc,WAAW,QAAgB;AACvC,SAAO,OAAO,KAAK,iBAAiB,OAAO,CAAC;;;;;;;CAQ9C,OAAc,MAAM,QAAgC;AAClD,SAAO,OAAO,KAAK,OAAO,CAAC,SAAS,MAAM;;;;;;;CAQ5C,OAAc,QAAQ,KAAa;AACjC,SAAO,OAAO,KAAK,KAAK,MAAM;;;;;;;CAQhC,OAAc,WAAW,KAA+B;AACtD,SAAO,OAAO,KAAK,IAAI;;CAGzB,OAAc,aAAa,QAAgC;AACzD,SAAO,OAAO,KAAK,OAAO,CAAC,UAAU;;CAGvC,OAAc,OAAO,SAA4C;AAC/D,SAAO,OAAO,OAAO,QAAQ;;CAG/B,OAAc,OAAO,aAA4B,aAAqC;AACpF,SAAO,OAAO,KAAK,YAAY,CAAC,OAAO,YAAY;;;;;;;;;CAUrD,OAAc,aAAa,OAAyB;AAIlD,SAAO,uBAAwB"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
4
|
-
require('./buffer.js');
|
|
5
4
|
let varint = require("varint");
|
|
6
5
|
varint = require_rolldown_runtime.__toESM(varint);
|
|
7
|
-
let buffer_index_js = require("buffer/index.js");
|
|
8
|
-
buffer_index_js = require_rolldown_runtime.__toESM(buffer_index_js);
|
|
9
6
|
|
|
10
7
|
//#region src/utils/VarintEncoder.ts
|
|
11
8
|
var VarintEncoder = class VarintEncoder {
|
|
@@ -13,7 +10,7 @@ var VarintEncoder = class VarintEncoder {
|
|
|
13
10
|
return [varint.default.decode(data), varint.default.decode.bytes];
|
|
14
11
|
}
|
|
15
12
|
static encode(int) {
|
|
16
|
-
const target = new
|
|
13
|
+
const target = new Uint8Array(VarintEncoder.encodingLength(int));
|
|
17
14
|
varint.default.encode(int, target);
|
|
18
15
|
return target;
|
|
19
16
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { Buffer } from "./buffer.mjs";
|
|
4
3
|
import varint from "varint";
|
|
5
4
|
|
|
6
5
|
//#region src/utils/VarintEncoder.ts
|
|
@@ -9,7 +8,7 @@ var VarintEncoder = class VarintEncoder {
|
|
|
9
8
|
return [varint.decode(data), varint.decode.bytes];
|
|
10
9
|
}
|
|
11
10
|
static encode(int) {
|
|
12
|
-
const target = new
|
|
11
|
+
const target = new Uint8Array(VarintEncoder.encodingLength(int));
|
|
13
12
|
varint.encode(int, target);
|
|
14
13
|
return target;
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarintEncoder.mjs","names":[],"sources":["../../src/utils/VarintEncoder.ts"],"sourcesContent":["import varint from 'varint'\n\nimport {
|
|
1
|
+
{"version":3,"file":"VarintEncoder.mjs","names":[],"sources":["../../src/utils/VarintEncoder.ts"],"sourcesContent":["import varint from 'varint'\n\nimport type { AnyUint8Array } from '../types'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class VarintEncoder {\n public static decode(data: AnyUint8Array | number[]) {\n const code = varint.decode(data)\n return [code, varint.decode.bytes] as const\n }\n\n public static encode(int: number) {\n const target = new Uint8Array(VarintEncoder.encodingLength(int))\n varint.encode(int, target)\n return target\n }\n\n public static encodingLength(int: number) {\n return varint.encodingLength(int)\n }\n}\n"],"mappings":";;;;;AAKA,IAAa,gBAAb,MAAa,cAAc;CACzB,OAAc,OAAO,MAAgC;AAEnD,SAAO,CADM,OAAO,OAAO,KAAK,EAClB,OAAO,OAAO,MAAM;;CAGpC,OAAc,OAAO,KAAa;EAChC,MAAM,SAAS,IAAI,WAAW,cAAc,eAAe,IAAI,CAAC;AAChE,SAAO,OAAO,KAAK,OAAO;AAC1B,SAAO;;CAGT,OAAc,eAAe,KAAa;AACxC,SAAO,OAAO,eAAe,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base58.mjs","names":[],"sources":["../../src/utils/base58.ts"],"sourcesContent":["import base from '@multiformats/base-x'\n\nconst BASE58_ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nconst base58Converter = base(BASE58_ALPHABET)\n\nexport function decodeFromBase58(base58: string) {\n return base58Converter.decode(base58)\n}\n\nexport function encodeToBase58(buffer:
|
|
1
|
+
{"version":3,"file":"base58.mjs","names":[],"sources":["../../src/utils/base58.ts"],"sourcesContent":["import base from '@multiformats/base-x'\nimport type { AnyUint8Array, Uint8ArrayBuffer } from '../types'\n\nconst BASE58_ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nconst base58Converter = base(BASE58_ALPHABET)\n\nexport function decodeFromBase58(base58: string): Uint8ArrayBuffer {\n return base58Converter.decode(base58) as Uint8ArrayBuffer\n}\n\nexport function encodeToBase58(buffer: AnyUint8Array) {\n return base58Converter.encode(buffer)\n}\n"],"mappings":";;;;;AAKA,MAAM,kBAAkB,KAFA,6DAEqB;AAE7C,SAAgB,iBAAiB,QAAkC;AACjE,QAAO,gBAAgB,OAAO,OAAO;;AAGvC,SAAgB,eAAe,QAAuB;AACpD,QAAO,gBAAgB,OAAO,OAAO"}
|
package/build/utils/buffer.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Buffer } from "buffer
|
|
1
|
+
import { Buffer } from "buffer";
|
|
2
2
|
export { Buffer };
|
package/build/utils/buffer.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Buffer } from "buffer
|
|
1
|
+
import { Buffer } from "buffer";
|
|
2
2
|
export { Buffer };
|
package/build/utils/buffer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepEquality.mjs","names":[],"sources":["../../src/utils/deepEquality.ts"],"sourcesContent":["import { areObjectsEqual } from './objectEquality'\n\n// biome-ignore lint/suspicious/noExplicitAny:
|
|
1
|
+
{"version":3,"file":"deepEquality.mjs","names":[],"sources":["../../src/utils/deepEquality.ts"],"sourcesContent":["import { areObjectsEqual } from './objectEquality'\n\n// biome-ignore lint/suspicious/noExplicitAny: no explanation\nexport function deepEquality(x: any, y: any): boolean {\n // We do a simple equals here to check primitives, functions, regex, etc.\n // This will only happen if the typing of the function is ignored\n const isXSimpleEqualY = simpleEqual(x, y)\n if (isXSimpleEqualY !== undefined) return isXSimpleEqualY\n\n if (!(x instanceof Map) || !(y instanceof Map)) return areObjectsEqual(x, y)\n\n const xMap = x as Map<string, unknown>\n const yMap = y as Map<string, unknown>\n\n // At this point we are sure we have two instances of a Map\n const xKeys = Array.from(xMap.keys())\n const yKeys = Array.from(yMap.keys())\n\n // Keys from both maps are not equal, content has not been verified, yet\n if (!equalsIgnoreOrder(xKeys, yKeys)) return false\n\n // Here we recursively check whether the value of xMap is equals to the value of yMap\n return Array.from(xMap.entries()).every(([key, xVal]) => deepEquality(xVal, yMap.get(key)))\n}\n\n/**\n * @note This will only work for primitive array equality\n */\nexport function equalsIgnoreOrder<Item = string>(a: Array<Item>, b: Array<Item>): boolean {\n if (a.length !== b.length) return false\n return a.every((k) => b.includes(k))\n}\n\n/**\n * @note This will only work for primitive array equality\n */\nexport function equalsWithOrder<Item = string>(lhs: Array<Item>, rhs: Array<Item>): boolean {\n if (lhs.length !== rhs.length) return false\n return lhs.every((k, i) => k === rhs[i])\n}\n\n// We take any here as we have to check some properties, they will be undefined if they do not exist\n// biome-ignore lint/suspicious/noExplicitAny: no explanation\nfunction simpleEqual(x: any, y: any) {\n // short circuit for easy equality\n if (x === y) return true\n\n if ((x === null || x === undefined) && (y === null || y === undefined)) return x === y\n\n // after this just checking type of one would be enough\n if (x.constructor !== y.constructor) return false\n\n // if they are functions, they should exactly refer to same one (because of closures)\n if (x instanceof Function) return x === y\n\n // if they are regexps, they should exactly refer to same one (it is hard to better equality check on current ES)\n if (x instanceof RegExp) return x === y\n\n if (x.valueOf && y.valueOf && x.valueOf() === y.valueOf()) return true\n\n // if they are dates, they must had equal valueOf\n if (x instanceof Date || y instanceof Date) return false\n}\n"],"mappings":";;;;;AAGA,SAAgB,aAAa,GAAQ,GAAiB;CAGpD,MAAM,kBAAkB,YAAY,GAAG,EAAE;AACzC,KAAI,oBAAoB,OAAW,QAAO;AAE1C,KAAI,EAAE,aAAa,QAAQ,EAAE,aAAa,KAAM,QAAO,gBAAgB,GAAG,EAAE;CAE5E,MAAM,OAAO;CACb,MAAM,OAAO;AAOb,KAAI,CAAC,kBAJS,MAAM,KAAK,KAAK,MAAM,CAAC,EACvB,MAAM,KAAK,KAAK,MAAM,CAAC,CAGD,CAAE,QAAO;AAG7C,QAAO,MAAM,KAAK,KAAK,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,UAAU,aAAa,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC;;;;;AAM7F,SAAgB,kBAAiC,GAAgB,GAAyB;AACxF,KAAI,EAAE,WAAW,EAAE,OAAQ,QAAO;AAClC,QAAO,EAAE,OAAO,MAAM,EAAE,SAAS,EAAE,CAAC;;;;;AAMtC,SAAgB,gBAA+B,KAAkB,KAA2B;AAC1F,KAAI,IAAI,WAAW,IAAI,OAAQ,QAAO;AACtC,QAAO,IAAI,OAAO,GAAG,MAAM,MAAM,IAAI,GAAG;;AAK1C,SAAS,YAAY,GAAQ,GAAQ;AAEnC,KAAI,MAAM,EAAG,QAAO;AAEpB,MAAK,MAAM,QAAQ,MAAM,YAAe,MAAM,QAAQ,MAAM,QAAY,QAAO,MAAM;AAGrF,KAAI,EAAE,gBAAgB,EAAE,YAAa,QAAO;AAG5C,KAAI,aAAa,SAAU,QAAO,MAAM;AAGxC,KAAI,aAAa,OAAQ,QAAO,MAAM;AAEtC,KAAI,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,KAAK,EAAE,SAAS,CAAE,QAAO;AAGlE,KAAI,aAAa,QAAQ,aAAa,KAAM,QAAO"}
|
package/build/utils/index.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
4
|
-
require('./
|
|
4
|
+
const require_array = require('./array.js');
|
|
5
|
+
const require_objectEquality = require('./objectEquality.js');
|
|
6
|
+
const require_deepEquality = require('./deepEquality.js');
|
|
5
7
|
const require_TypedArrayEncoder = require('./TypedArrayEncoder.js');
|
|
6
|
-
const
|
|
7
|
-
const require_MessageValidator = require('./MessageValidator.js');
|
|
8
|
-
const require_JsonTransformer = require('./JsonTransformer.js');
|
|
8
|
+
const require_did = require('./did.js');
|
|
9
9
|
const require_MultiBaseEncoder = require('./MultiBaseEncoder.js');
|
|
10
10
|
const require_VarintEncoder = require('./VarintEncoder.js');
|
|
11
11
|
const require_MultiHashEncoder = require('./MultiHashEncoder.js');
|
|
12
12
|
const require_HashlinkEncoder = require('./HashlinkEncoder.js');
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const require_deepEquality = require('./deepEquality.js');
|
|
17
|
-
const require_did = require('./did.js');
|
|
13
|
+
const require_JsonEncoder = require('./JsonEncoder.js');
|
|
14
|
+
const require_MessageValidator = require('./MessageValidator.js');
|
|
15
|
+
const require_JsonTransformer = require('./JsonTransformer.js');
|
|
18
16
|
const require_timestamp = require('./timestamp.js');
|
|
19
17
|
const require_transformers = require('./transformers.js');
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const require_validators = require('./validators.js');
|
|
19
|
+
let buffer = require("buffer");
|
|
20
|
+
buffer = require_rolldown_runtime.__toESM(buffer);
|
package/build/utils/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { asArray, mapSingleOrArray } from "./array.mjs";
|
|
3
4
|
import { Buffer } from "./buffer.mjs";
|
|
5
|
+
import { areObjectsEqual } from "./objectEquality.mjs";
|
|
6
|
+
import { deepEquality, equalsIgnoreOrder, equalsWithOrder } from "./deepEquality.mjs";
|
|
4
7
|
import { TypedArrayEncoder } from "./TypedArrayEncoder.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { MessageValidator } from "./MessageValidator.mjs";
|
|
7
|
-
import { JsonTransformer } from "./JsonTransformer.mjs";
|
|
8
|
+
import { indyDidFromPublicKeyBase58, isDid } from "./did.mjs";
|
|
8
9
|
import { MultiBaseEncoder } from "./MultiBaseEncoder.mjs";
|
|
9
10
|
import { VarintEncoder } from "./VarintEncoder.mjs";
|
|
10
11
|
import { MultiHashEncoder } from "./MultiHashEncoder.mjs";
|
|
11
12
|
import { HashlinkEncoder } from "./HashlinkEncoder.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { indyDidFromPublicKeyBase58, isDid } from "./did.mjs";
|
|
17
|
-
import { nowInSeconds } from "./timestamp.mjs";
|
|
13
|
+
import { JsonEncoder } from "./JsonEncoder.mjs";
|
|
14
|
+
import { MessageValidator } from "./MessageValidator.mjs";
|
|
15
|
+
import { JsonTransformer } from "./JsonTransformer.mjs";
|
|
16
|
+
import { addSecondsToDate, dateToSeconds, nowInSeconds } from "./timestamp.mjs";
|
|
18
17
|
import { DateTransformer, IsStringOrStringArray } from "./transformers.mjs";
|
|
18
|
+
import { IsInstanceOrArrayOfInstances, IsNever, IsStringOrInstance, IsStringOrInstanceOrArrayOfInstances, IsUri, UriValidator, isUri } from "./validators.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectEquality.mjs","names":[],"sources":["../../src/utils/objectEquality.ts"],"sourcesContent":["// biome-ignore lint/suspicious/noExplicitAny:
|
|
1
|
+
{"version":3,"file":"objectEquality.mjs","names":[],"sources":["../../src/utils/objectEquality.ts"],"sourcesContent":["// biome-ignore lint/suspicious/noExplicitAny: no explanation\nexport function areObjectsEqual<A = any, B extends A = A>(a: A, b: B): boolean {\n if (typeof a === 'object' && a != null && typeof b === 'object' && b != null) {\n const definedA = Object.fromEntries(Object.entries(a).filter(([, value]) => value !== undefined))\n const definedB = Object.fromEntries(Object.entries(b).filter(([, value]) => value !== undefined))\n if (Object.keys(definedA).length !== Object.keys(definedB).length) return false\n for (const key in definedA) {\n if (!(key in definedB) || !areObjectsEqual(definedA[key], definedB[key])) {\n return false\n }\n }\n for (const key in definedB) {\n if (!(key in definedA) || !areObjectsEqual(definedB[key], definedA[key])) {\n return false\n }\n }\n return true\n }\n return a === b\n}\n"],"mappings":";;;AACA,SAAgB,gBAA0C,GAAM,GAAe;AAC7E,KAAI,OAAO,MAAM,YAAY,KAAK,QAAQ,OAAO,MAAM,YAAY,KAAK,MAAM;EAC5E,MAAM,WAAW,OAAO,YAAY,OAAO,QAAQ,EAAE,CAAC,QAAQ,GAAG,WAAW,UAAU,OAAU,CAAC;EACjG,MAAM,WAAW,OAAO,YAAY,OAAO,QAAQ,EAAE,CAAC,QAAQ,GAAG,WAAW,UAAU,OAAU,CAAC;AACjG,MAAI,OAAO,KAAK,SAAS,CAAC,WAAW,OAAO,KAAK,SAAS,CAAC,OAAQ,QAAO;AAC1E,OAAK,MAAM,OAAO,SAChB,KAAI,EAAE,OAAO,aAAa,CAAC,gBAAgB,SAAS,MAAM,SAAS,KAAK,CACtE,QAAO;AAGX,OAAK,MAAM,OAAO,SAChB,KAAI,EAAE,OAAO,aAAa,CAAC,gBAAgB,SAAS,MAAM,SAAS,KAAK,CACtE,QAAO;AAGX,SAAO;;AAET,QAAO,MAAM"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { Uint8ArrayBuffer } from "../types.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/utils/timestamp.d.ts
|
|
2
|
-
declare function timestamp():
|
|
4
|
+
declare function timestamp(): Uint8ArrayBuffer;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current time in seconds
|
|
7
|
+
*/
|
|
8
|
+
declare function nowInSeconds(): number;
|
|
9
|
+
declare function addSecondsToDate(date: Date, seconds: number): Date;
|
|
10
|
+
declare function dateToSeconds(date: Date): number;
|
|
3
11
|
//#endregion
|
|
4
|
-
export { timestamp };
|
|
12
|
+
export { addSecondsToDate, dateToSeconds, nowInSeconds, timestamp };
|
|
5
13
|
//# sourceMappingURL=timestamp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.mts","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.mts","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":[],"mappings":";;;iBAIwB,SAAA,CAAA,GAAa;;;;AAAb,iBAcR,YAAA,CAAA,CAdqB,EAAA,MAAgB;AAcrC,iBAIA,gBAAA,CAJY,IAAA,EAIW,IAJX,EAAA,OAAA,EAAA,MAAA,CAAA,EAIgC,IAJhC;AAIZ,iBAIA,aAAA,CAJgB,IAAA,EAII,IAJJ,CAAA,EAAA,MAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { Uint8ArrayBuffer } from "../types.js";
|
|
2
|
+
|
|
1
3
|
//#region src/utils/timestamp.d.ts
|
|
2
|
-
declare function timestamp():
|
|
4
|
+
declare function timestamp(): Uint8ArrayBuffer;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current time in seconds
|
|
7
|
+
*/
|
|
8
|
+
declare function nowInSeconds(): number;
|
|
9
|
+
declare function addSecondsToDate(date: Date, seconds: number): Date;
|
|
10
|
+
declare function dateToSeconds(date: Date): number;
|
|
3
11
|
//#endregion
|
|
4
|
-
export { timestamp };
|
|
12
|
+
export { addSecondsToDate, dateToSeconds, nowInSeconds, timestamp };
|
|
5
13
|
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":[],"mappings":";;;iBAIwB,SAAA,CAAA,GAAa;;AAJW;AAkBhD;AAIgB,iBAJA,YAAA,CAAA,CAIgB,EAAA,MAAA;AAAA,iBAAhB,gBAAA,CAAgB,IAAA,EAAO,IAAP,EAAA,OAAA,EAAA,MAAA,CAAA,EAA4B,IAA5B;AAAO,iBAIvB,aAAA,CAJuB,IAAA,EAIH,IAJG,CAAA,EAAA,MAAA"}
|
package/build/utils/timestamp.js
CHANGED
|
@@ -16,9 +16,17 @@ function timestamp() {
|
|
|
16
16
|
* Returns the current time in seconds
|
|
17
17
|
*/
|
|
18
18
|
function nowInSeconds() {
|
|
19
|
-
return Math.floor(
|
|
19
|
+
return Math.floor(Date.now() / 1e3);
|
|
20
|
+
}
|
|
21
|
+
function addSecondsToDate(date, seconds) {
|
|
22
|
+
return new Date(date.getTime() + seconds * 1e3);
|
|
23
|
+
}
|
|
24
|
+
function dateToSeconds(date) {
|
|
25
|
+
return Math.floor(date.getTime() / 1e3);
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
//#endregion
|
|
29
|
+
exports.addSecondsToDate = addSecondsToDate;
|
|
30
|
+
exports.dateToSeconds = dateToSeconds;
|
|
23
31
|
exports.default = timestamp;
|
|
24
32
|
exports.nowInSeconds = nowInSeconds;
|
|
@@ -15,9 +15,15 @@ function timestamp() {
|
|
|
15
15
|
* Returns the current time in seconds
|
|
16
16
|
*/
|
|
17
17
|
function nowInSeconds() {
|
|
18
|
-
return Math.floor(
|
|
18
|
+
return Math.floor(Date.now() / 1e3);
|
|
19
|
+
}
|
|
20
|
+
function addSecondsToDate(date, seconds) {
|
|
21
|
+
return new Date(date.getTime() + seconds * 1e3);
|
|
22
|
+
}
|
|
23
|
+
function dateToSeconds(date) {
|
|
24
|
+
return Math.floor(date.getTime() / 1e3);
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
//#endregion
|
|
22
|
-
export { timestamp as default, nowInSeconds };
|
|
28
|
+
export { addSecondsToDate, dateToSeconds, timestamp as default, nowInSeconds };
|
|
23
29
|
//# sourceMappingURL=timestamp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.mjs","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":["// Question: Spec isn't clear about the endianness. Assumes big-endian here\n// since ACA-Py uses big-endian.\nexport default function timestamp():
|
|
1
|
+
{"version":3,"file":"timestamp.mjs","names":[],"sources":["../../src/utils/timestamp.ts"],"sourcesContent":["import type { Uint8ArrayBuffer } from '../types'\n\n// Question: Spec isn't clear about the endianness. Assumes big-endian here\n// since ACA-Py uses big-endian.\nexport default function timestamp(): Uint8ArrayBuffer {\n let time = Date.now()\n const bytes = []\n for (let i = 0; i < 8; i++) {\n const byte = time & 0xff\n bytes.push(byte)\n time = (time - byte) / 256 // Javascript right shift (>>>) only works on 32 bit integers\n }\n return Uint8Array.from(bytes).reverse()\n}\n\n/**\n * Returns the current time in seconds\n */\nexport function nowInSeconds() {\n return Math.floor(Date.now() / 1000)\n}\n\nexport function addSecondsToDate(date: Date, seconds: number) {\n return new Date(date.getTime() + seconds * 1000)\n}\n\nexport function dateToSeconds(date: Date) {\n return Math.floor(date.getTime() / 1000)\n}\n"],"mappings":";;;AAIA,SAAwB,YAA8B;CACpD,IAAI,OAAO,KAAK,KAAK;CACrB,MAAM,QAAQ,EAAE;AAChB,MAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK;EAC1B,MAAM,OAAO,OAAO;AACpB,QAAM,KAAK,KAAK;AAChB,UAAQ,OAAO,QAAQ;;AAEzB,QAAO,WAAW,KAAK,MAAM,CAAC,SAAS;;;;;AAMzC,SAAgB,eAAe;AAC7B,QAAO,KAAK,MAAM,KAAK,KAAK,GAAG,IAAK;;AAGtC,SAAgB,iBAAiB,MAAY,SAAiB;AAC5D,QAAO,IAAI,KAAK,KAAK,SAAS,GAAG,UAAU,IAAK;;AAGlD,SAAgB,cAAc,MAAY;AACxC,QAAO,KAAK,MAAM,KAAK,SAAS,GAAG,IAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.d.mts","names":[],"sources":["../../src/utils/transformers.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"transformers.d.mts","names":[],"sources":["../../src/utils/transformers.ts"],"sourcesContent":[],"mappings":";;;;;;AA4BgB,iBAAA,eAAA,CAAA,CAAe,EAAA,iBAAA;;;;iBAoCf,qBAAA,qBAA0C,KAAK,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.d.ts","names":[],"sources":["../../src/utils/transformers.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"transformers.d.ts","names":[],"sources":["../../src/utils/transformers.ts"],"sourcesContent":[],"mappings":";;;;;AA4BA;AAoCA;AAAqC,iBApCrB,eAAA,CAAA,CAoCqB,EApCN,iBAoCM;;;;iBAArB,qBAAA,qBAA0C,KAAK,6BAA6B"}
|