AMAXPrivateKey class
AMAX Private Key
Constructors
- AMAXPrivateKey.fromBuffer(Uint8List? d)
- Constructor AMAX private key from the key buffer itself
- AMAXPrivateKey.fromRandom()
-
Generate the random AMAX private key
factory
- AMAXPrivateKey.fromSeed(String seed)
-
Generate AMAX private key from seed. Please note: This is not random!
For the given seed, the generated key would always be the same
factory
- AMAXPrivateKey.fromString(String keyStr)
- Construct the private key from string It can come from WIF format for PVT format
Properties
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) → AMAXSignature - Sign the bytes data using the private key
-
signHash(
Uint8List sha256Data) → AMAXSignature - Sign the SHA256 hashed data using the private key
-
signString(
String data) → AMAXSignature - Sign the string data using the private key
-
toAMAXPublicKey(
) → AMAXPublicKey - 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