-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SEA authentication on node.js errors #579
Comments
? doing
Is something I want to support (I know it is possible), but haven't fixed yet. |
@amark
|
Rerunning the previous test gives an error for the registering a user with |
Hmm, I cleared my local storage and tried the test again... now I'm seeing this error and think it's coming from the
|
I experience this error for what appears to be all SEA data on notabug.io when I load SEA in my nodejs peers. I've not tried creating users in nodejs |
@jadbox I'd love to continue this maybe on Tuesday, as a call or something? We made good progress first time around. Else I'm trying to improve RAD because so much of SEA depends upon storage working properly anyways. But I want to prioritize SEA if I can get involvement. |
@amark awesome, just msg on Gitter to set up a time! Excited to hear the drive to get Sea ramped up. |
@jadbox @go1dfish partial fix for this was released in Signing signatures in NodeJS with SEA needed the same fix verifying required, a successful patch for this test has been made in the UPCOMING This wound up being a problem with anvilresearch/webcrypto#68 . We have switched to Going to close, ahead of the release. ++ @jadbox how are things going??? We now have the Internet Archive (Wayback Machine parent) decentralized on us (they are #265 most popular website in the world! https://news.ycombinator.com/item?id=17685682 ) :D :D :D |
Attempting to login in nodejs I consistently get: Auth attempt failed! Reason: Failed to decrypt secret! 0/1 I've tried multiple accounts that all work in the browser.
Consistently I get:
|
@go1dfish there are 3 errors happening. If you clear your NodeJS storage, you get
|
If you stick with promises, you probably want a way to fail or succeed in a way that indicates you've confirmed no local data, and provide the option to wait for remote data. That seems to be the only sane approach for promises here (as opposed to on), in the case you want to wait for remote data you probably need an easy way to timeout as well has been my experience |
@amark Ahh, that makes sense now. In my mind I always thought and am now proven wrong, that since we pass the callback through, even if the ack comes back with 0, if data is received later the callback will be called with the data now provided. But now I realize the timeout actually removes the hook again, instead of keeping it in. (Which makes sense, since you might end up getting data from all the different peers and would keep doing your logic over and over again, for no reason...) But .on seems to work in that manner, where you might receive multiple acks from storage and from other peers, or is it the same way? |
Thanks @go1dfish , good thoughts. @mhelander yeah: With @trust/webcrypto this:
and with
|
Calling user.create(...) successfully and then calling
.auth(....)
fails with the console log error"NO! Unverified data"
. It seems like there's a problem with the signatures in a pure nodejs environment. My tests are running in a node environment as well (not browser).The text was updated successfully, but these errors were encountered: