mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Improve SEA check.pub()
This commit is contained in:
parent
5701b8b581
commit
5ee816191a
4
sea.js
4
sea.js
@ -1343,8 +1343,8 @@
|
||||
return no("Account not same!")
|
||||
}
|
||||
|
||||
if ((tmp = user.is) && tmp.pub && !raw['*'] && !raw['+']){
|
||||
SEA.sign(SEA.opt.pack(msg.put), (user._).sea, function(data){ // needs to be refactored
|
||||
if ((tmp = user.is) && tmp.pub && !raw['*'] && !raw['+'] && (pub === tmp.pub || (pub !== tmp.pub && ((msg._.out || {}).opt || {}).cert))){
|
||||
SEA.sign(SEA.opt.pack(msg.put), (user._).sea, function(data){
|
||||
if(u === data){ return no(SEA.err || 'Signature fail.') }
|
||||
msg.put[':'] = {':': tmp = SEA.opt.unpack(data.m), '~': data.s}
|
||||
msg.put['='] = tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user