checkKey method

ECPrivateKey checkKey(
  1. ECPrivateKey key
)

Implementation

ECPrivateKey checkKey(ECPrivateKey key) {
  if (key.pubkey != publicKey) {
    throw CannotSignInput("Incorrect key for input");
  }
  return key;
}