KeyPair constructor

KeyPair({
  1. VerificationKey? vk,
  2. SigningKey? sk,
})

Implementation

factory KeyPair({
  VerificationKey? vk,
  SigningKey? sk,
}) {
  final _result = create();
  if (vk != null) {
    _result.vk = vk;
  }
  if (sk != null) {
    _result.sk = sk;
  }
  return _result;
}