EOSPrivateKey class

EOS Private Key

Constructors

EOSPrivateKey.fromBuffer(Uint8List? d)
Constructor EOS private key from the key buffer itself
EOSPrivateKey.fromRandom()
Generate the random EOS private key
factory
EOSPrivateKey.fromSeed(String seed)
Generate EOS private key from seed. Please note: This is not random! For the given seed, the generated key would always be the same
factory
EOSPrivateKey.fromString(String keyStr)
Construct the private key from string It can come from WIF format for PVT format

Properties

d Uint8List?
getter/setter pair
format String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keyType String?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isWIF() bool
Check if the private key is WIF format
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Uint8List data) EOSSignature
Sign the bytes data using the private key
signHash(Uint8List sha256Data) EOSSignature
Sign the SHA256 hashed data using the private key
signString(String data) EOSSignature
Sign the string data using the private key
toEOSPublicKey() EOSPublicKey
Get the public key string from this private key
toString() String
A string representation of this object.
override

Operators

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