@credo-ts/core 0.5.2 → 0.5.4
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.js.map +1 -1
- package/build/agent/AgentConfig.d.ts +8 -8
- package/build/agent/AgentConfig.js.map +1 -1
- package/build/agent/AgentDependencies.d.ts +0 -2
- package/build/agent/AgentMessage.d.ts +9 -9
- package/build/agent/AgentMessage.js +1 -1
- package/build/agent/AgentMessage.js.map +1 -1
- package/build/agent/AgentModules.js +2 -3
- package/build/agent/AgentModules.js.map +1 -1
- package/build/agent/BaseAgent.js.map +1 -1
- package/build/agent/BaseMessage.js +1 -1
- package/build/agent/BaseMessage.js.map +1 -1
- package/build/agent/Dispatcher.d.ts +1 -0
- package/build/agent/Dispatcher.js +34 -6
- package/build/agent/Dispatcher.js.map +1 -1
- package/build/agent/EnvelopeService.js +2 -2
- package/build/agent/EnvelopeService.js.map +1 -1
- package/build/agent/EventEmitter.js +2 -2
- package/build/agent/EventEmitter.js.map +1 -1
- package/build/agent/Events.js +3 -3
- package/build/agent/Events.js.map +1 -1
- package/build/agent/FeatureRegistry.js +2 -2
- package/build/agent/FeatureRegistry.js.map +1 -1
- package/build/agent/MessageHandlerMiddleware.d.ts +7 -0
- package/build/agent/MessageHandlerMiddleware.js +26 -0
- package/build/agent/MessageHandlerMiddleware.js.map +1 -0
- package/build/agent/MessageHandlerRegistry.d.ts +10 -0
- package/build/agent/MessageHandlerRegistry.js +16 -2
- package/build/agent/MessageHandlerRegistry.js.map +1 -1
- package/build/agent/MessageReceiver.js +5 -8
- package/build/agent/MessageReceiver.js.map +1 -1
- package/build/agent/MessageSender.js +42 -52
- package/build/agent/MessageSender.js.map +1 -1
- package/build/agent/TransportService.js +2 -2
- package/build/agent/TransportService.js.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js +2 -2
- package/build/agent/context/DefaultAgentContextProvider.js.map +1 -1
- package/build/agent/getOutboundMessageContext.js +2 -3
- package/build/agent/getOutboundMessageContext.js.map +1 -1
- package/build/agent/models/InboundMessageContext.d.ts +7 -1
- package/build/agent/models/InboundMessageContext.js +6 -0
- package/build/agent/models/InboundMessageContext.js.map +1 -1
- package/build/agent/models/OutboundMessageContext.js.map +1 -1
- package/build/agent/models/OutboundMessageSendStatus.js +1 -1
- package/build/agent/models/OutboundMessageSendStatus.js.map +1 -1
- package/build/agent/models/features/Feature.js +1 -1
- package/build/agent/models/features/Feature.js.map +1 -1
- package/build/agent/models/features/FeatureQuery.js +1 -1
- package/build/agent/models/features/FeatureQuery.js.map +1 -1
- package/build/agent/models/features/Protocol.js +1 -1
- package/build/agent/models/features/Protocol.js.map +1 -1
- package/build/crypto/JwsService.js +2 -2
- package/build/crypto/JwsService.js.map +1 -1
- package/build/crypto/KeyType.js +1 -1
- package/build/crypto/KeyType.js.map +1 -1
- package/build/crypto/WalletKeyPair.js +1 -2
- package/build/crypto/WalletKeyPair.js.map +1 -1
- package/build/crypto/jose/jwa/alg.js +2 -2
- package/build/crypto/jose/jwa/alg.js.map +1 -1
- package/build/crypto/jose/jwa/crv.js +1 -1
- package/build/crypto/jose/jwa/crv.js.map +1 -1
- package/build/crypto/jose/jwa/kty.js +1 -1
- package/build/crypto/jose/jwa/kty.js.map +1 -1
- package/build/crypto/jose/jwk/Ed25519Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/K256Jwk.js +2 -2
- package/build/crypto/jose/jwk/K256Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P256Jwk.js +2 -2
- package/build/crypto/jose/jwk/P256Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P384Jwk.js +2 -2
- package/build/crypto/jose/jwk/P384Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P521Jwk.js +2 -2
- package/build/crypto/jose/jwk/P521Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/X25519Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/ecCompression.js +2 -3
- package/build/crypto/jose/jwk/ecCompression.js.map +1 -1
- package/build/crypto/jose/jwk/transform.js +4 -5
- package/build/crypto/jose/jwk/transform.js.map +1 -1
- package/build/crypto/jose/jwk/validate.js +5 -6
- package/build/crypto/jose/jwk/validate.js.map +1 -1
- package/build/crypto/jose/jwt/Jwt.js.map +1 -1
- package/build/crypto/jose/jwt/JwtPayload.js.map +1 -1
- package/build/crypto/keyUtils.js +4 -5
- package/build/crypto/keyUtils.js.map +1 -1
- package/build/crypto/multiCodecKey.js +2 -3
- package/build/crypto/multiCodecKey.js.map +1 -1
- package/build/crypto/signing-provider/SigningProviderRegistry.js +2 -2
- package/build/crypto/signing-provider/SigningProviderRegistry.js.map +1 -1
- package/build/decorators/ack/AckDecorator.js +2 -2
- package/build/decorators/ack/AckDecorator.js.map +1 -1
- package/build/decorators/ack/AckDecoratorExtension.d.ts +1 -1
- package/build/decorators/ack/AckDecoratorExtension.js +1 -2
- package/build/decorators/ack/AckDecoratorExtension.js.map +1 -1
- package/build/decorators/attachment/Attachment.js +2 -2
- package/build/decorators/attachment/Attachment.js.map +1 -1
- package/build/decorators/attachment/AttachmentExtension.d.ts +1 -1
- package/build/decorators/attachment/AttachmentExtension.js +1 -2
- package/build/decorators/attachment/AttachmentExtension.js.map +1 -1
- package/build/decorators/l10n/L10nDecoratorExtension.d.ts +1 -1
- package/build/decorators/l10n/L10nDecoratorExtension.js +1 -2
- package/build/decorators/l10n/L10nDecoratorExtension.js.map +1 -1
- package/build/decorators/service/ServiceDecorator.js +1 -1
- package/build/decorators/service/ServiceDecorator.js.map +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.d.ts +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.js +1 -2
- package/build/decorators/service/ServiceDecoratorExtension.js.map +1 -1
- package/build/decorators/signature/SignatureDecorator.js +1 -1
- package/build/decorators/signature/SignatureDecorator.js.map +1 -1
- package/build/decorators/signature/SignatureDecoratorUtils.js +2 -3
- package/build/decorators/signature/SignatureDecoratorUtils.js.map +1 -1
- package/build/decorators/thread/ThreadDecorator.js +1 -1
- package/build/decorators/thread/ThreadDecorator.js.map +1 -1
- package/build/decorators/thread/ThreadDecoratorExtension.d.ts +1 -1
- package/build/decorators/thread/ThreadDecoratorExtension.js +1 -2
- package/build/decorators/thread/ThreadDecoratorExtension.js.map +1 -1
- package/build/decorators/timing/TimingDecorator.js +1 -1
- package/build/decorators/timing/TimingDecorator.js.map +1 -1
- package/build/decorators/timing/TimingDecoratorExtension.d.ts +1 -1
- package/build/decorators/timing/TimingDecoratorExtension.js +1 -2
- package/build/decorators/timing/TimingDecoratorExtension.js.map +1 -1
- package/build/decorators/transport/TransportDecorator.js +2 -2
- package/build/decorators/transport/TransportDecorator.js.map +1 -1
- package/build/decorators/transport/TransportDecoratorExtension.d.ts +1 -1
- package/build/decorators/transport/TransportDecoratorExtension.js +1 -2
- package/build/decorators/transport/TransportDecoratorExtension.js.map +1 -1
- package/build/error/BaseError.js +2 -2
- package/build/error/BaseError.js.map +1 -1
- package/build/error/ValidationErrorUtils.js +1 -2
- package/build/error/ValidationErrorUtils.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/logger/ConsoleLogger.js.map +1 -1
- package/build/logger/Logger.js +1 -1
- package/build/logger/Logger.js.map +1 -1
- package/build/logger/replaceError.js +1 -2
- package/build/logger/replaceError.js.map +1 -1
- package/build/modules/basic-messages/BasicMessageEvents.js +1 -1
- package/build/modules/basic-messages/BasicMessageEvents.js.map +1 -1
- package/build/modules/basic-messages/BasicMessageRole.js +1 -1
- package/build/modules/basic-messages/BasicMessageRole.js.map +1 -1
- package/build/modules/basic-messages/BasicMessagesApi.d.ts +3 -2
- package/build/modules/basic-messages/BasicMessagesApi.js +5 -4
- package/build/modules/basic-messages/BasicMessagesApi.js.map +1 -1
- package/build/modules/basic-messages/messages/BasicMessage.js +1 -1
- package/build/modules/basic-messages/messages/BasicMessage.js.map +1 -1
- package/build/modules/basic-messages/repository/BasicMessageRecord.js.map +1 -1
- package/build/modules/basic-messages/repository/BasicMessageRepository.js +2 -2
- package/build/modules/basic-messages/repository/BasicMessageRepository.js.map +1 -1
- package/build/modules/basic-messages/services/BasicMessageService.d.ts +2 -2
- package/build/modules/basic-messages/services/BasicMessageService.js +4 -4
- package/build/modules/basic-messages/services/BasicMessageService.js.map +1 -1
- package/build/modules/cache/CacheModule.js.map +1 -1
- package/build/modules/cache/InMemoryLruCache.js.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.js +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.js.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRepository.js +2 -2
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRepository.js.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js.map +1 -1
- package/build/modules/common/messages/AckMessage.js +2 -2
- package/build/modules/common/messages/AckMessage.js.map +1 -1
- package/build/modules/connections/ConnectionEvents.js +1 -1
- package/build/modules/connections/ConnectionEvents.js.map +1 -1
- package/build/modules/connections/ConnectionsApi.d.ts +4 -4
- package/build/modules/connections/ConnectionsApi.js +6 -6
- package/build/modules/connections/ConnectionsApi.js.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.js +2 -2
- package/build/modules/connections/DidExchangeProtocol.js.map +1 -1
- package/build/modules/connections/DidExchangeStateMachine.js.map +1 -1
- package/build/modules/connections/TrustPingEvents.js +1 -1
- package/build/modules/connections/TrustPingEvents.js.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.js +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.js.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionRequestHandler.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionResponseHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidRotateHandler.js.map +1 -1
- package/build/modules/connections/handlers/TrustPingMessageHandler.js.map +1 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.js +1 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -1
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +1 -1
- package/build/modules/connections/messages/ConnectionRequestMessage.js +1 -1
- package/build/modules/connections/messages/ConnectionRequestMessage.js.map +1 -1
- package/build/modules/connections/messages/ConnectionResponseMessage.js +1 -1
- package/build/modules/connections/messages/ConnectionResponseMessage.js.map +1 -1
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js +1 -1
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js.map +1 -1
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +1 -1
- package/build/modules/connections/messages/DidExchangeRequestMessage.js +1 -1
- package/build/modules/connections/messages/DidExchangeRequestMessage.js.map +1 -1
- package/build/modules/connections/messages/DidExchangeResponseMessage.js +1 -1
- package/build/modules/connections/messages/DidExchangeResponseMessage.js.map +1 -1
- package/build/modules/connections/messages/DidRotateAckMessage.js +1 -1
- package/build/modules/connections/messages/DidRotateAckMessage.js.map +1 -1
- package/build/modules/connections/messages/DidRotateMessage.js +1 -1
- package/build/modules/connections/messages/DidRotateMessage.js.map +1 -1
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +1 -1
- package/build/modules/connections/messages/HangupMessage.js +1 -1
- package/build/modules/connections/messages/HangupMessage.js.map +1 -1
- package/build/modules/connections/messages/TrustPingMessage.js +1 -1
- package/build/modules/connections/messages/TrustPingMessage.js.map +1 -1
- package/build/modules/connections/messages/TrustPingResponseMessage.js +1 -1
- package/build/modules/connections/messages/TrustPingResponseMessage.js.map +1 -1
- package/build/modules/connections/models/Connection.js +1 -1
- package/build/modules/connections/models/Connection.js.map +1 -1
- package/build/modules/connections/models/ConnectionRole.js +1 -1
- package/build/modules/connections/models/ConnectionRole.js.map +1 -1
- package/build/modules/connections/models/ConnectionState.js +3 -3
- package/build/modules/connections/models/ConnectionState.js.map +1 -1
- package/build/modules/connections/models/ConnectionType.js +1 -1
- package/build/modules/connections/models/ConnectionType.js.map +1 -1
- package/build/modules/connections/models/DidExchangeRole.js +1 -1
- package/build/modules/connections/models/DidExchangeRole.js.map +1 -1
- package/build/modules/connections/models/DidExchangeState.js +1 -1
- package/build/modules/connections/models/DidExchangeState.js.map +1 -1
- package/build/modules/connections/models/DidRotateRole.js +1 -1
- package/build/modules/connections/models/DidRotateRole.js.map +1 -1
- package/build/modules/connections/models/HandshakeProtocol.js +1 -1
- package/build/modules/connections/models/HandshakeProtocol.js.map +1 -1
- package/build/modules/connections/models/did/DidDoc.js +1 -1
- package/build/modules/connections/models/did/DidDoc.js.map +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js.map +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js.map +1 -1
- package/build/modules/connections/models/did/authentication/index.js +2 -2
- package/build/modules/connections/models/did/authentication/index.js.map +1 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +1 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js.map +1 -1
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +1 -1
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js.map +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.js +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.js.map +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js.map +1 -1
- package/build/modules/connections/models/did/publicKey/index.js +2 -2
- package/build/modules/connections/models/did/publicKey/index.js.map +1 -1
- package/build/modules/connections/repository/ConnectionMetadataTypes.js +1 -1
- package/build/modules/connections/repository/ConnectionMetadataTypes.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRecord.js +1 -1
- package/build/modules/connections/repository/ConnectionRecord.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRepository.js +2 -2
- package/build/modules/connections/repository/ConnectionRepository.js.map +1 -1
- package/build/modules/connections/services/ConnectionService.d.ts +4 -3
- package/build/modules/connections/services/ConnectionService.js +12 -11
- package/build/modules/connections/services/ConnectionService.js.map +1 -1
- package/build/modules/connections/services/DidRotateService.js +2 -3
- package/build/modules/connections/services/DidRotateService.js.map +1 -1
- package/build/modules/connections/services/TrustPingService.js +2 -2
- package/build/modules/connections/services/TrustPingService.js.map +1 -1
- package/build/modules/connections/services/helpers.js +5 -6
- package/build/modules/connections/services/helpers.js.map +1 -1
- package/build/modules/credentials/CredentialEvents.js +1 -1
- package/build/modules/credentials/CredentialEvents.js.map +1 -1
- package/build/modules/credentials/CredentialsApi.d.ts +2 -2
- package/build/modules/credentials/CredentialsApi.js +16 -2
- package/build/modules/credentials/CredentialsApi.js.map +1 -1
- package/build/modules/credentials/CredentialsApiOptions.d.ts +8 -0
- package/build/modules/credentials/CredentialsModule.js.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +4 -4
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js.map +1 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js +1 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js.map +1 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js +2 -2
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js.map +1 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +1 -1
- package/build/modules/credentials/models/CredentialAutoAcceptType.js +1 -1
- package/build/modules/credentials/models/CredentialAutoAcceptType.js.map +1 -1
- package/build/modules/credentials/models/CredentialFormatSpec.js +1 -1
- package/build/modules/credentials/models/CredentialFormatSpec.js.map +1 -1
- package/build/modules/credentials/models/CredentialPreviewAttribute.js +1 -1
- package/build/modules/credentials/models/CredentialPreviewAttribute.js.map +1 -1
- package/build/modules/credentials/models/CredentialProblemReportReason.js +1 -1
- package/build/modules/credentials/models/CredentialProblemReportReason.js.map +1 -1
- package/build/modules/credentials/models/CredentialRole.js +1 -1
- package/build/modules/credentials/models/CredentialRole.js.map +1 -1
- package/build/modules/credentials/models/CredentialState.js +1 -1
- package/build/modules/credentials/models/CredentialState.js.map +1 -1
- package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +2 -2
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js +16 -5
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js.map +1 -1
- package/build/modules/credentials/protocol/CredentialProtocol.d.ts +2 -2
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +17 -3
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js.map +1 -1
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js.map +1 -1
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +5 -0
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js.map +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.js +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -1
- package/build/modules/credentials/repository/CredentialRepository.js +2 -2
- package/build/modules/credentials/repository/CredentialRepository.js.map +1 -1
- package/build/modules/credentials/util/composeAutoAccept.js +1 -2
- package/build/modules/credentials/util/composeAutoAccept.js.map +1 -1
- package/build/modules/credentials/util/previewAttributes.js +1 -2
- package/build/modules/credentials/util/previewAttributes.js.map +1 -1
- package/build/modules/didcomm/services/DidCommDocumentService.js +9 -4
- package/build/modules/didcomm/services/DidCommDocumentService.js.map +1 -1
- package/build/modules/didcomm/util/matchingEd25519Key.js +2 -3
- package/build/modules/didcomm/util/matchingEd25519Key.js.map +1 -1
- package/build/modules/dids/DidsApi.js +2 -4
- package/build/modules/dids/DidsApi.js.map +1 -1
- package/build/modules/dids/DidsModuleConfig.js.map +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts +2 -2
- package/build/modules/dids/domain/DidDocument.js +23 -41
- package/build/modules/dids/domain/DidDocument.js.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.js.map +1 -1
- package/build/modules/dids/domain/DidDocumentRole.js +1 -1
- package/build/modules/dids/domain/DidDocumentRole.js.map +1 -1
- package/build/modules/dids/domain/DidResolver.d.ts +8 -0
- package/build/modules/dids/domain/key-type/bls12381g1.js.map +1 -1
- package/build/modules/dids/domain/key-type/bls12381g1g2.js +2 -2
- package/build/modules/dids/domain/key-type/bls12381g1g2.js.map +1 -1
- package/build/modules/dids/domain/key-type/bls12381g2.js.map +1 -1
- package/build/modules/dids/domain/key-type/ed25519.js.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidJsonWebKey.js.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.js +3 -4
- package/build/modules/dids/domain/key-type/keyDidMapping.js.map +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.js.map +1 -1
- package/build/modules/dids/domain/key-type/x25519.js.map +1 -1
- package/build/modules/dids/domain/keyDidDocument.js +2 -3
- package/build/modules/dids/domain/keyDidDocument.js.map +1 -1
- package/build/modules/dids/domain/parse.js +2 -3
- package/build/modules/dids/domain/parse.js.map +1 -1
- package/build/modules/dids/domain/service/DidCommV1Service.js +1 -1
- package/build/modules/dids/domain/service/DidCommV1Service.js.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.js +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.js.map +1 -1
- package/build/modules/dids/domain/service/DidDocumentService.js +1 -1
- package/build/modules/dids/domain/service/DidDocumentService.js.map +1 -1
- package/build/modules/dids/domain/service/IndyAgentService.js +1 -1
- package/build/modules/dids/domain/service/IndyAgentService.js.map +1 -1
- package/build/modules/dids/domain/service/ServiceTransformer.js +2 -2
- package/build/modules/dids/domain/service/ServiceTransformer.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Bls12381G1Key2020.js +4 -4
- package/build/modules/dids/domain/verificationMethod/Bls12381G1Key2020.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Bls12381G2Key2020.js +4 -4
- package/build/modules/dids/domain/verificationMethod/Bls12381G2Key2020.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.js +4 -4
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.js +4 -4
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.js +4 -4
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.js +10 -11
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.js +4 -4
- package/build/modules/dids/domain/verificationMethod/Multikey.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethod.js +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethod.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.js +2 -3
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.js +4 -4
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.js.map +1 -1
- package/build/modules/dids/helpers.js +5 -6
- package/build/modules/dids/helpers.js.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidResolver.d.ts +5 -0
- package/build/modules/dids/methods/jwk/JwkDidResolver.js +5 -0
- package/build/modules/dids/methods/jwk/JwkDidResolver.js.map +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.js +1 -2
- package/build/modules/dids/methods/jwk/didJwkDidDocument.js.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/key/KeyDidResolver.d.ts +5 -0
- package/build/modules/dids/methods/key/KeyDidResolver.js +5 -0
- package/build/modules/dids/methods/key/KeyDidResolver.js.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.ts +5 -0
- package/build/modules/dids/methods/peer/PeerDidResolver.js +5 -0
- package/build/modules/dids/methods/peer/PeerDidResolver.js.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -2
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js.map +1 -1
- package/build/modules/dids/methods/peer/didPeer.js +5 -5
- package/build/modules/dids/methods/peer/didPeer.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo0.js +2 -3
- package/build/modules/dids/methods/peer/peerDidNumAlgo0.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +4 -5
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +5 -5
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.ts +1 -0
- package/build/modules/dids/methods/web/WebDidResolver.js +1 -0
- package/build/modules/dids/methods/web/WebDidResolver.js.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.ts +3 -2
- package/build/modules/dids/repository/DidRecord.js +6 -2
- package/build/modules/dids/repository/DidRecord.js.map +1 -1
- package/build/modules/dids/repository/DidRepository.js +2 -2
- package/build/modules/dids/repository/DidRepository.js.map +1 -1
- package/build/modules/dids/repository/didRecordMetadataTypes.js +1 -1
- package/build/modules/dids/repository/didRecordMetadataTypes.js.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.ts +3 -1
- package/build/modules/dids/services/DidRegistrarService.js +11 -4
- package/build/modules/dids/services/DidRegistrarService.js.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.ts +5 -1
- package/build/modules/dids/services/DidResolverService.js +32 -6
- package/build/modules/dids/services/DidResolverService.js.map +1 -1
- package/build/modules/dids/types.d.ts +18 -0
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +7 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js +2 -3
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js +1 -2
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.js +3 -4
- package/build/modules/dif-presentation-exchange/utils/transform.js.map +1 -1
- package/build/modules/discover-features/DiscoverFeaturesApi.js +2 -2
- package/build/modules/discover-features/DiscoverFeaturesApi.js.map +1 -1
- package/build/modules/discover-features/DiscoverFeaturesEvents.js +1 -1
- package/build/modules/discover-features/DiscoverFeaturesEvents.js.map +1 -1
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js +2 -2
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js +2 -2
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js +1 -1
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js.map +1 -1
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js +2 -2
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js +1 -1
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js +1 -1
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts +2 -2
- package/build/modules/generic-records/GenericRecordsApi.js +4 -4
- package/build/modules/generic-records/GenericRecordsApi.js.map +1 -1
- package/build/modules/generic-records/repository/GenericRecord.js.map +1 -1
- package/build/modules/generic-records/repository/GenericRecordsRepository.js +2 -2
- package/build/modules/generic-records/repository/GenericRecordsRepository.js.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.ts +2 -2
- package/build/modules/generic-records/services/GenericRecordService.js +4 -4
- package/build/modules/generic-records/services/GenericRecordService.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupApi.js +7 -4
- package/build/modules/message-pickup/MessagePickupApi.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupEvents.js +1 -1
- package/build/modules/message-pickup/MessagePickupEvents.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupModule.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupSession.js +1 -1
- package/build/modules/message-pickup/MessagePickupSession.js.map +1 -1
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +3 -3
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js +2 -2
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +2 -2
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js.map +1 -1
- package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +2 -2
- package/build/modules/message-pickup/services/MessagePickupSessionService.js +2 -2
- package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +1 -1
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +2 -2
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +1 -1
- package/build/modules/oob/OutOfBandApi.d.ts +4 -4
- package/build/modules/oob/OutOfBandApi.js +5 -5
- package/build/modules/oob/OutOfBandApi.js.map +1 -1
- package/build/modules/oob/OutOfBandService.d.ts +2 -2
- package/build/modules/oob/OutOfBandService.js +4 -4
- package/build/modules/oob/OutOfBandService.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandEvents.js +1 -1
- package/build/modules/oob/domain/OutOfBandEvents.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandRole.js +1 -1
- package/build/modules/oob/domain/OutOfBandRole.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandState.js +1 -1
- package/build/modules/oob/domain/OutOfBandState.js.map +1 -1
- package/build/modules/oob/helpers.js +2 -3
- package/build/modules/oob/helpers.js.map +1 -1
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js +1 -1
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js.map +1 -1
- package/build/modules/oob/messages/HandshakeReuseMessage.js +1 -1
- package/build/modules/oob/messages/HandshakeReuseMessage.js.map +1 -1
- package/build/modules/oob/messages/OutOfBandInvitation.js +2 -2
- package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -1
- package/build/modules/oob/repository/OutOfBandRecord.js +1 -1
- package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -1
- package/build/modules/oob/repository/OutOfBandRepository.js +2 -2
- package/build/modules/oob/repository/OutOfBandRepository.js.map +1 -1
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js +1 -1
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js.map +1 -1
- package/build/modules/problem-reports/messages/ProblemReportMessage.js +5 -5
- package/build/modules/problem-reports/messages/ProblemReportMessage.js.map +1 -1
- package/build/modules/problem-reports/models/ProblemReportReason.js +1 -1
- package/build/modules/problem-reports/models/ProblemReportReason.js.map +1 -1
- package/build/modules/proofs/ProofEvents.js +1 -1
- package/build/modules/proofs/ProofEvents.js.map +1 -1
- package/build/modules/proofs/ProofsApi.d.ts +2 -2
- package/build/modules/proofs/ProofsApi.js +11 -4
- package/build/modules/proofs/ProofsApi.js.map +1 -1
- package/build/modules/proofs/ProofsApiOptions.d.ts +8 -6
- package/build/modules/proofs/ProofsModule.js.map +1 -1
- package/build/modules/proofs/errors/PresentationProblemReportReason.js +1 -1
- package/build/modules/proofs/errors/PresentationProblemReportReason.js.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -1
- package/build/modules/proofs/models/ProofAutoAcceptType.js +1 -1
- package/build/modules/proofs/models/ProofAutoAcceptType.js.map +1 -1
- package/build/modules/proofs/models/ProofFormatSpec.js +1 -1
- package/build/modules/proofs/models/ProofFormatSpec.js.map +1 -1
- package/build/modules/proofs/models/ProofRole.js +1 -1
- package/build/modules/proofs/models/ProofRole.js.map +1 -1
- package/build/modules/proofs/models/ProofState.js +1 -1
- package/build/modules/proofs/models/ProofState.js.map +1 -1
- package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +2 -2
- package/build/modules/proofs/protocol/BaseProofProtocol.js +15 -3
- package/build/modules/proofs/protocol/BaseProofProtocol.js.map +1 -1
- package/build/modules/proofs/protocol/ProofProtocol.d.ts +2 -2
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -1
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +4 -0
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js.map +1 -1
- package/build/modules/proofs/repository/ProofExchangeRecord.js.map +1 -1
- package/build/modules/proofs/repository/ProofRepository.js +2 -2
- package/build/modules/proofs/repository/ProofRepository.js.map +1 -1
- package/build/modules/proofs/utils/composeAutoAccept.js +1 -2
- package/build/modules/proofs/utils/composeAutoAccept.js.map +1 -1
- package/build/modules/routing/MediationRecipientApi.d.ts +10 -1
- package/build/modules/routing/MediationRecipientApi.js +17 -7
- package/build/modules/routing/MediationRecipientApi.js.map +1 -1
- package/build/modules/routing/MediatorApi.js +2 -2
- package/build/modules/routing/MediatorApi.js.map +1 -1
- package/build/modules/routing/MediatorPickupStrategy.js +1 -1
- package/build/modules/routing/MediatorPickupStrategy.js.map +1 -1
- package/build/modules/routing/MessageForwardingStrategy.js +1 -1
- package/build/modules/routing/MessageForwardingStrategy.js.map +1 -1
- package/build/modules/routing/RoutingEvents.js +1 -1
- package/build/modules/routing/RoutingEvents.js.map +1 -1
- package/build/modules/routing/error/RoutingProblemReportReason.js +1 -1
- package/build/modules/routing/error/RoutingProblemReportReason.js.map +1 -1
- package/build/modules/routing/handlers/MediationRequestHandler.js.map +1 -1
- package/build/modules/routing/messages/ForwardMessage.js +1 -1
- package/build/modules/routing/messages/ForwardMessage.js.map +1 -1
- package/build/modules/routing/messages/KeylistMessage.js +1 -1
- package/build/modules/routing/messages/KeylistMessage.js.map +1 -1
- package/build/modules/routing/messages/KeylistUpdateMessage.js +3 -3
- package/build/modules/routing/messages/KeylistUpdateMessage.js.map +1 -1
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js +3 -3
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js.map +1 -1
- package/build/modules/routing/messages/MediationDenyMessage.js +1 -1
- package/build/modules/routing/messages/MediationDenyMessage.js.map +1 -1
- package/build/modules/routing/messages/MediationGrantMessage.js +1 -1
- package/build/modules/routing/messages/MediationGrantMessage.js.map +1 -1
- package/build/modules/routing/messages/MediationRequestMessage.js +1 -1
- package/build/modules/routing/messages/MediationRequestMessage.js.map +1 -1
- package/build/modules/routing/models/MediationRole.js +1 -1
- package/build/modules/routing/models/MediationRole.js.map +1 -1
- package/build/modules/routing/models/MediationState.js +1 -1
- package/build/modules/routing/models/MediationState.js.map +1 -1
- package/build/modules/routing/repository/MediationRecord.d.ts +1 -1
- package/build/modules/routing/repository/MediationRecord.js +1 -1
- package/build/modules/routing/repository/MediationRecord.js.map +1 -1
- package/build/modules/routing/repository/MediationRepository.js +2 -2
- package/build/modules/routing/repository/MediationRepository.js.map +1 -1
- package/build/modules/routing/repository/MediatorRoutingRecord.js.map +1 -1
- package/build/modules/routing/repository/MediatorRoutingRepository.js +2 -2
- package/build/modules/routing/repository/MediatorRoutingRepository.js.map +1 -1
- package/build/modules/routing/services/MediationRecipientService.d.ts +2 -2
- package/build/modules/routing/services/MediationRecipientService.js +4 -4
- package/build/modules/routing/services/MediationRecipientService.js.map +1 -1
- package/build/modules/routing/services/MediatorService.d.ts +2 -2
- package/build/modules/routing/services/MediatorService.js +4 -4
- package/build/modules/routing/services/MediatorService.js.map +1 -1
- package/build/modules/routing/services/RoutingService.js +2 -2
- package/build/modules/routing/services/RoutingService.js.map +1 -1
- package/build/modules/routing/services/helpers.js +1 -2
- package/build/modules/routing/services/helpers.js.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +9 -8
- package/build/modules/sd-jwt-vc/SdJwtVcApi.js +4 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.js.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +7 -2
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +15 -10
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +144 -70
- package/build/modules/sd-jwt-vc/SdJwtVcService.js.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.js +2 -2
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.js.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.ts +2 -2
- package/build/modules/vc/W3cCredentialService.js +4 -4
- package/build/modules/vc/W3cCredentialService.js.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts +2 -2
- package/build/modules/vc/W3cCredentialsApi.js +4 -4
- package/build/modules/vc/W3cCredentialsApi.js.map +1 -1
- package/build/modules/vc/data-integrity/SignatureSuiteRegistry.js +2 -2
- package/build/modules/vc/data-integrity/SignatureSuiteRegistry.js.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +3 -3
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js.map +1 -1
- package/build/modules/vc/data-integrity/deriveProof.js.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js +2 -2
- package/build/modules/vc/data-integrity/jsonldUtil.js.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.js +1 -2
- package/build/modules/vc/data-integrity/libraries/documentLoader.js.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.ts +3 -1
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.js +1 -2
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.js.map +1 -1
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.js +1 -2
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.js.map +1 -1
- package/build/modules/vc/data-integrity/models/DataIntegrityProof.js +1 -1
- package/build/modules/vc/data-integrity/models/DataIntegrityProof.js.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.js.map +1 -1
- package/build/modules/vc/data-integrity/models/LinkedDataProof.js +1 -1
- package/build/modules/vc/data-integrity/models/LinkedDataProof.js.map +1 -1
- package/build/modules/vc/data-integrity/models/ProofTransformer.js +1 -2
- package/build/modules/vc/data-integrity/models/ProofTransformer.js.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js.map +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.js.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.js.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.js.map +1 -1
- package/build/modules/vc/jwt-vc/credentialTransformer.js +2 -3
- package/build/modules/vc/jwt-vc/credentialTransformer.js.map +1 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.js +2 -3
- package/build/modules/vc/jwt-vc/presentationTransformer.js.map +1 -1
- package/build/modules/vc/models/ClaimFormat.js +1 -1
- package/build/modules/vc/models/ClaimFormat.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.js +3 -3
- package/build/modules/vc/models/credential/W3cCredential.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSchema.js +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSchema.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialStatus.js +1 -1
- package/build/modules/vc/models/credential/W3cCredentialStatus.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.js +4 -4
- package/build/modules/vc/models/credential/W3cCredentialSubject.js.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.js +4 -4
- package/build/modules/vc/models/credential/W3cIssuer.js.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.js +1 -2
- package/build/modules/vc/models/credential/W3cVerifiableCredential.js.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.js +4 -4
- package/build/modules/vc/models/presentation/W3cHolder.js.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.js +3 -3
- package/build/modules/vc/models/presentation/W3cPresentation.js.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.js +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.js.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRepository.js +2 -2
- package/build/modules/vc/repository/W3cCredentialRepository.js.map +1 -1
- package/build/modules/vc/util.js.map +1 -1
- package/build/modules/vc/validators.js +1 -2
- package/build/modules/vc/validators.js.map +1 -1
- package/build/plugins/DependencyManager.d.ts +9 -0
- package/build/plugins/DependencyManager.js +20 -0
- package/build/plugins/DependencyManager.js.map +1 -1
- package/build/plugins/utils.js +3 -4
- package/build/plugins/utils.js.map +1 -1
- package/build/storage/BaseRecord.js +1 -1
- package/build/storage/BaseRecord.js.map +1 -1
- package/build/storage/Repository.d.ts +2 -2
- package/build/storage/Repository.js +2 -2
- package/build/storage/Repository.js.map +1 -1
- package/build/storage/RepositoryEvents.js +1 -1
- package/build/storage/RepositoryEvents.js.map +1 -1
- package/build/storage/StorageService.d.ts +9 -3
- package/build/storage/didcomm/DidCommMessageRecord.js.map +1 -1
- package/build/storage/didcomm/DidCommMessageRepository.js +2 -2
- package/build/storage/didcomm/DidCommMessageRepository.js.map +1 -1
- package/build/storage/didcomm/DidCommMessageRole.js +1 -1
- package/build/storage/didcomm/DidCommMessageRole.js.map +1 -1
- package/build/storage/migration/StorageUpdateService.js +2 -2
- package/build/storage/migration/StorageUpdateService.js.map +1 -1
- package/build/storage/migration/UpdateAssistant.js.map +1 -1
- package/build/storage/migration/isUpToDate.js +1 -2
- package/build/storage/migration/isUpToDate.js.map +1 -1
- package/build/storage/migration/repository/StorageVersionRecord.js.map +1 -1
- package/build/storage/migration/repository/StorageVersionRepository.js +2 -2
- package/build/storage/migration/repository/StorageVersionRepository.js.map +1 -1
- package/build/storage/migration/updates/0.1-0.2/connection.js +6 -13
- package/build/storage/migration/updates/0.1-0.2/connection.js.map +1 -1
- package/build/storage/migration/updates/0.1-0.2/credential.js +7 -7
- package/build/storage/migration/updates/0.1-0.2/credential.js.map +1 -1
- package/build/storage/migration/updates/0.1-0.2/index.js +1 -2
- package/build/storage/migration/updates/0.1-0.2/index.js.map +1 -1
- package/build/storage/migration/updates/0.1-0.2/mediation.js +2 -3
- package/build/storage/migration/updates/0.1-0.2/mediation.js.map +1 -1
- package/build/storage/migration/updates/0.2-0.3/connection.js +2 -3
- package/build/storage/migration/updates/0.2-0.3/connection.js.map +1 -1
- package/build/storage/migration/updates/0.2-0.3/index.js +1 -2
- package/build/storage/migration/updates/0.2-0.3/index.js.map +1 -1
- package/build/storage/migration/updates/0.2-0.3/proof.js +6 -6
- package/build/storage/migration/updates/0.2-0.3/proof.js.map +1 -1
- package/build/storage/migration/updates/0.3-0.3.1/did.js +1 -2
- package/build/storage/migration/updates/0.3-0.3.1/did.js.map +1 -1
- package/build/storage/migration/updates/0.3-0.3.1/index.js +1 -2
- package/build/storage/migration/updates/0.3-0.3.1/index.js.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/cache.js +1 -2
- package/build/storage/migration/updates/0.3.1-0.4/cache.js.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/did.js +2 -3
- package/build/storage/migration/updates/0.3.1-0.4/did.js.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/index.js +1 -2
- package/build/storage/migration/updates/0.3.1-0.4/index.js.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/w3cCredentialRecord.js +1 -2
- package/build/storage/migration/updates/0.3.1-0.4/w3cCredentialRecord.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/credentialExchangeRecord.js +3 -4
- package/build/storage/migration/updates/0.4-0.5/credentialExchangeRecord.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/index.js +1 -2
- package/build/storage/migration/updates/0.4-0.5/index.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/proofExchangeRecord.js +3 -4
- package/build/storage/migration/updates/0.4-0.5/proofExchangeRecord.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js +2 -3
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js.map +1 -1
- package/build/storage/migration/updates.d.ts +3 -1
- package/build/transport/HttpOutboundTransport.js.map +1 -1
- package/build/transport/TransportEventTypes.js +1 -1
- package/build/transport/TransportEventTypes.js.map +1 -1
- package/build/transport/WsOutboundTransport.js.map +1 -1
- package/build/types.js +2 -2
- package/build/types.js.map +1 -1
- package/build/utils/Hasher.js.map +1 -1
- package/build/utils/HashlinkEncoder.js.map +1 -1
- package/build/utils/JWE.js +1 -2
- package/build/utils/JWE.js.map +1 -1
- package/build/utils/JsonTransformer.js.map +1 -1
- package/build/utils/LinkedAttachment.js +1 -1
- package/build/utils/LinkedAttachment.js.map +1 -1
- package/build/utils/MessageValidator.js.map +1 -1
- package/build/utils/MultiBaseEncoder.js.map +1 -1
- package/build/utils/MultiHashEncoder.js.map +1 -1
- package/build/utils/array.d.ts +2 -2
- package/build/utils/attachment.js +2 -3
- package/build/utils/attachment.js.map +1 -1
- package/build/utils/base58.js +2 -3
- package/build/utils/base58.js.map +1 -1
- package/build/utils/base64.js +1 -2
- package/build/utils/base64.js.map +1 -1
- package/build/utils/deepEquality.js +2 -3
- package/build/utils/deepEquality.js.map +1 -1
- package/build/utils/did.js +2 -3
- package/build/utils/did.js.map +1 -1
- package/build/utils/fetch.d.ts +7 -0
- package/build/utils/fetch.js +17 -0
- package/build/utils/fetch.js.map +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/messageType.js +10 -11
- package/build/utils/messageType.js.map +1 -1
- package/build/utils/mixins.js +1 -2
- package/build/utils/mixins.js.map +1 -1
- package/build/utils/objectEquality.js +1 -2
- package/build/utils/objectEquality.js.map +1 -1
- package/build/utils/parseInvitation.js +2 -2
- package/build/utils/parseInvitation.js.map +1 -1
- package/build/utils/path.js +2 -3
- package/build/utils/path.js.map +1 -1
- package/build/utils/promises.js +3 -4
- package/build/utils/promises.js.map +1 -1
- package/build/utils/sleep.js +1 -2
- package/build/utils/sleep.js.map +1 -1
- package/build/utils/thread.js +1 -2
- package/build/utils/thread.js.map +1 -1
- package/build/utils/timestamp.d.ts +4 -0
- package/build/utils/timestamp.js +8 -1
- package/build/utils/timestamp.js.map +1 -1
- package/build/utils/transformers.js +5 -6
- package/build/utils/transformers.js.map +1 -1
- package/build/utils/uri.js +1 -2
- package/build/utils/uri.js.map +1 -1
- package/build/utils/uuid.js +2 -3
- package/build/utils/uuid.js.map +1 -1
- package/build/utils/validators.js +6 -6
- package/build/utils/validators.js.map +1 -1
- package/build/utils/version.js +3 -4
- package/build/utils/version.js.map +1 -1
- package/build/wallet/WalletApi.js +2 -2
- package/build/wallet/WalletApi.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentContext } from '../../../agent';
|
|
2
2
|
import type { InboundMessageContext } from '../../../agent/models/InboundMessageContext';
|
|
3
|
-
import type { Query } from '../../../storage/StorageService';
|
|
3
|
+
import type { Query, QueryOptions } from '../../../storage/StorageService';
|
|
4
4
|
import type { ForwardMessage, MediationRequestMessage } from '../messages';
|
|
5
5
|
import { EventEmitter } from '../../../agent/EventEmitter';
|
|
6
6
|
import { Logger } from '../../../logger';
|
|
@@ -32,7 +32,7 @@ export declare class MediatorService {
|
|
|
32
32
|
getAll(agentContext: AgentContext): Promise<MediationRecord[]>;
|
|
33
33
|
findMediatorRoutingRecord(agentContext: AgentContext): Promise<MediatorRoutingRecord | null>;
|
|
34
34
|
createMediatorRoutingRecord(agentContext: AgentContext): Promise<MediatorRoutingRecord | null>;
|
|
35
|
-
findAllByQuery(agentContext: AgentContext, query: Query<MediationRecord
|
|
35
|
+
findAllByQuery(agentContext: AgentContext, query: Query<MediationRecord>, queryOptions?: QueryOptions): Promise<MediationRecord[]>;
|
|
36
36
|
private updateState;
|
|
37
37
|
private emitStateChangedEvent;
|
|
38
38
|
private updateUseDidKeysFlag;
|
|
@@ -215,8 +215,8 @@ let MediatorService = class MediatorService {
|
|
|
215
215
|
}
|
|
216
216
|
return routingRecord;
|
|
217
217
|
}
|
|
218
|
-
async findAllByQuery(agentContext, query) {
|
|
219
|
-
return await this.mediationRepository.findByQuery(agentContext, query);
|
|
218
|
+
async findAllByQuery(agentContext, query, queryOptions) {
|
|
219
|
+
return await this.mediationRepository.findByQuery(agentContext, query, queryOptions);
|
|
220
220
|
}
|
|
221
221
|
async updateState(agentContext, mediationRecord, newState) {
|
|
222
222
|
const previousState = mediationRecord.state;
|
|
@@ -241,7 +241,8 @@ let MediatorService = class MediatorService {
|
|
|
241
241
|
await this.connectionService.update(agentContext, connection);
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
MediatorService =
|
|
244
|
+
exports.MediatorService = MediatorService;
|
|
245
|
+
exports.MediatorService = MediatorService = __decorate([
|
|
245
246
|
(0, plugins_1.injectable)(),
|
|
246
247
|
__param(4, (0, plugins_1.inject)(constants_1.InjectionSymbols.Logger)),
|
|
247
248
|
__metadata("design:paramtypes", [MediationRepository_1.MediationRepository,
|
|
@@ -249,5 +250,4 @@ MediatorService = __decorate([
|
|
|
249
250
|
message_pickup_1.MessagePickupApi,
|
|
250
251
|
EventEmitter_1.EventEmitter, Object, connections_1.ConnectionService])
|
|
251
252
|
], MediatorService);
|
|
252
|
-
exports.MediatorService = MediatorService;
|
|
253
253
|
//# sourceMappingURL=MediatorService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediatorService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/MediatorService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,8DAA0D;AAC1D,gEAA4D;AAC5D,kDAAqD;AACrD,4CAAyC;AACzC,0CAAiE;AAEjE,8CAAqD;AACrD,mDAAqD;AACrD,kGAA6F;AAC7F,gDAA6E;AAC7E,yDAAuD;AACvD,oFAAoF;AACpF,kEAA8D;AAC9D,4EAAwE;AACxE,oDAAoD;AACpD,0CAOoB;AACpB,2DAAuD;AACvD,6DAAyD;AACzD,8CAAqD;AACrD,mEAA+D;AAC/D,2EAAuE;AACvE,uFAAmF;AAG5E,IAAM,eAAe,GAArB,MAAM,eAAe;IAQ1B,YACE,mBAAwC,EACxC,yBAAoD,EACpD,gBAAkC,EAClC,YAA0B,EACO,MAAc,EAC/C,iBAAoC;QAEpC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAC1D,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;IAC5C,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,YAA0B;QACrD,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAA;QAEhF,IAAI,qBAAqB,EAAE;
|
|
1
|
+
{"version":3,"file":"MediatorService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/MediatorService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,8DAA0D;AAC1D,gEAA4D;AAC5D,kDAAqD;AACrD,4CAAyC;AACzC,0CAAiE;AAEjE,8CAAqD;AACrD,mDAAqD;AACrD,kGAA6F;AAC7F,gDAA6E;AAC7E,yDAAuD;AACvD,oFAAoF;AACpF,kEAA8D;AAC9D,4EAAwE;AACxE,oDAAoD;AACpD,0CAOoB;AACpB,2DAAuD;AACvD,6DAAyD;AACzD,8CAAqD;AACrD,mEAA+D;AAC/D,2EAAuE;AACvE,uFAAmF;AAG5E,IAAM,eAAe,GAArB,MAAM,eAAe;IAQ1B,YACE,mBAAwC,EACxC,yBAAoD,EACpD,gBAAkC,EAClC,YAA0B,EACO,MAAc,EAC/C,iBAAoC;QAEpC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAC1D,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;IAC5C,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,YAA0B;QACrD,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAA;QAEhF,IAAI,qBAAqB,EAAE,CAAC;YAC1B,0BAA0B;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,qBAAqB,CAAC,WAAW,EAAE,CAAC,CAAA;YACzF,OAAO,qBAAqB,CAAC,WAAW,CAAA;QAC1C,CAAC;QACD,MAAM,IAAI,kBAAU,CAAC,wCAAwC,CAAC,CAAA;IAChE,CAAC;IAEM,KAAK,CAAC,q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,EAAE,aAAa,CAAC,CAAA;IAC1E,CAAC;IAEO,qBAAqB,CAC3B,YAA0B,EAC1B,eAAgC,EAChC,aAAoC;QAEpC,IAAI,CAAC,YAAY,CAAC,IAAI,CAA6B,YAAY,EAAE;YAC/D,IAAI,EAAE,iCAAiB,CAAC,qBAAqB;YAC7C,OAAO,EAAE;gBACP,eAAe,EAAE,eAAe,CAAC,KAAK,EAAE;gBACxC,aAAa;aACd;SACF,CAAC,CAAA;IACJ,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAChC,YAA0B,EAC1B,UAA4B,EAC5B,WAAmB,EACnB,oBAA6B;;QAE7B,MAAM,qBAAqB,GAAG,MAAA,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,gDAAsB,CAAC,qBAAqB,CAAC,mCAAI,EAAE,CAAA;QACzG,qBAAqB,CAAC,WAAW,CAAC,GAAG,oBAAoB,CAAA;QACzD,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,gDAAsB,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAA;QAC5F,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AA9RY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,oBAAU,GAAE;IAcR,WAAA,IAAA,gBAAM,EAAC,4BAAgB,CAAC,MAAM,CAAC,CAAA;qCAJX,yCAAmB;QACb,qDAAyB;QAClC,iCAAgB;QACpB,2BAAY,UAEP,+BAAiB;GAd3B,eAAe,CA8R3B"}
|
|
@@ -46,9 +46,9 @@ let RoutingService = class RoutingService {
|
|
|
46
46
|
await this.mediationRecipientService.removeMediationRouting(agentContext, options);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
RoutingService =
|
|
49
|
+
exports.RoutingService = RoutingService;
|
|
50
|
+
exports.RoutingService = RoutingService = __decorate([
|
|
50
51
|
(0, plugins_1.injectable)(),
|
|
51
52
|
__metadata("design:paramtypes", [MediationRecipientService_1.MediationRecipientService, EventEmitter_1.EventEmitter])
|
|
52
53
|
], RoutingService);
|
|
53
|
-
exports.RoutingService = RoutingService;
|
|
54
54
|
//# sourceMappingURL=RoutingService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/RoutingService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,8DAA0D;AAC1D,4CAAyC;AACzC,8CAA6C;AAC7C,oDAAoD;AAEpD,2EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IAKzB,YAAmB,yBAAoD,EAAE,YAA0B;QACjG,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAE1D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IAEM,KAAK,CAAC,UAAU,CACrB,YAA0B,EAC1B,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAwB,EAAE;QAEjE,2BAA2B;QAC3B,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,gBAAO,CAAC,OAAO,EAAE,CAAC,CAAA;QAEtF,IAAI,OAAO,GAAY;YACrB,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,SAAS;YACxC,WAAW,EAAE,EAAE;YACf,YAAY;SACb,CAAA;QAED,oDAAoD;QACpD,OAAO,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,YAAY,EAAE,OAAO,EAAE;YACxF,UAAU;YACV,kBAAkB;SACnB,CAAC,CAAA;QAEF,uEAAuE;QACvE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAsB,YAAY,EAAE;YACxD,IAAI,EAAE,iCAAiB,CAAC,mBAAmB;YAC3C,OAAO,EAAE;gBACP,OAAO;aACR;SACF,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,YAA0B,EAAE,OAA6B;QAClF,MAAM,IAAI,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACpF,CAAC;CACF,CAAA;AA5CY,cAAc;IAD1B,IAAA,oBAAU,GAAE;qCAMmC,qDAAyB,EAAgB,2BAAY;GALxF,cAAc,CA4C1B
|
|
1
|
+
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/RoutingService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,8DAA0D;AAC1D,4CAAyC;AACzC,8CAA6C;AAC7C,oDAAoD;AAEpD,2EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IAKzB,YAAmB,yBAAoD,EAAE,YAA0B;QACjG,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAE1D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IAEM,KAAK,CAAC,UAAU,CACrB,YAA0B,EAC1B,EAAE,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAwB,EAAE;QAEjE,2BAA2B;QAC3B,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,gBAAO,CAAC,OAAO,EAAE,CAAC,CAAA;QAEtF,IAAI,OAAO,GAAY;YACrB,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,SAAS;YACxC,WAAW,EAAE,EAAE;YACf,YAAY;SACb,CAAA;QAED,oDAAoD;QACpD,OAAO,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,YAAY,EAAE,OAAO,EAAE;YACxF,UAAU;YACV,kBAAkB;SACnB,CAAC,CAAA;QAEF,uEAAuE;QACvE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAsB,YAAY,EAAE;YACxD,IAAI,EAAE,iCAAiB,CAAC,mBAAmB;YAC3C,OAAO,EAAE;gBACP,OAAO;aACR;SACF,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,YAA0B,EAAE,OAA6B;QAClF,MAAM,IAAI,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACpF,CAAC;CACF,CAAA;AA5CY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,oBAAU,GAAE;qCAMmC,qDAAyB,EAAgB,2BAAY;GALxF,cAAc,CA4C1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMediationRecordForDidDocument =
|
|
3
|
+
exports.getMediationRecordForDidDocument = getMediationRecordForDidDocument;
|
|
4
4
|
const MediationRecipientService_1 = require("./MediationRecipientService");
|
|
5
5
|
async function getMediationRecordForDidDocument(agentContext, didDocument) {
|
|
6
6
|
const [mediatorRecord] = await agentContext.dependencyManager
|
|
@@ -10,5 +10,4 @@ async function getMediationRecordForDidDocument(agentContext, didDocument) {
|
|
|
10
10
|
});
|
|
11
11
|
return mediatorRecord;
|
|
12
12
|
}
|
|
13
|
-
exports.getMediationRecordForDidDocument = getMediationRecordForDidDocument;
|
|
14
13
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/helpers.ts"],"names":[],"mappings":";;AAKA,4EAOC;AATD,2EAAuE;AAEhE,KAAK,UAAU,gCAAgC,CAAC,YAA0B,EAAE,WAAwB;IACzG,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,YAAY,CAAC,iBAAiB;SAC1D,OAAO,CAAC,qDAAyB,CAAC;SAClC,uBAAuB,CAAC,YAAY,EAAE;QACrC,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC;KAC3E,CAAC,CAAA;IACJ,OAAO,cAAc,CAAA;AACvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SdJwtVcSignOptions, SdJwtVcHeader, SdJwtVcPayload, SdJwtVcPresentOptions, SdJwtVcVerifyOptions } from './SdJwtVcOptions';
|
|
2
2
|
import type { SdJwtVcRecord } from './repository';
|
|
3
|
-
import type { Query } from '../../storage/StorageService';
|
|
3
|
+
import type { Query, QueryOptions } from '../../storage/StorageService';
|
|
4
4
|
import { AgentContext } from '../../agent';
|
|
5
5
|
import { SdJwtVcService } from './SdJwtVcService';
|
|
6
6
|
/**
|
|
@@ -36,13 +36,14 @@ export declare class SdJwtVcApi {
|
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
verify<Header extends SdJwtVcHeader, Payload extends SdJwtVcPayload>(options: SdJwtVcVerifyOptions): Promise<{
|
|
39
|
+
isValid: true;
|
|
39
40
|
verification: import("./SdJwtVcService").VerificationResult;
|
|
40
|
-
sdJwtVc:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
sdJwtVc: import("./SdJwtVcService").SdJwtVc<Header, Payload>;
|
|
42
|
+
} | {
|
|
43
|
+
isValid: false;
|
|
44
|
+
verification: import("./SdJwtVcService").VerificationResult;
|
|
45
|
+
sdJwtVc?: import("./SdJwtVcService").SdJwtVc<Header, Payload> | undefined;
|
|
46
|
+
error: Error;
|
|
46
47
|
}>;
|
|
47
48
|
/**
|
|
48
49
|
* Get and validate a sd-jwt-vc from a serialized JWT.
|
|
@@ -51,7 +52,7 @@ export declare class SdJwtVcApi {
|
|
|
51
52
|
store(compactSdJwtVc: string): Promise<SdJwtVcRecord>;
|
|
52
53
|
getById(id: string): Promise<SdJwtVcRecord>;
|
|
53
54
|
getAll(): Promise<Array<SdJwtVcRecord>>;
|
|
54
|
-
findAllByQuery(query: Query<SdJwtVcRecord
|
|
55
|
+
findAllByQuery(query: Query<SdJwtVcRecord>, queryOptions?: QueryOptions): Promise<Array<SdJwtVcRecord>>;
|
|
55
56
|
deleteById(id: string): Promise<void>;
|
|
56
57
|
update(sdJwtVcRecord: SdJwtVcRecord): Promise<void>;
|
|
57
58
|
}
|
|
@@ -59,8 +59,8 @@ let SdJwtVcApi = class SdJwtVcApi {
|
|
|
59
59
|
async getAll() {
|
|
60
60
|
return await this.sdJwtVcService.getAll(this.agentContext);
|
|
61
61
|
}
|
|
62
|
-
async findAllByQuery(query) {
|
|
63
|
-
return await this.sdJwtVcService.findByQuery(this.agentContext, query);
|
|
62
|
+
async findAllByQuery(query, queryOptions) {
|
|
63
|
+
return await this.sdJwtVcService.findByQuery(this.agentContext, query, queryOptions);
|
|
64
64
|
}
|
|
65
65
|
async deleteById(id) {
|
|
66
66
|
return await this.sdJwtVcService.deleteById(this.agentContext, id);
|
|
@@ -69,9 +69,9 @@ let SdJwtVcApi = class SdJwtVcApi {
|
|
|
69
69
|
return await this.sdJwtVcService.update(this.agentContext, sdJwtVcRecord);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
SdJwtVcApi =
|
|
72
|
+
exports.SdJwtVcApi = SdJwtVcApi;
|
|
73
|
+
exports.SdJwtVcApi = SdJwtVcApi = __decorate([
|
|
73
74
|
(0, plugins_1.injectable)(),
|
|
74
75
|
__metadata("design:paramtypes", [agent_1.AgentContext, SdJwtVcService_1.SdJwtVcService])
|
|
75
76
|
], SdJwtVcApi);
|
|
76
|
-
exports.SdJwtVcApi = SdJwtVcApi;
|
|
77
77
|
//# sourceMappingURL=SdJwtVcApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdJwtVcApi.js","sourceRoot":"","sources":["../../../src/modules/sd-jwt-vc/SdJwtVcApi.ts"],"names":[],"mappings":";;;;;;;;;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AAC,YAAY,EAAE,EAAE,CAAC,CAAA;IACjE,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IAC5D,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,KAA2B,EAAE,YAA2B;QAClF,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,EAAE,YAAY,CAAC,CAAA;IACtF,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,EAAU;QAChC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC,CAAA;IACpE,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,aAA4B;QAC9C,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAA;IAC3E,CAAC;CACF,CAAA;AAnEY,gCAAU;qBAAV,UAAU;IADtB,IAAA,oBAAU,GAAE;qCAKsB,oBAAY,EAAkB,+BAAc;GAJlE,UAAU,CAmEtB"}
|
|
@@ -26,7 +26,10 @@ export type SdJwtVcHolderBinding = SdJwtVcHolderDidBinding | SdJwtVcHolderJwkBin
|
|
|
26
26
|
export type SdJwtVcIssuer = SdJwtVcIssuerDid;
|
|
27
27
|
export interface SdJwtVcSignOptions<Payload extends SdJwtVcPayload = SdJwtVcPayload> {
|
|
28
28
|
payload: Payload;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* If holder is not provided, we don't bind the SD-JWT VC to a key (so bearer VC)
|
|
31
|
+
*/
|
|
32
|
+
holder?: SdJwtVcHolderBinding;
|
|
30
33
|
issuer: SdJwtVcIssuer;
|
|
31
34
|
disclosureFrame?: IDisclosureFrame;
|
|
32
35
|
/**
|
|
@@ -43,8 +46,10 @@ export type SdJwtVcPresentOptions<Payload extends SdJwtVcPayload = SdJwtVcPayloa
|
|
|
43
46
|
/**
|
|
44
47
|
* This information is received out-of-band from the verifier.
|
|
45
48
|
* The claims will be used to create a normal JWT, used for key binding.
|
|
49
|
+
*
|
|
50
|
+
* If not defined, a KB-JWT will not be created
|
|
46
51
|
*/
|
|
47
|
-
verifierMetadata
|
|
52
|
+
verifierMetadata?: {
|
|
48
53
|
audience: string;
|
|
49
54
|
nonce: string;
|
|
50
55
|
issuedAt: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SdJwtVcSignOptions, SdJwtVcPresentOptions, SdJwtVcVerifyOptions, SdJwtVcPayload, SdJwtVcHeader } from './SdJwtVcOptions';
|
|
2
2
|
import type { AgentContext } from '../../agent';
|
|
3
3
|
import type { JwkJson } from '../../crypto';
|
|
4
|
-
import type { Query } from '../../storage/StorageService';
|
|
4
|
+
import type { Query, QueryOptions } from '../../storage/StorageService';
|
|
5
5
|
import { SdJwtVcRecord, SdJwtVcRepository } from './repository';
|
|
6
6
|
export interface SdJwtVc<Header extends SdJwtVcHeader = SdJwtVcHeader, Payload extends SdJwtVcPayload = SdJwtVcPayload> {
|
|
7
7
|
compact: string;
|
|
@@ -15,7 +15,9 @@ export interface CnfPayload {
|
|
|
15
15
|
}
|
|
16
16
|
export interface VerificationResult {
|
|
17
17
|
isValid: boolean;
|
|
18
|
-
|
|
18
|
+
isValidJwtPayload?: boolean;
|
|
19
|
+
isSignatureValid?: boolean;
|
|
20
|
+
isStatusValid?: boolean;
|
|
19
21
|
isNotBeforeValid?: boolean;
|
|
20
22
|
isExpiryTimeValid?: boolean;
|
|
21
23
|
areRequiredClaimsIncluded?: boolean;
|
|
@@ -42,22 +44,22 @@ export declare class SdJwtVcService {
|
|
|
42
44
|
fromCompact<Header extends SdJwtVcHeader = SdJwtVcHeader, Payload extends SdJwtVcPayload = SdJwtVcPayload>(compactSdJwtVc: string): SdJwtVc<Header, Payload>;
|
|
43
45
|
present<Payload extends SdJwtVcPayload = SdJwtVcPayload>(agentContext: AgentContext, { compactSdJwtVc, presentationFrame, verifierMetadata }: SdJwtVcPresentOptions<Payload>): Promise<string>;
|
|
44
46
|
verify<Header extends SdJwtVcHeader = SdJwtVcHeader, Payload extends SdJwtVcPayload = SdJwtVcPayload>(agentContext: AgentContext, { compactSdJwtVc, keyBinding, requiredClaimKeys }: SdJwtVcVerifyOptions): Promise<{
|
|
47
|
+
isValid: true;
|
|
45
48
|
verification: VerificationResult;
|
|
46
|
-
sdJwtVc:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
sdJwtVc: SdJwtVc<Header, Payload>;
|
|
50
|
+
} | {
|
|
51
|
+
isValid: false;
|
|
52
|
+
verification: VerificationResult;
|
|
53
|
+
sdJwtVc?: SdJwtVc<Header, Payload>;
|
|
54
|
+
error: Error;
|
|
52
55
|
}>;
|
|
53
56
|
store(agentContext: AgentContext, compactSdJwtVc: string): Promise<SdJwtVcRecord>;
|
|
54
57
|
getById(agentContext: AgentContext, id: string): Promise<SdJwtVcRecord>;
|
|
55
58
|
getAll(agentContext: AgentContext): Promise<Array<SdJwtVcRecord>>;
|
|
56
|
-
findByQuery(agentContext: AgentContext, query: Query<SdJwtVcRecord
|
|
59
|
+
findByQuery(agentContext: AgentContext, query: Query<SdJwtVcRecord>, queryOptions?: QueryOptions): Promise<Array<SdJwtVcRecord>>;
|
|
57
60
|
deleteById(agentContext: AgentContext, id: string): Promise<void>;
|
|
58
61
|
update(agentContext: AgentContext, sdJwtVcRecord: SdJwtVcRecord): Promise<void>;
|
|
59
62
|
private resolveDidUrl;
|
|
60
|
-
private get hasher();
|
|
61
63
|
/**
|
|
62
64
|
* @todo validate the JWT header (alg)
|
|
63
65
|
*/
|
|
@@ -70,4 +72,7 @@ export declare class SdJwtVcService {
|
|
|
70
72
|
private parseIssuerFromCredential;
|
|
71
73
|
private parseHolderBindingFromCredential;
|
|
72
74
|
private extractKeyFromHolderBinding;
|
|
75
|
+
private getBaseSdJwtConfig;
|
|
76
|
+
private get hasher();
|
|
77
|
+
private getStatusListFetcher;
|
|
73
78
|
}
|
|
@@ -10,12 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SdJwtVcService = void 0;
|
|
13
|
-
const core_1 = require("@sd-jwt/core");
|
|
14
13
|
const decode_1 = require("@sd-jwt/decode");
|
|
14
|
+
const sd_jwt_vc_1 = require("@sd-jwt/sd-jwt-vc");
|
|
15
15
|
const utils_1 = require("@sd-jwt/utils");
|
|
16
16
|
const tsyringe_1 = require("tsyringe");
|
|
17
17
|
const crypto_1 = require("../../crypto");
|
|
18
|
+
const error_1 = require("../../error");
|
|
18
19
|
const utils_2 = require("../../utils");
|
|
20
|
+
const fetch_1 = require("../../utils/fetch");
|
|
19
21
|
const dids_1 = require("../dids");
|
|
20
22
|
const SdJwtVcError_1 = require("./SdJwtVcError");
|
|
21
23
|
const repository_1 = require("./repository");
|
|
@@ -34,20 +36,20 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
34
36
|
throw new SdJwtVcError_1.SdJwtVcError(`Unsupported hashing algorithm used: ${hashingAlgorithm}`);
|
|
35
37
|
}
|
|
36
38
|
const issuer = await this.extractKeyFromIssuer(agentContext, options.issuer);
|
|
37
|
-
|
|
39
|
+
// holer binding is optional
|
|
40
|
+
const holderBinding = options.holder
|
|
41
|
+
? await this.extractKeyFromHolderBinding(agentContext, options.holder)
|
|
42
|
+
: undefined;
|
|
38
43
|
const header = {
|
|
39
44
|
alg: issuer.alg,
|
|
40
45
|
typ: 'vc+sd-jwt',
|
|
41
46
|
kid: issuer.kid,
|
|
42
47
|
};
|
|
43
|
-
const sdjwt = new
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
saltGenerator: agentContext.wallet.generateNonce,
|
|
49
|
-
});
|
|
50
|
-
const compact = await sdjwt.issue(Object.assign(Object.assign({}, payload), { cnf: holderBinding.cnf, iss: issuer.iss, iat: Math.floor(new Date().getTime() / 1000) }), disclosureFrame, { header });
|
|
48
|
+
const sdjwt = new sd_jwt_vc_1.SDJwtVcInstance(Object.assign(Object.assign({}, this.getBaseSdJwtConfig(agentContext)), { signer: this.signer(agentContext, issuer.key), hashAlg: 'sha-256', signAlg: issuer.alg }));
|
|
49
|
+
if (!payload.vct || typeof payload.vct !== 'string') {
|
|
50
|
+
throw new SdJwtVcError_1.SdJwtVcError("Missing required parameter 'vct'");
|
|
51
|
+
}
|
|
52
|
+
const compact = await sdjwt.issue(Object.assign(Object.assign({}, payload), { cnf: holderBinding === null || holderBinding === void 0 ? void 0 : holderBinding.cnf, iss: issuer.iss, iat: (0, utils_2.nowInSeconds)(), vct: payload.vct }), disclosureFrame, { header });
|
|
51
53
|
const prettyClaims = (await sdjwt.getClaims(compact));
|
|
52
54
|
const a = await sdjwt.decode(compact);
|
|
53
55
|
const sdjwtPayload = (_a = a.jwt) === null || _a === void 0 ? void 0 : _a.payload;
|
|
@@ -73,78 +75,134 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
77
|
async present(agentContext, { compactSdJwtVc, presentationFrame, verifierMetadata }) {
|
|
76
|
-
const sdjwt = new
|
|
77
|
-
hasher: this.hasher,
|
|
78
|
-
});
|
|
78
|
+
const sdjwt = new sd_jwt_vc_1.SDJwtVcInstance(this.getBaseSdJwtConfig(agentContext));
|
|
79
79
|
const sdJwtVc = await sdjwt.decode(compactSdJwtVc);
|
|
80
|
-
const
|
|
80
|
+
const holderBinding = this.parseHolderBindingFromCredential(sdJwtVc);
|
|
81
|
+
if (!holderBinding && verifierMetadata) {
|
|
82
|
+
throw new SdJwtVcError_1.SdJwtVcError("Verifier metadata provided, but credential has no 'cnf' claim to create a KB-JWT from");
|
|
83
|
+
}
|
|
84
|
+
const holder = holderBinding ? await this.extractKeyFromHolderBinding(agentContext, holderBinding) : undefined;
|
|
81
85
|
sdjwt.config({
|
|
82
|
-
kbSigner: this.signer(agentContext, holder.key),
|
|
83
|
-
kbSignAlg: holder.alg,
|
|
86
|
+
kbSigner: holder ? this.signer(agentContext, holder.key) : undefined,
|
|
87
|
+
kbSignAlg: holder === null || holder === void 0 ? void 0 : holder.alg,
|
|
84
88
|
});
|
|
85
89
|
const compactDerivedSdJwtVc = await sdjwt.present(compactSdJwtVc, presentationFrame, {
|
|
86
|
-
kb:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
kb: verifierMetadata
|
|
91
|
+
? {
|
|
92
|
+
payload: {
|
|
93
|
+
iat: verifierMetadata.issuedAt,
|
|
94
|
+
nonce: verifierMetadata.nonce,
|
|
95
|
+
aud: verifierMetadata.audience,
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
: undefined,
|
|
93
99
|
});
|
|
94
100
|
return compactDerivedSdJwtVc;
|
|
95
101
|
}
|
|
96
102
|
async verify(agentContext, { compactSdJwtVc, keyBinding, requiredClaimKeys }) {
|
|
97
|
-
const sdjwt = new
|
|
98
|
-
hasher: this.hasher,
|
|
99
|
-
});
|
|
100
|
-
const sdJwtVc = await sdjwt.decode(compactSdJwtVc);
|
|
101
|
-
if (!sdJwtVc.jwt) {
|
|
102
|
-
throw new SdJwtVcError_1.SdJwtVcError('Invalid sd-jwt-vc state.');
|
|
103
|
-
}
|
|
104
|
-
const issuer = await this.extractKeyFromIssuer(agentContext, this.parseIssuerFromCredential(sdJwtVc));
|
|
105
|
-
const holder = await this.extractKeyFromHolderBinding(agentContext, this.parseHolderBindingFromCredential(sdJwtVc));
|
|
106
|
-
sdjwt.config({
|
|
107
|
-
verifier: this.verifier(agentContext, issuer.key),
|
|
108
|
-
kbVerifier: this.verifier(agentContext, holder.key),
|
|
109
|
-
});
|
|
103
|
+
const sdjwt = new sd_jwt_vc_1.SDJwtVcInstance(this.getBaseSdJwtConfig(agentContext));
|
|
110
104
|
const verificationResult = {
|
|
111
105
|
isValid: false,
|
|
112
|
-
isSignatureValid: false,
|
|
113
106
|
};
|
|
114
|
-
|
|
115
|
-
verificationResult.isValid = true;
|
|
116
|
-
verificationResult.isSignatureValid = true;
|
|
117
|
-
verificationResult.areRequiredClaimsIncluded = true;
|
|
118
|
-
// If keyBinding is present, verify the key binding
|
|
107
|
+
let sdJwtVc;
|
|
119
108
|
try {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
109
|
+
sdJwtVc = await sdjwt.decode(compactSdJwtVc);
|
|
110
|
+
if (!sdJwtVc.jwt)
|
|
111
|
+
throw new error_1.CredoError('Invalid sd-jwt-vc');
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
return {
|
|
115
|
+
isValid: false,
|
|
116
|
+
verification: verificationResult,
|
|
117
|
+
error,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
const returnSdJwtVc = {
|
|
121
|
+
payload: sdJwtVc.jwt.payload,
|
|
122
|
+
header: sdJwtVc.jwt.header,
|
|
123
|
+
compact: compactSdJwtVc,
|
|
124
|
+
prettyClaims: await sdJwtVc.getClaims(this.hasher),
|
|
125
|
+
};
|
|
126
|
+
try {
|
|
127
|
+
const issuer = await this.extractKeyFromIssuer(agentContext, this.parseIssuerFromCredential(sdJwtVc));
|
|
128
|
+
const holderBinding = this.parseHolderBindingFromCredential(sdJwtVc);
|
|
129
|
+
const holder = holderBinding ? await this.extractKeyFromHolderBinding(agentContext, holderBinding) : undefined;
|
|
130
|
+
sdjwt.config({
|
|
131
|
+
verifier: this.verifier(agentContext, issuer.key),
|
|
132
|
+
kbVerifier: holder ? this.verifier(agentContext, holder.key) : undefined,
|
|
133
|
+
});
|
|
134
|
+
const requiredKeys = requiredClaimKeys ? [...requiredClaimKeys, 'vct'] : ['vct'];
|
|
135
|
+
try {
|
|
136
|
+
await sdjwt.verify(compactSdJwtVc, requiredKeys, keyBinding !== undefined);
|
|
137
|
+
verificationResult.isSignatureValid = true;
|
|
138
|
+
verificationResult.areRequiredClaimsIncluded = true;
|
|
139
|
+
verificationResult.isStatusValid = true;
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
return {
|
|
143
|
+
verification: verificationResult,
|
|
144
|
+
error,
|
|
145
|
+
isValid: false,
|
|
146
|
+
sdJwtVc: returnSdJwtVc,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
try {
|
|
150
|
+
crypto_1.JwtPayload.fromJson(returnSdJwtVc.payload).validate();
|
|
151
|
+
verificationResult.isValidJwtPayload = true;
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
verificationResult.isValidJwtPayload = false;
|
|
155
|
+
return {
|
|
156
|
+
isValid: false,
|
|
157
|
+
error,
|
|
158
|
+
verification: verificationResult,
|
|
159
|
+
sdJwtVc: returnSdJwtVc,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
// If keyBinding is present, verify the key binding
|
|
163
|
+
try {
|
|
164
|
+
if (keyBinding) {
|
|
165
|
+
if (!sdJwtVc.kbJwt || !sdJwtVc.kbJwt.payload) {
|
|
166
|
+
throw new SdJwtVcError_1.SdJwtVcError('Keybinding is required for verification of the sd-jwt-vc');
|
|
167
|
+
}
|
|
168
|
+
// Assert `aud` and `nonce` claims
|
|
169
|
+
if (sdJwtVc.kbJwt.payload.aud !== keyBinding.audience) {
|
|
170
|
+
throw new SdJwtVcError_1.SdJwtVcError('The key binding JWT does not contain the expected audience');
|
|
171
|
+
}
|
|
172
|
+
if (sdJwtVc.kbJwt.payload.nonce !== keyBinding.nonce) {
|
|
173
|
+
throw new SdJwtVcError_1.SdJwtVcError('The key binding JWT does not contain the expected nonce');
|
|
174
|
+
}
|
|
175
|
+
verificationResult.isKeyBindingValid = true;
|
|
176
|
+
verificationResult.containsExpectedKeyBinding = true;
|
|
177
|
+
verificationResult.containsRequiredVcProperties = true;
|
|
130
178
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
verificationResult.
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
verificationResult.isKeyBindingValid = false;
|
|
182
|
+
verificationResult.containsExpectedKeyBinding = false;
|
|
183
|
+
verificationResult.isValid = false;
|
|
184
|
+
return {
|
|
185
|
+
isValid: false,
|
|
186
|
+
error,
|
|
187
|
+
verification: verificationResult,
|
|
188
|
+
sdJwtVc: returnSdJwtVc,
|
|
189
|
+
};
|
|
134
190
|
}
|
|
135
191
|
}
|
|
136
192
|
catch (error) {
|
|
137
|
-
verificationResult.isKeyBindingValid = false;
|
|
138
193
|
verificationResult.isValid = false;
|
|
194
|
+
return {
|
|
195
|
+
isValid: false,
|
|
196
|
+
error,
|
|
197
|
+
verification: verificationResult,
|
|
198
|
+
sdJwtVc: returnSdJwtVc,
|
|
199
|
+
};
|
|
139
200
|
}
|
|
201
|
+
verificationResult.isValid = true;
|
|
140
202
|
return {
|
|
203
|
+
isValid: true,
|
|
141
204
|
verification: verificationResult,
|
|
142
|
-
sdJwtVc:
|
|
143
|
-
payload: sdJwtVc.jwt.payload,
|
|
144
|
-
header: sdJwtVc.jwt.header,
|
|
145
|
-
compact: compactSdJwtVc,
|
|
146
|
-
prettyClaims: await sdJwtVc.getClaims(this.hasher),
|
|
147
|
-
},
|
|
205
|
+
sdJwtVc: returnSdJwtVc,
|
|
148
206
|
};
|
|
149
207
|
}
|
|
150
208
|
async store(agentContext, compactSdJwtVc) {
|
|
@@ -160,8 +218,8 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
160
218
|
async getAll(agentContext) {
|
|
161
219
|
return await this.sdJwtVcRepository.getAll(agentContext);
|
|
162
220
|
}
|
|
163
|
-
async findByQuery(agentContext, query) {
|
|
164
|
-
return await this.sdJwtVcRepository.findByQuery(agentContext, query);
|
|
221
|
+
async findByQuery(agentContext, query, queryOptions) {
|
|
222
|
+
return await this.sdJwtVcRepository.findByQuery(agentContext, query, queryOptions);
|
|
165
223
|
}
|
|
166
224
|
async deleteById(agentContext, id) {
|
|
167
225
|
await this.sdJwtVcRepository.deleteById(agentContext, id);
|
|
@@ -177,9 +235,6 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
177
235
|
didDocument,
|
|
178
236
|
};
|
|
179
237
|
}
|
|
180
|
-
get hasher() {
|
|
181
|
-
return utils_2.Hasher.hash;
|
|
182
|
-
}
|
|
183
238
|
/**
|
|
184
239
|
* @todo validate the JWT header (alg)
|
|
185
240
|
*/
|
|
@@ -268,7 +323,7 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
268
323
|
throw new SdJwtVcError_1.SdJwtVcError('Credential not exist');
|
|
269
324
|
}
|
|
270
325
|
if (!((_b = sdJwtVc.jwt) === null || _b === void 0 ? void 0 : _b.payload['cnf'])) {
|
|
271
|
-
|
|
326
|
+
return null;
|
|
272
327
|
}
|
|
273
328
|
const cnf = sdJwtVc.jwt.payload['cnf'];
|
|
274
329
|
if (cnf.jwk) {
|
|
@@ -321,10 +376,29 @@ let SdJwtVcService = class SdJwtVcService {
|
|
|
321
376
|
}
|
|
322
377
|
throw new SdJwtVcError_1.SdJwtVcError("Unsupported credential holder binding. Only 'did' and 'jwk' are supported at the moment.");
|
|
323
378
|
}
|
|
379
|
+
getBaseSdJwtConfig(agentContext) {
|
|
380
|
+
return {
|
|
381
|
+
hasher: this.hasher,
|
|
382
|
+
statusListFetcher: this.getStatusListFetcher(agentContext),
|
|
383
|
+
saltGenerator: agentContext.wallet.generateNonce,
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
get hasher() {
|
|
387
|
+
return utils_2.Hasher.hash;
|
|
388
|
+
}
|
|
389
|
+
getStatusListFetcher(agentContext) {
|
|
390
|
+
return async (uri) => {
|
|
391
|
+
const response = await (0, fetch_1.fetchWithTimeout)(agentContext.config.agentDependencies.fetch, uri);
|
|
392
|
+
if (!response.ok) {
|
|
393
|
+
throw new error_1.CredoError(`Received invalid response with status ${response.status} when fetching status list from ${uri}. ${await response.text()}`);
|
|
394
|
+
}
|
|
395
|
+
return await response.text();
|
|
396
|
+
};
|
|
397
|
+
}
|
|
324
398
|
};
|
|
325
|
-
SdJwtVcService =
|
|
399
|
+
exports.SdJwtVcService = SdJwtVcService;
|
|
400
|
+
exports.SdJwtVcService = SdJwtVcService = __decorate([
|
|
326
401
|
(0, tsyringe_1.injectable)(),
|
|
327
402
|
__metadata("design:paramtypes", [repository_1.SdJwtVcRepository])
|
|
328
403
|
], SdJwtVcService);
|
|
329
|
-
exports.SdJwtVcService = SdJwtVcService;
|
|
330
404
|
//# sourceMappingURL=SdJwtVcService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdJwtVcService.js","sourceRoot":"","sources":["../../../src/modules/sd-jwt-vc/SdJwtVcService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA,uCAA4C;AAC5C,2CAA+D;AAC/D,yCAAqD;AACrD,uCAAqC;AAErC,yCAAiE;AACjE,uCAAuD;AACvD,kCAAoF;AAEpF,iDAA6C;AAC7C,6CAA+D;AA8B/D;;GAEG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAc;IAGzB,YAAmB,iBAAoC;QACrD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;IAC5C,CAAC;IAEM,KAAK,CAAC,IAAI,CAAiC,YAA0B,EAAE,OAAoC;;QAChH,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;QAE9D,qBAAqB;QACrB,IAAI,gBAAgB,IAAI,gBAAgB,KAAK,SAAS,EAAE;YACtD,MAAM,IAAI,2BAAY,CAAC,uCAAuC,gBAAgB,EAAE,CAAC,CAAA;SAClF;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,OAAO,CA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