-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async codecs #13
Comments
Something like this would be really cool, because it leads towards private-groups... but I'm not sure wether that's the best way to implement them. I am pretty sure though, that the next step is adding support for passing a decryption key link along with a link to an encrypted message... probably want to do that the same as secret blobs: ssbc/ssb-ref#15 (and other issues starting out from there) And also, figuring out exactly what the format for encrypted messages will be. That's the part with the highest technical barrier. hmm. |
My goal was actually to start prototyping a blob content representation (like I'm sure there are more high-performance ways of implementing off-chain messages, but I was hoping I'd be able to prototype it and get a better feel for the ergonomics (and deep-dive some SSB code). Is there a better way of going about this? |
FWIW, here's my current implementation, which works using ssbc/ssb-db@400d561#diff-e91c0d50d79d0bc8fced372dd077f906R72 It's basically just a hacky and synchronous implementation of |
I've been playing around with the unboxing code from secure-scuttlebutt and trying to implement some async unboxing code, but it looks like both the encoder and decoder need to be synchronous functions. Is it possible to use async functions for
encode
anddecode
, or would that be reasonable for me to [attempt to] implement?Thanks!
The text was updated successfully, but these errors were encountered: