C# Class Nethereum.Core.Signing.Crypto.EthECKey

Show file Open project: Nethereum/Nethereum

Public Methods

Method Description
CalculateRecId ( this key, ECDSASignature signature, byte hash ) : int
GenerateKey ( ) : ECKey
GetPrivateKeyAsBytes ( this key ) : byte[]
GetPubKeyNoPrefix ( this key ) : byte[]
GetPublicAddress ( string privateKey ) : string
GetPublicAddress ( this key ) : string
GetRecIdFromV ( byte v ) : int
RecoverFromSignature ( ECDSASignature signature, byte hash ) : ECKey
SignAndCalculateV ( this key, byte hash ) : ECDSASignature
VerifyAllowingOnlyLowS ( this key, byte hash, ECDSASignature sig ) : bool

Method Details

CalculateRecId() public static method

public static CalculateRecId ( this key, ECDSASignature signature, byte hash ) : int
key this
signature NBitcoin.Crypto.ECDSASignature
hash byte
return int

GenerateKey() public static method

public static GenerateKey ( ) : ECKey
return NBitcoin.Crypto.ECKey

GetPrivateKeyAsBytes() public static method

public static GetPrivateKeyAsBytes ( this key ) : byte[]
key this
return byte[]

GetPubKeyNoPrefix() public static method

public static GetPubKeyNoPrefix ( this key ) : byte[]
key this
return byte[]

GetPublicAddress() public static method

public static GetPublicAddress ( string privateKey ) : string
privateKey string
return string

GetPublicAddress() public static method

public static GetPublicAddress ( this key ) : string
key this
return string

GetRecIdFromV() public static method

public static GetRecIdFromV ( byte v ) : int
v byte
return int

RecoverFromSignature() public static method

public static RecoverFromSignature ( ECDSASignature signature, byte hash ) : ECKey
signature NBitcoin.Crypto.ECDSASignature
hash byte
return NBitcoin.Crypto.ECKey

SignAndCalculateV() public static method

public static SignAndCalculateV ( this key, byte hash ) : ECDSASignature
key this
hash byte
return NBitcoin.Crypto.ECDSASignature

VerifyAllowingOnlyLowS() public static method

public static VerifyAllowingOnlyLowS ( this key, byte hash, ECDSASignature sig ) : bool
key this
hash byte
sig NBitcoin.Crypto.ECDSASignature
return bool