docs: fixed typo in error message (#4306)

This commit is contained in:
Richard Moore 2023-08-10 14:20:41 -04:00
parent dfe1eefd03
commit b4fb1a166d

View File

@ -180,7 +180,7 @@ export class SigningKey {
const der = secp256k1.Signature.fromCompact(getBytesCopy(concat([ sig.r, sig.s ]))).toDERRawBytes();
const pubKey = secp256k1.recoverPublicKey(getBytesCopy(digest), der, sig.yParity);
assertArgument(pubKey != null, "invalid signautre for digest", "signature", signature);
assertArgument(pubKey != null, "invalid signature for digest", "signature", signature);
return hexlify(pubKey);
}