stakwork / sphinx-rs

Rust crates for Sphinx Chat
0 stars 0 forks source link

extracting State from LSS_BYTES for mobile signing #22

Closed Evanfeenstra closed 11 months ago

Evanfeenstra commented 11 months ago

When a mobile VLS call produces mutations, it returns 3 things to the app:

But the app also needs the raw Mutations Vec<(String, (u6, VBec<u8>))> from the lss_bytes, to persist locally.

Is it possible to extract the Mutations deterministically from the lss_bytes (which contains the LssMsg enum wrapper, and the signer_hmac). Theoretically we should be able to slice some number of bytes of the beginning (and end?) to get the Mutations...