RAILGUN Reloaded
    Preparing search index...

    Type Alias ShieldCommitmentPreimage

    Commitment preimage of one shield note, as the Shield event emits it.

    type ShieldCommitmentPreimage = {
        npk: Hex;
        token: { tokenType: number; tokenAddress: Address; tokenSubID: bigint };
        value: bigint;
    }
    Index
    npk: Hex

    Note public key, poseidon(masterPublicKey, random), as 0x-prefixed 32-byte hex.

    token: { tokenType: number; tokenAddress: Address; tokenSubID: bigint }

    Token of the note.

    Type Declaration

    • tokenType: number

      Contract TokenType value: 0 is ERC20, 1 is ERC721.

    • tokenAddress: Address

      Token contract address.

    • tokenSubID: bigint

      Token ID for ERC721. Zero for ERC20.

    value: bigint

    Note value in token base units, after the contract removes the shield fee.