• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • utils/src
  • Crypto
  • decryptAsymmetric

Function decryptAsymmetric

  • decryptAsymmetric(data: EncryptedAsymmetric | EncryptedAsymmetricString, publicKeyB: CryptoInput, secretKeyA: CryptoInput): Uint8Array | false
  • Wrapper around nacl.box.open. Authenticated decryption of an encrypted message.

    Returns

    Decrypted message or false if decryption is unsuccessful.

    Parameters

    • data: EncryptedAsymmetric | EncryptedAsymmetricString

      Object containing encrypted message and nonce used for encryption.

    • publicKeyB: CryptoInput

      Public key of the sender. Necessary to authenticate the message during decryption.

    • secretKeyA: CryptoInput

      Private key of the recipient. Required for decryption.

    Returns Uint8Array | false

    • Defined in packages/utils/src/Crypto.ts:232

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
  • Hasher
  • HashingOptions
  • Address
  • BitLength
  • CryptoInput
  • EncryptedAsymmetric
  • EncryptedAsymmetricString
  • coToUInt8
  • decryptAsymmetric
  • decryptAsymmetricAsStr
  • encodeAddress
  • encodeObjectAsStr
  • encryptAsymmetric
  • encryptAsymmetricAsStr
  • hash
  • hashStatements
  • hashStr
  • makeEncryptionKeypairFromSeed
  • makeKeypairFromSeed
  • makeKeypairFromUri
  • naclBoxPairFromSecret
  • saltedBlake2b256
  • sign
  • signStr
  • verify