-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
@appcypher and I had some ideas on how we could improve the share API.
Consider this a list of "may or may not be a good idea".
- We should probably provide a (feature-gated) implementation of
ExchangeKey. Feature-gated, because pulling in the RSA dependency may be undesired for WASM, where we might instead want to simply depend on WebCrypto (but in that case this needs re-thinking anyways, since that abstraction would require passing in an object from the JS side, not a static trait). RsaErrorshould probably be renamed to something more abstract when we add other protocols (e.g. Ed25519)- We should compute
find_current_share_counterfor the user (by default, at least). It can be made faster by caching previous results, but that doesn't mean the default case needs to be a more complicated API. We probably don't need theThis struct was deleted.Sharestruct. Thesharefunction is just fine.- Perhaps it's also possible to remove the
receiverandsendermodules, and simply merge them all into thesharemodule.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels