From 58f8cd0e03698be665f90eef8de8b4f529654436 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Mon, 10 Feb 2020 18:07:48 -0800 Subject: [PATCH] find ugh --- sea.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sea.js b/sea.js index 7c062d12..70632509 100644 --- a/sea.js +++ b/sea.js @@ -487,6 +487,7 @@ check = await (shim.ossl || shim.subtle).verify({name: 'ECDSA', hash: {name: 'SHA-256'}}, key, sig, new Uint8Array(hash)) if(!check){ throw "Signature did not match." } }catch(e){ + console.log("--------->", json.s, json); buf = shim.Buffer.from(json.s, 'utf8') // AUTO BACKWARD OLD UTF8 DATA! sig = new Uint8Array(buf) check = await (shim.ossl || shim.subtle).verify({name: 'ECDSA', hash: {name: 'SHA-256'}}, key, sig, new Uint8Array(hash))