From 47ef3ebde37bfa0c015c258c3d8a6800d751e147 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 12 Mar 2023 04:50:42 -0400 Subject: [PATCH] Fixed typo in signature.s error (#3891). --- src.ts/crypto/signature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/crypto/signature.ts b/src.ts/crypto/signature.ts index 4e73d992a2..c48ef46265 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;