Skip to content

Commit

Permalink
Fixed typo in signature.s error (#3891).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 12, 2023
1 parent f61ad27 commit 47ef3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/crypto/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Signature {
*/
get s(): string { return this.#s; }
set s(_value: BytesLike) {
assertArgument(dataLength(_value) === 32, "invalid r", "value", _value);
assertArgument(dataLength(_value) === 32, "invalid s", "value", _value);
const value = hexlify(_value);
assertArgument(parseInt(value.substring(0, 3)) < 8, "non-canonical s", "value", value);
this.#s = value;
Expand Down

0 comments on commit 47ef3eb

Please sign in to comment.