Wallet constructor
Wallet(
- Uint8List priv
Create Wallet from private Key priv
Implementation
Wallet(this.priv) {
if (priv.length != 32) {
throw Exception("Private key should be 32 bytes");
}
pub = secp256k1.derivePublicKey(bytesToInt(priv), false);
adressBytes = Address.publicKeyToAddressBytes(pub);
adressString = Address.publicKeyToAddressString(pub);
}