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

    Interface ProofOutputUtxo

    interface ProofOutputUtxo {
        ownerAddress?: ShieldedAddress;
        asset: Address;
        mint?: Mint;
        amount: bigint;
        blinding: Bytes32;
        ringProgramId?: Address;
        ringDataHash?: Bytes32;
        dataHash?: Bytes32;
        ownerTag?: Bytes32;
        data: Data;
        cacheSlot?: number;
        compact?: boolean;
        ownerHash(): Bytes32;
        hash(outputTreeId: number): Bytes32;
        isDummy(): boolean;
        isCompact(): boolean;
        withUtxoData(utxoData: Uint8Array, dataHash: Bytes32): ProofOutputUtxo;
        withMemo(memo: Uint8Array): ProofOutputUtxo;
        withRingProgramId(ringProgramId: Address): ProofOutputUtxo;
        withCacheSlot(slot: number): ProofOutputUtxo;
    }
    Index
    ownerAddress?: ShieldedAddress
    asset: Address
    mint?: Mint

    Registry-validated address/id pair for encryption without a registry lookup.

    amount: bigint
    blinding: Bytes32
    ringProgramId?: Address
    ringDataHash?: Bytes32
    dataHash?: Bytes32
    ownerTag?: Bytes32
    data: Data
    cacheSlot?: number
    compact?: boolean

    Compact padding: a dummy that publishes hash 0 and is left out of the instruction.

    • The commitment of this output in outputTreeId, the tree it is appended to.

      Parameters

      • outputTreeId: number

      Returns Bytes32

    • Attach application data and its commitment. SPP commits dataHash unchecked: nothing verifies that it hashes utxoData, so a reader must recompute it under the application's encoding before trusting the payload, and must reject non-empty data with a zero dataHash, which no owner authorized.

      Parameters

      • utxoData: Uint8Array
      • dataHash: Bytes32

      Returns ProofOutputUtxo