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