Polkadot Apps
    Preparing search index...
    interface secretbox {
        keyLength: number;
        nonceLength: number;
        overheadLength: number;
        open(
            box: Uint8Array,
            nonce: Uint8Array,
            key: Uint8Array,
        ): Uint8Array<ArrayBufferLike> | null;
        (msg: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
    }
    • Parameters

      • msg: Uint8Array
      • nonce: Uint8Array
      • key: Uint8Array

      Returns Uint8Array

    Index

    Properties

    keyLength: number
    nonceLength: number
    overheadLength: number

    Methods

    • Parameters

      • box: Uint8Array
      • nonce: Uint8Array
      • key: Uint8Array

      Returns Uint8Array<ArrayBufferLike> | null