RAILGUN Reloaded
    Preparing search index...

    Type Alias SubmitPOIParams

    SubmitPOIParams: NetworkParams & {
        listKey: string;
        transactProofData: {
            snarkProof: Groth16Proof;
            poiMerkleroots: string[];
            txidMerkleroot: string;
            txidMerklerootIndex: number;
            blindedCommitmentsOut: string[];
            railgunTxidIfHasUnshield: string;
        };
    }

    Params of PoiNodeClient.submitPOI.

    Type Declaration

    • listKey: string

      Key of the POI list that receives the proof.

    • transactProofData: {
          snarkProof: Groth16Proof;
          poiMerkleroots: string[];
          txidMerkleroot: string;
          txidMerklerootIndex: number;
          blindedCommitmentsOut: string[];
          railgunTxidIfHasUnshield: string;
      }

      POI proof of one transaction and its public values.

      • snarkProof: Groth16Proof

        Groth16 proof of the POI circuit. The client sends two coordinates for each affine point.

      • poiMerkleroots: string[]

        POI merkleroot of each spent note, in spent-note order, as hex.

      • txidMerkleroot: string

        TXID merkleroot that the proof uses, as hex.

      • txidMerklerootIndex: number

        Global TXID index (treeNumber * 65536 + leafIndex) of the last leaf that txidMerkleroot includes.

      • 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'.