• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • messaging/src
  • decrypt

Function decrypt

  • decrypt(encrypted: IEncryptedMessage, decryptCallback: DecryptCallback, decryptionOptions?: {
        resolveKey?: DidResolveKey;
    }): Promise<IMessage>
  • Symmetrically decrypts the result of encrypt.

    Returns

    The original Message.

    Parameters

    • encrypted: IEncryptedMessage

      The encrypted message.

    • decryptCallback: DecryptCallback

      The callback to decrypt with the secret key.

    • decryptionOptions: {
          resolveKey?: DidResolveKey;
      } = {}

      Options to perform the decryption operation.

      • Optional resolveKey?: DidResolveKey

        The DID key resolver to use.

    Returns Promise<IMessage>

    • Defined in packages/messaging/src/Message.ts:297

Settings

Member Visibility

Theme

Modules

  • API Documentation
    • asset-did/src
    • augment-api/src
    • chain-helpers/src
      • Blockchain
      • ErrorHandler
      • SubscriptionPromise
    • config/src
      • ConfigService
    • core/src
      • Attestation
      • BalanceUtils
      • CType
        • Schemas
      • Claim
      • Credential
      • DelegationNodeUtils
      • PublicCredential
      • Quote
    • did/src
    • messaging/src
    • sdk-js/src
    • type-definitions/src
    • types/src
      • SubscriptionPromise
    • utils/src
      • Crypto
      • DataUtils
      • JsonSchema
      • SDKErrors
      • UUID
      • jsonabc
    • vc-export/src
      • constants
      • presentation
      • vcjsSuites
        • suites
          • KiltAttestedSuite
          • KiltIntegritySuite
          • KiltSignatureSuite
      • verification
  • decrypt
  • encrypt
  • ensureOwnerIsSender
  • fromBody
  • verify
  • verifyDelegationStructure
  • verifyMessageBody
  • verifyMessageEnvelope
  • verifyRequiredCTypeProperties