diff --git a/src.ts/crypto/signature.ts b/src.ts/crypto/signature.ts index 4e73d992a..c48ef4626 100644 --- a/src.ts/crypto/signature.ts +++ b/src.ts/crypto/signature.ts @@ -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;