OrchardKeyAgreementPrivateKey constructor

OrchardKeyAgreementPrivateKey(
  1. VestaNativeFq scalar
)

Implementation

factory OrchardKeyAgreementPrivateKey(VestaNativeFq scalar) {
  if (scalar.isZero()) {
    throw OrchardKeyError.failed(
      "OrchardKeyAgreementPrivateKey",
      reason: "Invalid scalar. scalar must not be zero.",
    );
  }
  return OrchardKeyAgreementPrivateKey._(scalar: scalar);
}