@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../src/modules/dids/domain/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../src/modules/dids/domain/parse.ts"],"names":[],"mappings":";;AAMA,4BAQC;AAED,kCAEC;AAhBD,+CAAoC;AAEpC,0CAA2C;AAE3C,SAAgB,QAAQ,CAAC,GAAW;IAClC,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;IAE/B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,kBAAU,CAAC,sBAAsB,GAAG,GAAG,CAAC,CAAA;IACpD,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;AACnB,CAAC"}
|
|
@@ -25,6 +25,7 @@ class DidCommV1Service extends DidDocumentService_1.DidDocumentService {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
exports.DidCommV1Service = DidCommV1Service;
|
|
28
29
|
DidCommV1Service.type = 'did-communication';
|
|
29
30
|
__decorate([
|
|
30
31
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
@@ -41,5 +42,4 @@ __decorate([
|
|
|
41
42
|
(0, class_validator_1.IsOptional)(),
|
|
42
43
|
__metadata("design:type", Array)
|
|
43
44
|
], DidCommV1Service.prototype, "accept", void 0);
|
|
44
|
-
exports.DidCommV1Service = DidCommV1Service;
|
|
45
45
|
//# sourceMappingURL=DidCommV1Service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommV1Service.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidCommV1Service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AAErE,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAOlB;QACC,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAwB7C,aAAQ,GAAG,CAAC,CAAA;QAtBjB,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"DidCommV1Service.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidCommV1Service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AAErE,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAOlB;QACC,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAwB7C,aAAQ,GAAG,CAAC,CAAA;QAtBjB,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;YAC1C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;YAC5B,IAAI,OAAO,CAAC,QAAQ;gBAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QACxD,CAAC;IACH,CAAC;;AAjBH,4CAkCC;AAfe,qBAAI,GAAG,mBAAmB,AAAtB,CAAsB;AAIjC;IAFN,IAAA,+BAAa,GAAE;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACM;AAIxB;IAFN,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;qDACgB;AAItB;IAFN,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;gDACW"}
|
|
@@ -21,6 +21,7 @@ class DidCommV2Service extends DidDocumentService_1.DidDocumentService {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
exports.DidCommV2Service = DidCommV2Service;
|
|
24
25
|
DidCommV2Service.type = 'DIDComm';
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, class_validator_1.IsString)({ each: true }),
|
|
@@ -32,5 +33,4 @@ __decorate([
|
|
|
32
33
|
(0, class_validator_1.IsOptional)(),
|
|
33
34
|
__metadata("design:type", Array)
|
|
34
35
|
], DidCommV2Service.prototype, "accept", void 0);
|
|
35
|
-
exports.DidCommV2Service = DidCommV2Service;
|
|
36
36
|
//# sourceMappingURL=DidCommV2Service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommV2Service.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsD;AAEtD,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAA2F;QAC5G,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAElD,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"DidCommV2Service.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidCommV2Service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsD;AAEtD,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAA2F;QAC5G,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAElD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;QAC9B,CAAC;IACH,CAAC;;AARH,4CAmBC;AATe,qBAAI,GAAG,SAAS,CAAA;AAIvB;IAFN,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;qDACgB;AAItB;IAFN,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;gDACW"}
|
|
@@ -24,6 +24,7 @@ class DidDocumentService {
|
|
|
24
24
|
return (0, uri_1.getProtocolScheme)(this.serviceEndpoint);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
exports.DidDocumentService = DidDocumentService;
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_validator_1.IsString)(),
|
|
29
30
|
__metadata("design:type", String)
|
|
@@ -36,5 +37,4 @@ __decorate([
|
|
|
36
37
|
(0, class_validator_1.IsString)(),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
39
|
], DidDocumentService.prototype, "type", void 0);
|
|
39
|
-
exports.DidDocumentService = DidDocumentService;
|
|
40
40
|
//# sourceMappingURL=DidDocumentService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidDocumentService.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidDocumentService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAE1C,+CAAyD;AAEzD,MAAa,kBAAkB;IAC7B,YAAmB,OAA8D;QAC/E,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"DidDocumentService.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/DidDocumentService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAE1C,+CAAyD;AAEzD,MAAa,kBAAkB;IAC7B,YAAmB,OAA8D;QAC/E,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAA;YACpB,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;YAC9C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;QAC1B,CAAC;IACH,CAAC;IAED,IAAW,cAAc;QACvB,OAAO,IAAA,uBAAiB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAChD,CAAC;CAUF;AArBD,gDAqBC;AAPQ;IADN,IAAA,0BAAQ,GAAE;;8CACO;AAGX;IADN,IAAA,0BAAQ,GAAE;;2DACoB;AAGxB;IADN,IAAA,0BAAQ,GAAE;;gDACS"}
|
|
@@ -24,6 +24,7 @@ class IndyAgentService extends DidDocumentService_1.DidDocumentService {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
exports.IndyAgentService = IndyAgentService;
|
|
27
28
|
IndyAgentService.type = 'IndyAgent';
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
@@ -35,5 +36,4 @@ __decorate([
|
|
|
35
36
|
(0, class_validator_1.IsOptional)(),
|
|
36
37
|
__metadata("design:type", Array)
|
|
37
38
|
], IndyAgentService.prototype, "routingKeys", void 0);
|
|
38
|
-
exports.IndyAgentService = IndyAgentService;
|
|
39
39
|
//# sourceMappingURL=IndyAgentService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndyAgentService.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/IndyAgentService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AAErE,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAMlB;QACC,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAmB7C,aAAQ,GAAG,CAAC,CAAA;QAjBjB,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"IndyAgentService.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/IndyAgentService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AAErE,6DAAyD;AAEzD,MAAa,gBAAiB,SAAQ,uCAAkB;IACtD,YAAmB,OAMlB;QACC,KAAK,iCAAM,OAAO,KAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,IAAG,CAAA;QAmB7C,aAAQ,GAAG,CAAC,CAAA;QAjBjB,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;YAC1C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,OAAO,CAAC,QAAQ;gBAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QACxD,CAAC;IACH,CAAC;;AAfH,4CA4BC;AAXe,qBAAI,GAAG,WAAW,AAAd,CAAc;AAIzB;IAFN,IAAA,+BAAa,GAAE;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACM;AAIxB;IAFN,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;qDACgB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.serviceTypes = void 0;
|
|
4
|
+
exports.ServiceTransformer = ServiceTransformer;
|
|
4
5
|
const class_transformer_1 = require("class-transformer");
|
|
5
6
|
const DidCommV1Service_1 = require("./DidCommV1Service");
|
|
6
7
|
const DidCommV2Service_1 = require("./DidCommV2Service");
|
|
@@ -32,5 +33,4 @@ function ServiceTransformer() {
|
|
|
32
33
|
toClassOnly: true,
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
exports.ServiceTransformer = ServiceTransformer;
|
|
36
36
|
//# sourceMappingURL=ServiceTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceTransformer.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/ServiceTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ServiceTransformer.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/service/ServiceTransformer.ts"],"names":[],"mappings":";;;AAwBA,gDAeC;AArCD,yDAA8D;AAE9D,yDAAqD;AACrD,yDAAqD;AACrD,6DAAyD;AACzD,yDAAqD;AAExC,QAAA,YAAY,GAA2C;IAClE,CAAC,mCAAgB,CAAC,IAAI,CAAC,EAAE,mCAAgB;IACzC,CAAC,mCAAgB,CAAC,IAAI,CAAC,EAAE,mCAAgB;IACzC,CAAC,mCAAgB,CAAC,IAAI,CAAC,EAAE,mCAAgB;CAC1C,CAAA;AAED;;;;;;;;GAQG;AACH,SAAgB,kBAAkB;IAChC,OAAO,IAAA,6BAAS,EACd,CAAC,EAAE,KAAK,EAAuC,EAAE,EAAE;QACjD,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;;YAChC,MAAM,YAAY,GAAG,CAAC,MAAA,oBAAY,CAAC,WAAW,CAAC,IAAI,CAAC,mCAClD,uCAAkB,CAAyC,CAAA;YAC7D,MAAM,OAAO,GAAG,IAAA,mCAAe,EAA8B,YAAY,EAAE,WAAW,CAAC,CAAA;YAEvF,OAAO,OAAO,CAAA;QAChB,CAAC,CAAC,CAAA;IACJ,CAAC,EACD;QACE,WAAW,EAAE,IAAI;KAClB,CACF,CAAA;AACH,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_BLS12381G1_KEY_2020 = void 0;
|
|
4
|
+
exports.getBls12381G1Key2020 = getBls12381G1Key2020;
|
|
5
|
+
exports.isBls12381G1Key2020 = isBls12381G1Key2020;
|
|
6
|
+
exports.getKeyFromBls12381G1Key2020 = getKeyFromBls12381G1Key2020;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getBls12381G1Key2020({ key, id, controller }) {
|
|
|
17
20
|
publicKeyBase58: key.publicKeyBase58,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getBls12381G1Key2020 = getBls12381G1Key2020;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a Bls12381G1Key2020 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isBls12381G1Key2020(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_BLS12381G1_KEY_2020;
|
|
26
28
|
}
|
|
27
|
-
exports.isBls12381G1Key2020 = isBls12381G1Key2020;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a Bls12381G1Key2020 verification method.
|
|
30
31
|
*/
|
|
@@ -34,5 +35,4 @@ function getKeyFromBls12381G1Key2020(verificationMethod) {
|
|
|
34
35
|
}
|
|
35
36
|
return Key_1.Key.fromPublicKeyBase58(verificationMethod.publicKeyBase58, crypto_1.KeyType.Bls12381g1);
|
|
36
37
|
}
|
|
37
|
-
exports.getKeyFromBls12381G1Key2020 = getKeyFromBls12381G1Key2020;
|
|
38
38
|
//# sourceMappingURL=Bls12381G1Key2020.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bls12381G1Key2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Bls12381G1Key2020.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Bls12381G1Key2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Bls12381G1Key2020.ts"],"names":[],"mappings":";;;AAcA,oDAOC;AAKD,kDAEC;AAKD,kEAMC;AAvCD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,4CAA4C,GAAG,mBAAmB,CAAA;AAK/E;;GAEG;AACH,SAAgB,oBAAoB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAgD;IACxG,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,oDAA4C;QAClD,UAAU;QACV,eAAe,EAAE,GAAG,CAAC,eAAe;KACrC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,kBAAsC;IACxE,OAAO,kBAAkB,CAAC,IAAI,KAAK,oDAA4C,CAAA;AACjF,CAAC;AAED;;GAEG;AACH,SAAgB,2BAA2B,CAAC,kBAAqC;IAC/E,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAU,CAAC,gDAAgD,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,SAAG,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,EAAE,gBAAO,CAAC,UAAU,CAAC,CAAA;AACxF,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020 = void 0;
|
|
4
|
+
exports.getBls12381G2Key2020 = getBls12381G2Key2020;
|
|
5
|
+
exports.isBls12381G2Key2020 = isBls12381G2Key2020;
|
|
6
|
+
exports.getKeyFromBls12381G2Key2020 = getKeyFromBls12381G2Key2020;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getBls12381G2Key2020({ key, id, controller }) {
|
|
|
17
20
|
publicKeyBase58: key.publicKeyBase58,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getBls12381G2Key2020 = getBls12381G2Key2020;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a Bls12381G2Key2020 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isBls12381G2Key2020(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020;
|
|
26
28
|
}
|
|
27
|
-
exports.isBls12381G2Key2020 = isBls12381G2Key2020;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a Bls12381G2Key2020 verification method.
|
|
30
31
|
*/
|
|
@@ -34,5 +35,4 @@ function getKeyFromBls12381G2Key2020(verificationMethod) {
|
|
|
34
35
|
}
|
|
35
36
|
return Key_1.Key.fromPublicKeyBase58(verificationMethod.publicKeyBase58, crypto_1.KeyType.Bls12381g2);
|
|
36
37
|
}
|
|
37
|
-
exports.getKeyFromBls12381G2Key2020 = getKeyFromBls12381G2Key2020;
|
|
38
38
|
//# sourceMappingURL=Bls12381G2Key2020.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bls12381G2Key2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Bls12381G2Key2020.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Bls12381G2Key2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Bls12381G2Key2020.ts"],"names":[],"mappings":";;;AAcA,oDAOC;AAKD,kDAEC;AAKD,kEAMC;AAvCD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,4CAA4C,GAAG,mBAAmB,CAAA;AAK/E;;GAEG;AACH,SAAgB,oBAAoB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAgD;IACxG,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,oDAA4C;QAClD,UAAU;QACV,eAAe,EAAE,GAAG,CAAC,eAAe;KACrC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,kBAAsC;IACxE,OAAO,kBAAkB,CAAC,IAAI,KAAK,oDAA4C,CAAA;AACjF,CAAC;AAED;;GAEG;AACH,SAAgB,2BAA2B,CAAC,kBAAqC;IAC/E,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAU,CAAC,gDAAgD,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,SAAG,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,EAAE,gBAAO,CAAC,UAAU,CAAC,CAAA;AACxF,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019 = void 0;
|
|
4
|
+
exports.getEcdsaSecp256k1VerificationKey2019 = getEcdsaSecp256k1VerificationKey2019;
|
|
5
|
+
exports.isEcdsaSecp256k1VerificationKey2019 = isEcdsaSecp256k1VerificationKey2019;
|
|
6
|
+
exports.getKeyFromEcdsaSecp256k1VerificationKey2019 = getKeyFromEcdsaSecp256k1VerificationKey2019;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getEcdsaSecp256k1VerificationKey2019({ key, id, controller, }) {
|
|
|
17
20
|
publicKeyBase58: key.publicKeyBase58,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getEcdsaSecp256k1VerificationKey2019 = getEcdsaSecp256k1VerificationKey2019;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a EcdsaSecp256k1VerificationKey2019 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isEcdsaSecp256k1VerificationKey2019(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_ECDSA_SECP256K1_VERIFICATION_KEY_2019;
|
|
26
28
|
}
|
|
27
|
-
exports.isEcdsaSecp256k1VerificationKey2019 = isEcdsaSecp256k1VerificationKey2019;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a EcdsaSecp256k1VerificationKey2019 verification method.
|
|
30
31
|
*/
|
|
@@ -34,5 +35,4 @@ function getKeyFromEcdsaSecp256k1VerificationKey2019(verificationMethod) {
|
|
|
34
35
|
}
|
|
35
36
|
return Key_1.Key.fromPublicKeyBase58(verificationMethod.publicKeyBase58, crypto_1.KeyType.K256);
|
|
36
37
|
}
|
|
37
|
-
exports.getKeyFromEcdsaSecp256k1VerificationKey2019 = getKeyFromEcdsaSecp256k1VerificationKey2019;
|
|
38
38
|
//# sourceMappingURL=EcdsaSecp256k1VerificationKey2019.js.map
|
package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EcdsaSecp256k1VerificationKey2019.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"EcdsaSecp256k1VerificationKey2019.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.ts"],"names":[],"mappings":";;;AAeA,oFAeC;AAKD,kFAIC;AAKD,kGAMC;AAlDD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,8DAA8D,GAAG,mCAAmC,CAAA;AAMjH;;GAEG;AACH,SAAgB,oCAAoC,CAAC,EACnD,GAAG,EACH,EAAE,EACF,UAAU,GAKX;IACC,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,sEAA8D;QACpE,UAAU;QACV,eAAe,EAAE,GAAG,CAAC,eAAe;KACrC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,mCAAmC,CACjD,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,sEAA8D,CAAA;AACnG,CAAC;AAED;;GAEG;AACH,SAAgB,2CAA2C,CAAC,kBAAqD;IAC/G,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAU,CAAC,gDAAgD,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,SAAG,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;AAClF,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018 = void 0;
|
|
4
|
+
exports.getEd25519VerificationKey2018 = getEd25519VerificationKey2018;
|
|
5
|
+
exports.isEd25519VerificationKey2018 = isEd25519VerificationKey2018;
|
|
6
|
+
exports.getKeyFromEd25519VerificationKey2018 = getKeyFromEd25519VerificationKey2018;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getEd25519VerificationKey2018({ key, id, controller }) {
|
|
|
17
20
|
publicKeyBase58: key.publicKeyBase58,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getEd25519VerificationKey2018 = getEd25519VerificationKey2018;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a Ed25519VerificationKey2018 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isEd25519VerificationKey2018(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018;
|
|
26
28
|
}
|
|
27
|
-
exports.isEd25519VerificationKey2018 = isEd25519VerificationKey2018;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a Ed25519VerificationKey2018 verification method.
|
|
30
31
|
*/
|
|
@@ -34,5 +35,4 @@ function getKeyFromEd25519VerificationKey2018(verificationMethod) {
|
|
|
34
35
|
}
|
|
35
36
|
return Key_1.Key.fromPublicKeyBase58(verificationMethod.publicKeyBase58, crypto_1.KeyType.Ed25519);
|
|
36
37
|
}
|
|
37
|
-
exports.getKeyFromEd25519VerificationKey2018 = getKeyFromEd25519VerificationKey2018;
|
|
38
38
|
//# sourceMappingURL=Ed25519VerificationKey2018.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519VerificationKey2018.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Ed25519VerificationKey2018.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.ts"],"names":[],"mappings":";;;AAcA,sEAOC;AAKD,oEAIC;AAKD,oFAMC;AAzCD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,sDAAsD,GAAG,4BAA4B,CAAA;AAKlG;;GAEG;AACH,SAAgB,6BAA6B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAgD;IACjH,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,8DAAsD;QAC5D,UAAU;QACV,eAAe,EAAE,GAAG,CAAC,eAAe;KACrC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,8DAAsD,CAAA;AAC3F,CAAC;AAED;;GAEG;AACH,SAAgB,oCAAoC,CAAC,kBAA8C;IACjG,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAU,CAAC,gDAAgD,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,SAAG,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;AACrF,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020 = void 0;
|
|
4
|
+
exports.getEd25519VerificationKey2020 = getEd25519VerificationKey2020;
|
|
5
|
+
exports.isEd25519VerificationKey2020 = isEd25519VerificationKey2020;
|
|
6
|
+
exports.getKeyFromEd25519VerificationKey2020 = getKeyFromEd25519VerificationKey2020;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getEd25519VerificationKey2020({ key, id, controller }) {
|
|
|
17
20
|
publicKeyMultibase: key.fingerprint,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getEd25519VerificationKey2020 = getEd25519VerificationKey2020;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a Ed25519VerificationKey2020 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isEd25519VerificationKey2020(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020;
|
|
26
28
|
}
|
|
27
|
-
exports.isEd25519VerificationKey2020 = isEd25519VerificationKey2020;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a Ed25519VerificationKey2020 verification method.
|
|
30
31
|
*/
|
|
@@ -38,5 +39,4 @@ function getKeyFromEd25519VerificationKey2020(verificationMethod) {
|
|
|
38
39
|
}
|
|
39
40
|
return key;
|
|
40
41
|
}
|
|
41
|
-
exports.getKeyFromEd25519VerificationKey2020 = getKeyFromEd25519VerificationKey2020;
|
|
42
42
|
//# sourceMappingURL=Ed25519VerificationKey2020.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519VerificationKey2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Ed25519VerificationKey2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.ts"],"names":[],"mappings":";;;AAcA,sEAOC;AAKD,oEAIC;AAKD,oFAWC;AA9CD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,sDAAsD,GAAG,4BAA4B,CAAA;AAKlG;;GAEG;AACH,SAAgB,6BAA6B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAgD;IACjH,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,8DAAsD;QAC5D,UAAU;QACV,kBAAkB,EAAE,GAAG,CAAC,WAAW;KACpC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,8DAAsD,CAAA;AAC3F,CAAC;AAED;;GAEG;AACH,SAAgB,oCAAoC,CAAC,kBAA8C;IACjG,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,EAAE,CAAC;QAC3C,MAAM,IAAI,kBAAU,CAAC,mDAAmD,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,GAAG,GAAG,SAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IACtE,IAAI,GAAG,CAAC,OAAO,KAAK,gBAAO,CAAC,OAAO,EAAE,CAAC;QACpC,MAAM,IAAI,kBAAU,CAAC,qEAAqE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAA;IAC1G,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -16,7 +16,7 @@ type GetJsonWebKey2020Options = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Get a JsonWebKey2020 verification method.
|
|
18
18
|
*/
|
|
19
|
-
export declare function getJsonWebKey2020(
|
|
19
|
+
export declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
20
20
|
id: string;
|
|
21
21
|
type: string;
|
|
22
22
|
controller: string;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020 = void 0;
|
|
4
|
+
exports.getJsonWebKey2020 = getJsonWebKey2020;
|
|
5
|
+
exports.isJsonWebKey2020 = isJsonWebKey2020;
|
|
6
|
+
exports.getKeyFromJsonWebKey2020 = getKeyFromJsonWebKey2020;
|
|
4
7
|
const jwk_1 = require("../../../../crypto/jose/jwk");
|
|
5
8
|
const error_1 = require("../../../../error");
|
|
6
9
|
exports.VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020 = 'JsonWebKey2020';
|
|
7
10
|
/**
|
|
8
11
|
* Get a JsonWebKey2020 verification method.
|
|
9
12
|
*/
|
|
10
|
-
function getJsonWebKey2020(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
function getJsonWebKey2020(options) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const jwk = options.jwk ? (0, jwk_1.getJwkFromJson)(options.jwk) : (0, jwk_1.getJwkFromKey)(options.key);
|
|
16
|
+
const verificationMethodId = (_a = options.verificationMethodId) !== null && _a !== void 0 ? _a : `${options.did}#${jwk.key.fingerprint}`;
|
|
15
17
|
return {
|
|
16
18
|
id: verificationMethodId,
|
|
17
19
|
type: exports.VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020,
|
|
18
|
-
controller: did,
|
|
19
|
-
publicKeyJwk: jwk !== null &&
|
|
20
|
+
controller: options.did,
|
|
21
|
+
publicKeyJwk: (_b = options.jwk) !== null && _b !== void 0 ? _b : jwk.toJson(),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
|
-
exports.getJsonWebKey2020 = getJsonWebKey2020;
|
|
23
24
|
/**
|
|
24
25
|
* Check whether a verification method is a JsonWebKey2020 verification method.
|
|
25
26
|
*/
|
|
26
27
|
function isJsonWebKey2020(verificationMethod) {
|
|
27
28
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_JSON_WEB_KEY_2020;
|
|
28
29
|
}
|
|
29
|
-
exports.isJsonWebKey2020 = isJsonWebKey2020;
|
|
30
30
|
/**
|
|
31
31
|
* Get a key from a JsonWebKey2020 verification method.
|
|
32
32
|
*/
|
|
@@ -36,5 +36,4 @@ function getKeyFromJsonWebKey2020(verificationMethod) {
|
|
|
36
36
|
}
|
|
37
37
|
return (0, jwk_1.getJwkFromJson)(verificationMethod.publicKeyJwk).key;
|
|
38
38
|
}
|
|
39
|
-
exports.getKeyFromJsonWebKey2020 = getKeyFromJsonWebKey2020;
|
|
40
39
|
//# sourceMappingURL=JsonWebKey2020.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonWebKey2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/JsonWebKey2020.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"JsonWebKey2020.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/JsonWebKey2020.ts"],"names":[],"mappings":";;;AAmBA,8CAUC;AAKD,4CAIC;AAKD,4DAQC;AA/CD,qDAA2E;AAC3E,6CAA8C;AAEjC,QAAA,0CAA0C,GAAG,gBAAgB,CAAA;AAS1E;;GAEG;AACH,SAAgB,iBAAiB,CAAC,OAAiC;;IACjE,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,oBAAc,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,mBAAa,EAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAClF,MAAM,oBAAoB,GAAG,MAAA,OAAO,CAAC,oBAAoB,mCAAI,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAA;IAEpG,OAAO;QACL,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,kDAA0C;QAChD,UAAU,EAAE,OAAO,CAAC,GAAG;QACvB,YAAY,EAAE,MAAA,OAAO,CAAC,GAAG,mCAAI,GAAG,CAAC,MAAM,EAAE;KAC1C,CAAA;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAC9B,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,kDAA0C,CAAA;AAC/E,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CAAC,kBAAmE;IAC1G,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;QACrC,MAAM,IAAI,kBAAU,CAClB,yDAAyD,kDAA0C,EAAE,CACtG,CAAA;IACH,CAAC;IAED,OAAO,IAAA,oBAAc,EAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,GAAG,CAAA;AAC5D,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_MULTIKEY = void 0;
|
|
4
|
+
exports.getMultikey = getMultikey;
|
|
5
|
+
exports.isMultikey = isMultikey;
|
|
6
|
+
exports.getKeyFromMultikey = getKeyFromMultikey;
|
|
4
7
|
const Key_1 = require("../../../../crypto/Key");
|
|
5
8
|
const error_1 = require("../../../../error");
|
|
6
9
|
exports.VERIFICATION_METHOD_TYPE_MULTIKEY = 'Multikey';
|
|
@@ -18,14 +21,12 @@ function getMultikey({ did, key, verificationMethodId }) {
|
|
|
18
21
|
publicKeyMultibase: key.fingerprint,
|
|
19
22
|
};
|
|
20
23
|
}
|
|
21
|
-
exports.getMultikey = getMultikey;
|
|
22
24
|
/**
|
|
23
25
|
* Check whether a verification method is a Multikey verification method.
|
|
24
26
|
*/
|
|
25
27
|
function isMultikey(verificationMethod) {
|
|
26
28
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_MULTIKEY;
|
|
27
29
|
}
|
|
28
|
-
exports.isMultikey = isMultikey;
|
|
29
30
|
/**
|
|
30
31
|
* Get a key from a Multikey verification method.
|
|
31
32
|
*/
|
|
@@ -35,5 +36,4 @@ function getKeyFromMultikey(verificationMethod) {
|
|
|
35
36
|
}
|
|
36
37
|
return Key_1.Key.fromFingerprint(verificationMethod.publicKeyMultibase);
|
|
37
38
|
}
|
|
38
|
-
exports.getKeyFromMultikey = getKeyFromMultikey;
|
|
39
39
|
//# sourceMappingURL=Multikey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Multikey.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Multikey.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Multikey.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/Multikey.ts"],"names":[],"mappings":";;;AAgBA,kCAWC;AAKD,gCAIC;AAKD,gDAQC;AA/CD,gDAA4C;AAC5C,6CAA8C;AAEjC,QAAA,iCAAiC,GAAG,UAAU,CAAA;AAQ3D;;GAEG;AACH,SAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,oBAAoB,EAAsB;IAChF,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC1B,oBAAoB,GAAG,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE,CAAA;IACpD,CAAC;IAED,OAAO;QACL,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,yCAAiC;QACvC,UAAU,EAAE,GAAG;QACf,kBAAkB,EAAE,GAAG,CAAC,WAAW;KACpC,CAAA;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CACxB,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,yCAAiC,CAAA;AACtE,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAC,kBAA6D;IAC9F,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,EAAE,CAAC;QAC3C,MAAM,IAAI,kBAAU,CAClB,+DAA+D,yCAAiC,EAAE,CACnG,CAAA;IACH,CAAC;IAED,OAAO,SAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;AACnE,CAAC"}
|
|
@@ -28,6 +28,7 @@ class VerificationMethod {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
exports.VerificationMethod = VerificationMethod;
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, class_validator_1.IsString)(),
|
|
33
34
|
__metadata("design:type", String)
|
|
@@ -75,5 +76,4 @@ __decorate([
|
|
|
75
76
|
(0, class_validator_1.IsString)(),
|
|
76
77
|
__metadata("design:type", String)
|
|
77
78
|
], VerificationMethod.prototype, "ethereumAddress", void 0);
|
|
78
|
-
exports.VerificationMethod = VerificationMethod;
|
|
79
79
|
//# sourceMappingURL=VerificationMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationMethod.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/VerificationMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAsD;AAgBtD,MAAa,kBAAkB;IAC7B,YAAmB,OAAkC;QACnD,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"VerificationMethod.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/VerificationMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAsD;AAgBtD,MAAa,kBAAkB;IAC7B,YAAmB,OAAkC;QACnD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAA;YACpB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;YACpC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;YAC9C,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;YAC9C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;YACxC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;YACxC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAA;YACpD,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;YACxC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAA;YACtD,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;QAChD,CAAC;IACH,CAAC;CAyCF;AAxDD,gDAwDC;AAtCQ;IADN,IAAA,0BAAQ,GAAE;;8CACO;AAGX;IADN,IAAA,0BAAQ,GAAE;;gDACS;AAGb;IADN,IAAA,0BAAQ,GAAE;;sDACe;AAInB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACoB;AAIxB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACoB;AAOxB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACiB;AAIrB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACuB;AAI3B;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACiB;AAIrB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACwB;AAI5B;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACoB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IsStringOrVerificationMethod = IsStringOrVerificationMethod;
|
|
4
|
+
exports.VerificationMethodTransformer = VerificationMethodTransformer;
|
|
4
5
|
const class_transformer_1 = require("class-transformer");
|
|
5
6
|
const class_validator_1 = require("class-validator");
|
|
6
7
|
const JsonTransformer_1 = require("../../../../utils/JsonTransformer");
|
|
@@ -17,7 +18,6 @@ function IsStringOrVerificationMethod(validationOptions) {
|
|
|
17
18
|
},
|
|
18
19
|
}, validationOptions);
|
|
19
20
|
}
|
|
20
|
-
exports.IsStringOrVerificationMethod = IsStringOrVerificationMethod;
|
|
21
21
|
/**
|
|
22
22
|
* Decorator that transforms authentication json to corresponding class instances
|
|
23
23
|
*
|
|
@@ -46,5 +46,4 @@ function VerificationMethodTransformer() {
|
|
|
46
46
|
return value;
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
exports.VerificationMethodTransformer = VerificationMethodTransformer;
|
|
50
49
|
//# sourceMappingURL=VerificationMethodTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationMethodTransformer.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/VerificationMethodTransformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VerificationMethodTransformer.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/VerificationMethodTransformer.ts"],"names":[],"mappings":";;AA0DS,oEAA4B;AAAE,sEAA6B;AAxDpE,yDAAiE;AACjE,qDAAgF;AAEhF,uEAAmE;AAEnE,6DAAyD;AAEzD;;GAEG;AACH,SAAS,4BAA4B,CAAC,iBAAqC;IACzE,OAAO,IAAA,4BAAU,EACf;QACE,IAAI,EAAE,8BAA8B;QACpC,SAAS,EAAE;YACT,QAAQ,EAAE,CAAC,KAAK,EAAW,EAAE,CAAC,IAAA,0BAAQ,EAAC,KAAK,CAAC,IAAI,IAAA,4BAAU,EAAC,KAAK,EAAE,uCAAkB,CAAC;YACtF,cAAc,EAAE,IAAA,8BAAY,EAC1B,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,8DAA8D,EAC3F,iBAAiB,CAClB;SACF;KACF,EACD,iBAAiB,CAClB,CAAA;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,6BAA6B;IACpC,OAAO,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAA0E,EAAE,EAAE;QAC3G,IAAI,IAAI,KAAK,sCAAkB,CAAC,cAAc,EAAE,CAAC;YAC/C,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBACzB,iCAAiC;gBACjC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;oBAC7B,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA;gBACrB,CAAC;gBAED,+BAA+B;gBAC/B,OAAO,iCAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,uCAAkB,CAAC,CAAA;YAC3D,CAAC,CAAC,CAAA;QACJ,CAAC;aAAM,IAAI,IAAI,KAAK,sCAAkB,CAAC,cAAc,EAAE,CAAC;YACtD,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAC/F,CAAC;QAED,iBAAiB;QACjB,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019 = void 0;
|
|
4
|
+
exports.getX25519KeyAgreementKey2019 = getX25519KeyAgreementKey2019;
|
|
5
|
+
exports.isX25519KeyAgreementKey2019 = isX25519KeyAgreementKey2019;
|
|
6
|
+
exports.getKeyFromX25519KeyAgreementKey2019 = getKeyFromX25519KeyAgreementKey2019;
|
|
4
7
|
const crypto_1 = require("../../../../crypto");
|
|
5
8
|
const Key_1 = require("../../../../crypto/Key");
|
|
6
9
|
const error_1 = require("../../../../error");
|
|
@@ -17,14 +20,12 @@ function getX25519KeyAgreementKey2019({ key, id, controller }) {
|
|
|
17
20
|
publicKeyBase58: key.publicKeyBase58,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
exports.getX25519KeyAgreementKey2019 = getX25519KeyAgreementKey2019;
|
|
21
23
|
/**
|
|
22
24
|
* Check whether a verification method is a X25519KeyAgreementKey2019 verification method.
|
|
23
25
|
*/
|
|
24
26
|
function isX25519KeyAgreementKey2019(verificationMethod) {
|
|
25
27
|
return verificationMethod.type === exports.VERIFICATION_METHOD_TYPE_X25519_KEY_AGREEMENT_KEY_2019;
|
|
26
28
|
}
|
|
27
|
-
exports.isX25519KeyAgreementKey2019 = isX25519KeyAgreementKey2019;
|
|
28
29
|
/**
|
|
29
30
|
* Get a key from a X25519KeyAgreementKey2019 verification method.
|
|
30
31
|
*/
|
|
@@ -34,5 +35,4 @@ function getKeyFromX25519KeyAgreementKey2019(verificationMethod) {
|
|
|
34
35
|
}
|
|
35
36
|
return Key_1.Key.fromPublicKeyBase58(verificationMethod.publicKeyBase58, crypto_1.KeyType.X25519);
|
|
36
37
|
}
|
|
37
|
-
exports.getKeyFromX25519KeyAgreementKey2019 = getKeyFromX25519KeyAgreementKey2019;
|
|
38
38
|
//# sourceMappingURL=X25519KeyAgreementKey2019.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"X25519KeyAgreementKey2019.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"X25519KeyAgreementKey2019.js","sourceRoot":"","sources":["../../../../../src/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.ts"],"names":[],"mappings":";;;AAcA,oEAOC;AAKD,kEAIC;AAKD,kFAMC;AAzCD,+CAA4C;AAC5C,gDAA4C;AAC5C,6CAA8C;AAE9C,6DAAyD;AAE5C,QAAA,sDAAsD,GAAG,2BAA2B,CAAA;AAKjG;;GAEG;AACH,SAAgB,4BAA4B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAgD;IAChH,OAAO,IAAI,uCAAkB,CAAC;QAC5B,EAAE;QACF,IAAI,EAAE,8DAAsD;QAC5D,UAAU;QACV,eAAe,EAAE,GAAG,CAAC,eAAe;KACrC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,2BAA2B,CACzC,kBAAsC;IAEtC,OAAO,kBAAkB,CAAC,IAAI,KAAK,8DAAsD,CAAA;AAC3F,CAAC;AAED;;GAEG;AACH,SAAgB,mCAAmC,CAAC,kBAA6C;IAC/F,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAU,CAAC,gDAAgD,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,SAAG,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,EAAE,gBAAO,CAAC,MAAM,CAAC,CAAA;AACpF,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isDidKey = isDidKey;
|
|
4
|
+
exports.didKeyToVerkey = didKeyToVerkey;
|
|
5
|
+
exports.verkeyToDidKey = verkeyToDidKey;
|
|
6
|
+
exports.didKeyToInstanceOfKey = didKeyToInstanceOfKey;
|
|
7
|
+
exports.verkeyToInstanceOfKey = verkeyToInstanceOfKey;
|
|
4
8
|
const crypto_1 = require("../../crypto");
|
|
5
9
|
const utils_1 = require("../../utils");
|
|
6
10
|
const key_1 = require("./methods/key");
|
|
7
11
|
function isDidKey(key) {
|
|
8
12
|
return (0, utils_1.isDid)(key, 'key');
|
|
9
13
|
}
|
|
10
|
-
exports.isDidKey = isDidKey;
|
|
11
14
|
function didKeyToVerkey(key) {
|
|
12
15
|
if (isDidKey(key)) {
|
|
13
16
|
const publicKeyBase58 = key_1.DidKey.fromDid(key).key.publicKeyBase58;
|
|
@@ -15,7 +18,6 @@ function didKeyToVerkey(key) {
|
|
|
15
18
|
}
|
|
16
19
|
return key;
|
|
17
20
|
}
|
|
18
|
-
exports.didKeyToVerkey = didKeyToVerkey;
|
|
19
21
|
function verkeyToDidKey(key) {
|
|
20
22
|
if (isDidKey(key))
|
|
21
23
|
return key;
|
|
@@ -24,15 +26,12 @@ function verkeyToDidKey(key) {
|
|
|
24
26
|
const didKey = new key_1.DidKey(ed25519Key);
|
|
25
27
|
return didKey.did;
|
|
26
28
|
}
|
|
27
|
-
exports.verkeyToDidKey = verkeyToDidKey;
|
|
28
29
|
function didKeyToInstanceOfKey(key) {
|
|
29
30
|
const didKey = key_1.DidKey.fromDid(key);
|
|
30
31
|
return didKey.key;
|
|
31
32
|
}
|
|
32
|
-
exports.didKeyToInstanceOfKey = didKeyToInstanceOfKey;
|
|
33
33
|
function verkeyToInstanceOfKey(verkey) {
|
|
34
34
|
const ed25519Key = crypto_1.Key.fromPublicKeyBase58(verkey, crypto_1.KeyType.Ed25519);
|
|
35
35
|
return ed25519Key;
|
|
36
36
|
}
|
|
37
|
-
exports.verkeyToInstanceOfKey = verkeyToInstanceOfKey;
|
|
38
37
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/modules/dids/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/modules/dids/helpers.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAED,wCAMC;AAED,wCAMC;AAED,sDAGC;AAED,sDAGC;AAjCD,yCAA2C;AAC3C,uCAAmC;AAEnC,uCAAsC;AAEtC,SAAgB,QAAQ,CAAC,GAAW;IAClC,OAAO,IAAA,aAAK,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAgB,cAAc,CAAC,GAAW;IACxC,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,eAAe,GAAG,YAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,eAAe,CAAA;QAC/D,OAAO,eAAe,CAAA;IACxB,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAgB,cAAc,CAAC,GAAW;IACxC,IAAI,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAA;IAC7B,MAAM,eAAe,GAAG,GAAG,CAAA;IAC3B,MAAM,UAAU,GAAG,YAAG,CAAC,mBAAmB,CAAC,eAAe,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;IAC5E,MAAM,MAAM,GAAG,IAAI,YAAM,CAAC,UAAU,CAAC,CAAA;IACrC,OAAO,MAAM,CAAC,GAAG,CAAA;AACnB,CAAC;AAED,SAAgB,qBAAqB,CAAC,GAAW;IAC/C,MAAM,MAAM,GAAG,YAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAClC,OAAO,MAAM,CAAC,GAAG,CAAA;AACnB,CAAC;AAED,SAAgB,qBAAqB,CAAC,MAAc;IAClD,MAAM,UAAU,GAAG,YAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;IACnE,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwkDidRegistrar.js","sourceRoot":"","sources":["../../../../../src/modules/dids/methods/jwk/JwkDidRegistrar.ts"],"names":[],"mappings":";;;AAMA,qDAA2D;AAC3D,kEAA8D;AAC9D,iDAA2D;AAE3D,qCAAiC;AAEjC,MAAa,eAAe;IAA5B;QACkB,qBAAgB,GAAG,CAAC,KAAK,CAAC,CAAA;IAwF5C,CAAC;IAtFQ,KAAK,CAAC,MAAM,CAAC,YAA0B,EAAE,OAA4B;;QAC1E,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,0BAAa,CAAC,CAAA;QAE3E,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAA;QACvC,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,IAAI,CAAA;QACjC,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,UAAU,CAAA;QAE7C,IAAI,CAAC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"JwkDidRegistrar.js","sourceRoot":"","sources":["../../../../../src/modules/dids/methods/jwk/JwkDidRegistrar.ts"],"names":[],"mappings":";;;AAMA,qDAA2D;AAC3D,kEAA8D;AAC9D,iDAA2D;AAE3D,qCAAiC;AAEjC,MAAa,eAAe;IAA5B;QACkB,qBAAgB,GAAG,CAAC,KAAK,CAAC,CAAA;IAwF5C,CAAC;IAtFQ,KAAK,CAAC,MAAM,CAAC,YAA0B,EAAE,OAA4B;;QAC1E,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,0BAAa,CAAC,CAAA;QAE3E,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAA;QACvC,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,IAAI,CAAA;QACjC,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,UAAU,CAAA;QAE7C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO;gBACL,mBAAmB,EAAE,EAAE;gBACvB,uBAAuB,EAAE,EAAE;gBAC3B,QAAQ,EAAE;oBACR,KAAK,EAAE,QAAQ;oBACf,MAAM,EAAE,kBAAkB;iBAC3B;aACF,CAAA;QACH,CAAC;QAED,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC;gBAC9C,OAAO;gBACP,IAAI;gBACJ,UAAU;aACX,CAAC,CAAA;YAEF,MAAM,GAAG,GAAG,IAAA,mBAAa,EAAC,GAAG,CAAC,CAAA;YAC9B,MAAM,MAAM,GAAG,eAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YAElC,8DAA8D;YAC9D,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC;gBAC9B,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,IAAI,EAAE,iCAAe,CAAC,OAAO;aAC9B,CAAC,CAAA;YACF,MAAM,aAAa,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAA;YAEjD,OAAO;gBACL,mBAAmB,EAAE,EAAE;gBACvB,uBAAuB,EAAE,EAAE;gBAC3B,QAAQ,EAAE;oBACR,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,MAAM,CAAC,GAAG;oBACf,WAAW,EAAE,MAAM,CAAC,WAAW;oBAC/B,MAAM,EAAE;wBACN,oEAAoE;wBACpE,oEAAoE;wBACpE,oEAAoE;wBACpE,sEAAsE;wBACtE,WAAW;wBACX,IAAI,EAAE,MAAA,OAAO,CAAC,MAAM,0CAAE,IAAI;wBAC1B,UAAU,EAAE,MAAA,OAAO,CAAC,MAAM,0CAAE,UAAU;qBACvC;iBACF;aACF,CAAA;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,mBAAmB,EAAE,EAAE;gBACvB,uBAAuB,EAAE,EAAE;gBAC3B,QAAQ,EAAE;oBACR,KAAK,EAAE,QAAQ;oBACf,MAAM,EAAE,iBAAiB,KAAK,CAAC,OAAO,EAAE;iBACzC;aACF,CAAA;QACH,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,OAAO;YACL,mBAAmB,EAAE,EAAE;YACvB,uBAAuB,EAAE,EAAE;YAC3B,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,yCAAyC;aAClD;SACF,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,UAAU;QACrB,OAAO;YACL,mBAAmB,EAAE,EAAE;YACvB,uBAAuB,EAAE,EAAE;YAC3B,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,6CAA6C;aACtD;SACF,CAAA;IACH,CAAC;CACF;AAzFD,0CAyFC"}
|
|
@@ -7,5 +7,10 @@ export declare class JwkDidResolver implements DidResolver {
|
|
|
7
7
|
* No remote resolving done, did document is dynamically constructed. To not pollute the cache we don't allow caching
|
|
8
8
|
*/
|
|
9
9
|
readonly allowsCaching = false;
|
|
10
|
+
/**
|
|
11
|
+
* Easier to calculate for resolving than serving the local did document. Record also doesn't
|
|
12
|
+
* have a did document
|
|
13
|
+
*/
|
|
14
|
+
readonly allowsLocalDidRecord = false;
|
|
10
15
|
resolve(agentContext: AgentContext, did: string): Promise<DidResolutionResult>;
|
|
11
16
|
}
|