A Cipher that derives a shared secret using X25519 and then uses DeoxysII for encrypting using that secret.

This is the default cipher.

Hierarchy

Constructors

Properties

epoch: undefined | number
kind: Kind = Kind.X25519DeoxysII
publicKey: Uint8Array

Methods

  • Decrypts the data contained within call

    This is useful for creating tools, and also decoding previously-sent transactions that have used the same encryption key.

    Parameters

    • nonce: Uint8Array
    • ciphertext: Uint8Array

    Returns Promise<Uint8Array>

  • Decrypts the data contained within a hex-encoded serialized envelope.

    Parameters

    • callResult: BytesLike

    Returns Promise<string>

  • Parameters

    • plaintext: Uint8Array

    Returns Promise<{
        ciphertext: Uint8Array;
        nonce: Uint8Array;
    }>

Generated using TypeDoc