feat/rust-client-sdk #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/3/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
initial rust client sdk for steve
Careful pre-merge review found two blocking compatibility issues against the current server protocol:
crates/steve-sdk/src/lib.rsstill targets the old v1 E2P shape (/attestation+/e2p/v1/create_shared_key) and expects attesteduser_datato contain a long-livedverifying_key. Current STEVE uses the v2 session/confirm/request flow and binds the attestation to the session transcript instead. As written, this SDK won't interoperate with currentmainand would reintroduce the older key-exchange trust model.RequestBuilder::sendencrypts the body but posts it directly to the application URL with v1 headers (x-e2p-key,x-e2p-original-method). Current v2 expects encrypted application requests to go through/e2p/v2/request, with the application method/path/headers inside the protected envelope. Posting to the original URL either bypasses the v2 handler or exposes the application path/query on the outer request.I think this should be rebased/rewritten for E2P v2 before merge rather than landing the v1 SDK as-is.
rebased and comments adressed
Closing this PR as the Rust SDK can be reviewed easily (
crates/steve-sdk) as part of https://git.distrust.co/public/steve/pulls/7Pull request closed