Property | Type | Description | |
---|---|---|---|
CURVE | ECDomainParameters | ||
CURVE_ORDER | BigInteger | ||
HALF_CURVE_ORDER | BigInteger | ||
PrivateKey | ECPrivateKeyParameters | ||
Secp256k1 | X9ECParameters | ||
_Secp256k1 | X9ECParameters |
Method | Description | |
---|---|---|
ECKey ( Array vch, bool isPrivate ) : System | ||
GetPubKey ( bool isCompressed ) : byte[] | ||
GetPublicKeyParameters ( ) : ECPublicKeyParameters | ||
RecoverFromSignature ( int recId, ECLibrary.Signer.Crypto.ECDSASignature sig, Array message, bool compressed ) : |
||
Sign ( Array hash ) : ECLibrary.Signer.Crypto.ECDSASignature | ||
Verify ( Array hash, ECLibrary.Signer.Crypto.ECDSASignature sig ) : bool |
Method | Description | |
---|---|---|
AssertPrivateKey ( ) : void | ||
DecompressKey ( BigInteger xBN, bool yBit ) : ECPoint | ||
ECKey ( ) : System |
public ECKey ( Array vch, bool isPrivate ) : System | ||
vch | Array | |
isPrivate | bool | |
return | System |
public GetPubKey ( bool isCompressed ) : byte[] | ||
isCompressed | bool | |
return | byte[] |
public GetPublicKeyParameters ( ) : ECPublicKeyParameters | ||
return | ECPublicKeyParameters |
public static RecoverFromSignature ( int recId, ECLibrary.Signer.Crypto.ECDSASignature sig, Array message, bool compressed ) : |
||
recId | int | |
sig | ECLibrary.Signer.Crypto.ECDSASignature | |
message | Array | |
compressed | bool | |
return |
public Sign ( Array hash ) : ECLibrary.Signer.Crypto.ECDSASignature | ||
hash | Array | |
return | ECLibrary.Signer.Crypto.ECDSASignature |
public Verify ( Array hash, ECLibrary.Signer.Crypto.ECDSASignature sig ) : bool | ||
hash | Array | |
sig | ECLibrary.Signer.Crypto.ECDSASignature | |
return | bool |
public static BigInteger HALF_CURVE_ORDER | ||
return | BigInteger |
public ECPrivateKeyParameters PrivateKey | ||
return | ECPrivateKeyParameters |