Options
All
  • Public
  • Public/Protected
  • All
Menu

secret-memo

Index

Functions

decodeMemo

  • decodeMemo(sequenceNumber: string, keys: Keypair, from: string, memo: Memo): Promise<Memo>
  • Parameters

    • sequenceNumber: string

      the nonce

    • keys: Keypair

      the private keys of the recipient

    • from: string

      the publid key of the sender

    • memo: Memo

      the memo to decode

    Returns Promise<Memo>

decodeTransactionMemo

  • decodeTransactionMemo(tx: Transaction, keys: Keypair): Promise<Memo>
  • Parameters

    • tx: Transaction

      the transaction that contains the encrypted memo

    • keys: Keypair

      the private keys of the recipient

    Returns Promise<Memo>

    a memo with a decrypted value

encodeMemo

  • encodeMemo(sequenceNumber: string, keys: Keypair, to: string, memo: Memo): Promise<Memo>
  • Parameters

    • sequenceNumber: string

      the nonce

    • keys: Keypair

      the private keys of the sender

    • to: string

      the public key of the recipient

    • memo: Memo

      the memo to encrypt

    Returns Promise<Memo>

    a memo with an encrypted value