matrix-org / matrix-rust-sdk-crypto-nodejs

Apache License 2.0
3 stars 5 forks source link

NodeJS bindings: Support for MSC3983 #29

Open turt2live opened 1 year ago

turt2live commented 1 year ago

(relative priority: low, as of writing)

MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3983 bot-sdk(NodeJS) implementation: https://github.com/turt2live/matrix-bot-sdk/pull/307

I think to make MSC3983 work over the bindings, we'd need a way (function? flag?) to tell the OlmMachine that it shouldn't bother doing /key/upload for anything other than the fallback keys. Then, a function to route the /keys/claim query into the OlmMachine to have it do stuff.

Note that the implementation effort here is effectively to treat all OTKs as "uploaded" then manually track which ones are used in claim responses, followed by which ones are actually used in toDevice messages. The last bit (toDevice messages) is already present.