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

    Class Merge

    Consolidates up to MAX_MERGE_INPUTS plain UTXOs of one owner and asset into one. The output blinding, private-transaction blinding, and padded slots' nullifiers derive from the nullifier secret; the builder receives them derived by ShieldedKeys.derive. The circuit's unused slots are compact padding: each publishes 0 in place of its derived dummy nullifier, which it still proves absent, and the instruction leaves it out, so the merge reveals its real input count. Mirrors Rust MergeTransaction::new.

    Index
    • Parameters

      • input: Readonly<
            {
                address: ShieldedAddress;
                inputs: readonly ProofInputUtxo[];
                outputBlinding: Bytes32;
                privateTxBlinding: Bytes32;
                dummyNullifiers: readonly Bytes32[];
                outputKey: Bytes32;
                outputCiphertextSalt?: Bytes16;
                outputTreeId?: TreeId;
                ring?: Readonly<{ programId: Address; outputDataHash?: Bytes32 }>;
            },
        >

      Returns Merge