C# Class Secp256k1.ECDsaSigner

Mostrar archivo Open project: TangibleCryptography/Secp256k1

Public Methods

Method Description
GenerateSignature ( System.Numerics.BigInteger privateKey, byte hash ) : System.Numerics.BigInteger[]
GenerateSignature ( System.Numerics.BigInteger privateKey, byte hash, System.Numerics.BigInteger k ) : System.Numerics.BigInteger[]
RecoverFromSignature ( byte hash, System.Numerics.BigInteger r, System.Numerics.BigInteger s, int recId ) : ECPoint
VerifySignature ( ECPoint publicKey, byte hash, System.Numerics.BigInteger r, System.Numerics.BigInteger s ) : bool

Method Details

GenerateSignature() public method

public GenerateSignature ( System.Numerics.BigInteger privateKey, byte hash ) : System.Numerics.BigInteger[]
privateKey System.Numerics.BigInteger
hash byte
return System.Numerics.BigInteger[]

GenerateSignature() public method

public GenerateSignature ( System.Numerics.BigInteger privateKey, byte hash, System.Numerics.BigInteger k ) : System.Numerics.BigInteger[]
privateKey System.Numerics.BigInteger
hash byte
k System.Numerics.BigInteger
return System.Numerics.BigInteger[]

RecoverFromSignature() public method

public RecoverFromSignature ( byte hash, System.Numerics.BigInteger r, System.Numerics.BigInteger s, int recId ) : ECPoint
hash byte
r System.Numerics.BigInteger
s System.Numerics.BigInteger
recId int
return ECPoint

VerifySignature() public method

public VerifySignature ( ECPoint publicKey, byte hash, System.Numerics.BigInteger r, System.Numerics.BigInteger s ) : bool
publicKey ECPoint
hash byte
r System.Numerics.BigInteger
s System.Numerics.BigInteger
return bool