From fbc80fe79ce823534a58197dd3173f29f81d6bcb Mon Sep 17 00:00:00 2001 From: Pawel Zelawski Date: Fri, 23 Jan 2026 11:37:56 +0100 Subject: fix: correct public key recovery to use toBytes() and addRecoveryBit() - Changed point.toRawBytes() to point.toBytes() to match @noble/curves v2 API - Added .addRecoveryBit(actualRecoveryId) to signature for proper recovery - Returns both compressed/uncompressed public keys for verification - Fixes signature verification regression in v2.0.0 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index e326047..1edba61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "digiid-ts", - "version": "2.0.0", + "version": "2.0.1-beta.0", "description": "A modern TypeScript implementation of the DigiID authentication protocol.", "main": "dist/digiid-ts.umd.js", "module": "dist/digiid-ts.es.js", @@ -78,4 +78,4 @@ "glob": "^10.5.0", "brace-expansion": "^2.0.2" } -} +} \ No newline at end of file -- cgit v1.2.3