RAILGUN Reloaded
    Preparing search index...

    Type Alias PreTransactionPoi

    A pre-transaction POI in the shape that a broadcaster reads. Hex has no 0x prefix where the engine writes none.

    type PreTransactionPoi = {
        snarkProof: {
            pi_a: [string, string];
            pi_b: [[string, string], [string, string]];
            pi_c: [string, string];
        };
        txidMerkleroot: string;
        poiMerkleroots: string[];
        blindedCommitmentsOut: string[];
        railgunTxidIfHasUnshield: string;
    }
    Index
    snarkProof: {
        pi_a: [string, string];
        pi_b: [[string, string], [string, string]];
        pi_c: [string, string];
    }

    Groth16 proof of the POI circuit, with two coordinates for each affine point.

    Type Declaration

    • pi_a: [string, string]

      Point A, as [x, y].

    • pi_b: [[string, string], [string, string]]

      Point B, as two coordinate pairs in prover order.

    • pi_c: [string, string]

      Point C, as [x, y].

    txidMerkleroot: string

    Root of a TXID tree that holds only the TXID leaf of the transaction at the pre-transaction position, as hex with no 0x prefix.

    poiMerkleroots: string[]

    POI merkleroot of each spent note, in spent-note order, as the PPOI node returns it.

    blindedCommitmentsOut: string[]

    0x-prefixed hex blinded commitment of each output leaf. A zero-value output has a zero blinded commitment.

    railgunTxidIfHasUnshield: string

    0x-prefixed hex unshield blinded commitment of the transaction when it has an unshield. Otherwise '0x00'.