示例#1
0
 public ECPrivateKey CreatePrivateKey(byte[] data)
 {
     return(new ECPrivateKey(BigIntegerExt.FromBigEndianBytes(data), this));
 }
示例#2
0
 public bool VerifySignature(byte[] hash, ECSignature signature)
 {
     return(VerifySignature(BigIntegerExt.FromBigEndianBytes(hash), signature));
 }
示例#3
0
 public BigInteger TruncateHash(byte[] hash)
 {
     return(TruncateHash(hash, BigIntegerExt.FromBigEndianBytes(hash)));
 }
示例#4
0
        public ECSignature Sign(byte[] hash, BigInteger random)
        {
            var num = BigIntegerExt.FromBigEndianBytes(hash);

            return(Sign(num, random));
        }