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

    Interface PreparedTransfer

    interface PreparedTransfer {
        ownerMode: "signed" | "opaque";
        owner: ShieldedAddress;
        inputs: readonly ProofInputUtxo[];
        outputs: readonly ProofOutputUtxo[];
        firstNullifier: Bytes32;
        blindingSeed: Bytes32;
        inputTreeIds: readonly number[];
        outputTreeId: number;
        shape: Shape;
        payer: Address;
        interfaceTransfers: readonly SettlementTransfer[];
        senderOutputCount: number;
        compactPadding?: boolean;
        outputBlindingSeed(): Bytes32;
        proofOutputs(): readonly ProofOutputUtxo[];
        withAppendedSlot(extension: RecordSlotExtension): PreparedTransfer;
        finalize(
            input: Readonly<
                {
                    txViewingPublicKey: X25519PublicKey;
                    salt: Bytes16;
                    payload: readonly (
                        Readonly<{ viewTag: Bytes32; data: Uint8Array }>
                        | undefined
                    )[];
                    messages?: readonly Readonly<{ viewTag: Bytes32; data: Uint8Array }>[];
                    instructionDiscriminator?: number;
                },
            >,
        ): SppProofInputs;
    }
    Index
    ownerMode: "signed" | "opaque"

    "opaque" names no private input owner in the padding tags.

    inputs: readonly ProofInputUtxo[]
    outputs: readonly ProofOutputUtxo[]
    firstNullifier: Bytes32
    blindingSeed: Bytes32

    The private root seed; only the prover request may carry it.

    inputTreeIds: readonly number[]

    The trees the inputs are spent from, in first-use order.

    outputTreeId: number

    The tree the outputs are appended to.

    shape: Shape
    payer: Address
    interfaceTransfers: readonly SettlementTransfer[]
    senderOutputCount: number

    Leading outputs the sender owns, Rust PreparedOutputLayout::sender_output_count.

    compactPadding?: boolean

    Pads unused slots with compact padding instead of random dummies.

    • Ring transacts bind the auditor message and the RING_TRANSACT tag into the external data hash.

      Parameters

      • input: Readonly<
            {
                txViewingPublicKey: X25519PublicKey;
                salt: Bytes16;
                payload: readonly (
                    Readonly<{ viewTag: Bytes32; data: Uint8Array }>
                    | undefined
                )[];
                messages?: readonly Readonly<{ viewTag: Bytes32; data: Uint8Array }>[];
                instructionDiscriminator?: number;
            },
        >

      Returns SppProofInputs