gun
gun copied to clipboard
gun.get('foo').get('bar').put(sea key) store sea key bug
Bug found I guess.
gun.get('foo').get('bar').put(sea key)
This code should but it need to string to work. As for user.get('foo').put(sea key). Which works without need string but json format.
gun.get('foo').get('bar').once()
Will return null or stop working. Notice by amark.
@Lightnet thanks for the report. I think I also saw this with @QVDev the other day when trying to encrypt video frames. Will need to get this fixed.
👍
On Wed, Aug 28, 2019, 12:08 AM Mark Nadal [email protected] wrote:
@Lightnet https://github.com/Lightnet thanks for the report. I think I also saw this with @QVDev https://github.com/QVDev the other day when trying to encrypt video frames. Will need to get this fixed.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amark/gun/issues/783?email_source=notifications&email_token=AAJTIPK4AIUCPQZ6Y3RSEYTQGWQWDA5CNFSM4IHXF4CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5JIO6A#issuecomment-525502328, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJTIPLRR5FNSLUXSPOAYGDQGWQWDANCNFSM4IHXF4CA .
people terribly working around this by saving .put('a'+enc)
then on a read, doing enc = enc.slice(1)
this is a terrible bug that needs to be fixed, I'm just hammered dealing with HackerNoon etc. (which is public data, not encrypted/private). LOVE IT IF SOMEBODY COULD FIX.
I just did ).put(JSON.stringify(value))
and it works as long as you JSON.parse
on subsequent gets . That way you can put anything in including an Object and it'll just work around this and any other potential string parsing issues. If you are paranoid base64 encoded after JSON.stringify()
I do this with lots of databases for similar reasons.
Is this two year old that @amark called 'terrible' still open?
Is this the workaround mentioned by @pszabop? https://github.com/amark/gun/blob/d53d157f19ed6d481f8d3fc3517fff184972140d/examples/basic/private.html#L83-L92