PrivateKey class

Constructors

PrivateKey(BigInt D)
generate a private key from random number
PrivateKey.fromHex(String hexString)
convert a hex string to a private key(bigint)
PrivateKey.generate()
generate a private key from random number

Properties

D BigInt
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
publicKey PublicKey
get the unique public key of the private key on secp256k1 curve
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signature(String hexHash) Signature
sign the hash of message with the private key
toHex() String
generate a hex string from a private key(bigint)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override