-
Notifications
You must be signed in to change notification settings - Fork 260
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
bindings/crypto-nodejs: Expose function to sign arbitrary objects #797
Comments
Out of interest, why is this needed? What does the bot-sdk sign with this? |
It signs various requests on behalf of the consumer for ease of use - mostly key uploads at the moment, but potentially arbitrary signing in the future (as part of MSC work). |
Hmm, but |
the bot-sdk exposes a function for calling The eventual plan is to use it for some upcoming MSC work though rather than |
So you're signing keys that the machine didn't provide using keys that the machine did provide? This doesn't sound like something I would like to support. What's the use-case here? What's the MSC about? |
it's the bot-sdk supporting it, not the bindings. We just need the function exposed.
There's plenty of opportunities for device-signed events that haven't been written up yet, like account portability, membership, voip, etc. These are very much scifi at the moment. (this feels all a bit academic considering a PR is already open?) |
Well yes and no, any broken crypto in the bot-sdk will likely end up opening an issue in the rust-sdk repo. Is there a reason why you're not willing to share the use-case? Being mysterious about this feature makes me even more worried and pushes me further towards not supporting this.
Exposing this is a ~3 line patch, it was never about the work that is needed to add support for this, the problem is that this is a feature which might be misused and end up making more trouble than it's worth it. |
It's not exactly context I wish to share on this forum, and isn't really relevant to the request at hand. It's not likely to show up as a bug report on the bindings. |
(I can see how it's extremely questionable for the bot-sdk to offer functions which both use and don't use the OlmMachine though) |
having finally been able to test the PR though, I don't think the bot-sdk needs the signing functions for |
That gives me at least some relief. |
Should I close #803 then? |
*merge, yes ;) |
This was available off the OlmMachine in the old bindings: https://github.com/matrix-org/matrix-rust-sdk-bindings/blob/main/crates/matrix-sdk-crypto-nodejs/src/machine.rs#L375
The text was updated successfully, but these errors were encountered: