C# Class NBitcoin.Crypto.ECKey

Afficher le fichier Open project: Nethereum/Nethereum Class Usage Examples

Méthodes publiques

Свойство Type Description
CURVE Org.BouncyCastle.Crypto.Parameters.ECDomainParameters
CURVE_ORDER Org.BouncyCastle.Math.BigInteger
HALF_CURVE_ORDER Org.BouncyCastle.Math.BigInteger
_Secp256k1 Org.BouncyCastle.Asn1.X9.X9ECParameters

Méthodes publiques

Méthode Description
ECKey ( byte vch, bool isPrivate ) : System
GetPubKey ( bool isCompressed ) : byte[]
GetPublicKeyParameters ( ) : ECPublicKeyParameters
RecoverFromSignature ( int recId, ECDSASignature sig, byte message, bool compressed ) : ECKey
Sign ( byte hash ) : ECDSASignature
Verify ( byte hash, ECDSASignature sig ) : bool

Private Methods

Méthode Description
AssertPrivateKey ( ) : void
DecompressKey ( BigInteger xBN, bool yBit ) : ECPoint
ECKey ( ) : System

Method Details

ECKey() public méthode

public ECKey ( byte vch, bool isPrivate ) : System
vch byte
isPrivate bool
Résultat System

GetPubKey() public méthode

public GetPubKey ( bool isCompressed ) : byte[]
isCompressed bool
Résultat byte[]

GetPublicKeyParameters() public méthode

public GetPublicKeyParameters ( ) : ECPublicKeyParameters
Résultat Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters

RecoverFromSignature() public static méthode

public static RecoverFromSignature ( int recId, ECDSASignature sig, byte message, bool compressed ) : ECKey
recId int
sig ECDSASignature
message byte
compressed bool
Résultat ECKey

Sign() public méthode

public Sign ( byte hash ) : ECDSASignature
hash byte
Résultat ECDSASignature

Verify() public méthode

public Verify ( byte hash, ECDSASignature sig ) : bool
hash byte
sig ECDSASignature
Résultat bool

Property Details

CURVE public_oe static_oe property

public static ECDomainParameters,Org.BouncyCastle.Crypto.Parameters CURVE
Résultat Org.BouncyCastle.Crypto.Parameters.ECDomainParameters

CURVE_ORDER public_oe static_oe property

public static BigInteger,Org.BouncyCastle.Math CURVE_ORDER
Résultat Org.BouncyCastle.Math.BigInteger

HALF_CURVE_ORDER public_oe static_oe property

public static BigInteger,Org.BouncyCastle.Math HALF_CURVE_ORDER
Résultat Org.BouncyCastle.Math.BigInteger

_Secp256k1 public_oe static_oe property

public static X9ECParameters,Org.BouncyCastle.Asn1.X9 _Secp256k1
Résultat Org.BouncyCastle.Asn1.X9.X9ECParameters