コード例 #1
0
 public virtual bool verify(
     QrsProof proof,
     //ProofVerifier verifier,
     UInt256 pubKeyHash,
     UInt256 randomSeed,
     List <UInt256> hmacs,
     List <UInt256> nullifiers,
     List <UInt256> commitments,
     Fixed8 vpub_old,
     Fixed8 vpub_new,
     UInt256 rt
     )
 {
     return(false);
 }
コード例 #2
0
        public JSDescription(
            QrsJoinSplit qrsParams,
            UInt256 pubKeyHash,
            UInt256 anchor,
            List <JSInput> inputs,
            List <JSOutput> outputs,
            Fixed8 vpub_old,
            Fixed8 vpub_new,
            bool computeProof,
            UInt256 esk
            )
        {
            List <Note> notes = new List <Note>();

            anchor        = new UInt256();
            nullifiers    = new List <UInt256>();
            commitments   = new List <UInt256>();
            ephermeralKey = new UInt256();
            ciphertexts   = new List <byte[]>();
            randomSeed    = new UInt256();
            macs          = new List <UInt256>();

            proof = qrsParams.prove(
                inputs,
                outputs,
                notes,
                ciphertexts,
                ephermeralKey,
                pubKeyHash,
                randomSeed,
                macs,
                nullifiers,
                commitments,
                vpub_old,
                vpub_new,
                anchor,
                computeProof,
                esk);
        }