-
Notifications
You must be signed in to change notification settings - Fork 26
feat(js-client)!: Particle signatures [fixes DXJ-466] #353
Conversation
DXJ-466 Add support for signatures in js-client
Need to implement
|
log.trace('particle signature doesn\'t match with the message. rejecting particle with id: %s', particle.id); | ||
} | ||
} catch (e) { | ||
log.error('error on handling a new incoming message: %j', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.error('error on handling a new incoming message: %j', e); | |
log.error('error on handling an incoming particle: %j', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be very-very nice to print particle.id
here. I guess that would require to try-catch
Particle.from
separately, but it surely worth it.
Being able to associate errors with particle.id
is crucial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, did it. Pls check again.
Co-authored-by: shamsartem <shamsartem@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you disable signature verification for now and we first merge signature generation by js, then signature verification by nox, and finally merge signature verification by js-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From TS side everything looks good. Thanks!
* Particle's signature | ||
*/ | ||
signature?: string; | ||
signature: Uint8Array; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be back to string
in base64, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, why?
Co-authored-by: folex <0xdxdy@gmail.com>
Co-authored-by: folex <0xdxdy@gmail.com>
No description provided.