@blockchaincommons/provenance-mark - v1.0.0-beta.3
    Preparing search index...

    Function obfuscate

    • XORs message with ChaCha20 keyed by extendKey(key), the nonce being the last twelve bytes of the extended key reversed. Applying it twice restores the message; the empty message stays empty.

      Parameters

      • key: Uint8Array
      • message: Uint8Array

      Returns Uint8Array