mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
find ugh
This commit is contained in:
parent
b101b492d4
commit
58f8cd0e03
1
sea.js
1
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user