You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The docs https://gun.eco/docs/SEA.certify mention that you can have an array of pubs when creating certificates.
On the current version of Gun 0.2020.1239 two things happen:
Puts seem to fail silently and never call their callback function when using a certificate with an array of pubs.
The callbacks on gets to a node where you attempted to put will also never be called afterwards.
console.log("Running test");constsea1=awaitSEA.pair();constsea2=awaitSEA.pair();constsea3=awaitSEA.pair();constpolicy: any={"*": "test","+": "*"};constcert1=awaitSEA.certify([sea2.pub,sea3.pub],policy,sea1);user.auth(sea2,(data: any)=>{console.log("Authed");//The callback is never called on this put.gun.get(`~${sea1.pub}`).get("test").get(sea2.pub).put({test: "data"},console.log,{opt: {cert: cert1},});//The once call back is also never called.gun.get(`~${sea1.pub}`).get("test").get(sea2.pub).once(console.log);});
I have created a sandbox that shows the bug (see index.ts).
The text was updated successfully, but these errors were encountered:
I don't have bandwidth for this one until after AXE, RAD/Book. Probably would be good before SecureRender (since that's long term). Anyone want to have a stab? Can get on a code call if need.
Hi,
The docs https://gun.eco/docs/SEA.certify mention that you can have an array of pubs when creating certificates.
On the current version of Gun
0.2020.1239
two things happen:gets
to a node where you attempted toput
will also never be called afterwards.I have created a sandbox that shows the bug (see index.ts).
The text was updated successfully, but these errors were encountered: