@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Interface DecodeContext

    Everything a wallet needs to open one output slot, the counterpart of Rust DecodeCx. Each field is per-transaction except slotIndex, and the encryption schemes bind the slot index, so a context built for one slot must not be reused to open another.

    interface DecodeContext {
        viewingKey: ViewingKey;
        txViewingPublicKey?: X25519PublicKey;
        salt?: Bytes16;
        slotIndex: number;
        firstNullifier?: Bytes32;
    }
    Index
    viewingKey: ViewingKey
    txViewingPublicKey?: X25519PublicKey
    salt?: Bytes16
    slotIndex: number
    firstNullifier?: Bytes32