amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.08k stars 1.16k forks source link

[Doc] is the SEA Quickstart example wrong? #1328

Closed rozek closed 1 year ago

rozek commented 1 year ago

While most of the stuff mentioned in the example works out of the box (very well done!) I cannot send the message from Alice to Bob.

The last line in the example always fails with {@: 'g4V8uyOMn', err: 'Certificate verification fail.', $: Gun, #: '7ktfz5Xb8', _: ƒ}

I already tried to log Alice out and Bob in, but without success

dj0024javia commented 1 year ago

Alright, I was stuck on this for so long, but try to create SEA.pair() for each user, save it in a variable. Run the code again with those values and it should work.

amark commented 1 year ago

@rozek @dj0024javia is this good now? Gonna assume so. Sorry for late reply (bad at tracking things). Please re-open if not - or better, just tweak the docs slightly (everything is editable via the GitHub wiki).

OisinHick commented 11 months ago

Although I'm aware this is closed I have questions about this also. If the keys change every time how does one encrypt and decrypt data each time the log in and out?