public ProofInfo Rewind_range_proof(Identifier keyId, Commitment commit, RangeProof proof) { var nonce = Derived_key(keyId); var proofInfo = Secp.rewind_range_proof(commit, proof, nonce); return(proofInfo); }
public Signiture Sign(Message msg, Identifier keyId) { var skey = Derived_key(keyId); var sig = Secp.Sign(msg, skey); return(sig); }
public Commitment Switch_commit(Identifier keyId) { var skey = Derived_key(keyId); var commit = Secp.switch_commit(skey); return(commit); }
public Commitment commit_with_key_index(ulong amount, uint derivation) { var skey = derived_key_from_index(derivation); var commit = Secp.Commit(amount, skey); return(commit); }
public Commitment Commit(ulong amount, Identifier keyId) { var skey = Derived_key(keyId); var commit = Secp.Commit(amount, skey); return(commit); }
public RangeProof Range_proof(ulong amount, Identifier keyId, Commitment commit, ProofMessage msg) { var skey = Derived_key(keyId); var rangeProof = Secp.range_proof(0, amount, skey, commit, msg); return(rangeProof); }
public BlindingFactor Blind_sum(BlindSum blindSum) { var posKeys = blindSum.PositiveKeyIds.Select(Derived_key).ToList(); var negKeys = blindSum.NegativeKeyIds.Select(Derived_key).ToList(); posKeys.AddRange(blindSum.PositiveBlindingFactors.Select(pbf => pbf.Key)); negKeys.AddRange(blindSum.NegativeBlindingFactors.Select(nbf => nbf.Key)); var blinding = Secp.blind_sum(posKeys.ToArray(), negKeys.ToArray()); return(BlindingFactor.New(blinding)); }
public Signiture Sign_with_blinding(Message msg, BlindingFactor blinding) { var sig = Secp.Sign(msg, blinding.Key); return(sig); }