KeyPair constructor
KeyPair(
- PrivateKey privateKey
Implementation
KeyPair(PrivateKey privateKey) : _privateKey = privateKey {
_privateKey = privateKey;
_keyPair = ed25519.keyPairFromSeed(privateKey.bytes, hashMode);
}