This commit is contained in:
Mark Nadal 2020-02-10 18:07:48 -08:00
parent b101b492d4
commit 58f8cd0e03

1
sea.js
View File

@ -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))