KeyPair constructor

KeyPair(
  1. PrivateKey privateKey
)

Implementation

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