Skip to content

Commit

Permalink
docs: fixed typo in error message (#4306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 10, 2023
1 parent dfe1eef commit b4fb1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/crypto/signing-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b4fb1a1

Please sign in to comment.