tweedegolf / irmars

Rust library for interfacing with irma servers.
Other
4 stars 1 forks source link

Missing field "nextSession" in SessionResult #5

Open leonbotros opened 3 years ago

leonbotros commented 3 years ago

https://github.com/tweedegolf/irmars/blob/44f5cafcf35c50fa0463179d4065cfded2313450/src/sessionresult.rs#L67

A new feature of the IRMA server that allows for session chaining also emits a possible nextSession field in the sessionResult, see https://irma.app/docs/irma-protocol/#the-irma-server-s-response.

In Rust we could add:

#[serde(rename = "nextSession")]
next_session: Option<SessionToken>,
leonbotros commented 3 years ago

I linked the wrong documentation. In the requestor result, there is also a nextSession, which holds the token to retrieve the next session's result, I think it's not documented anywhere yet.

See, https://github.com/privacybydesign/irmago/blob/108b18507f3b25432dc10b1dfb58f3834bac4600/server/api.go#L45.

davidv1992 commented 2 years ago

Documentation is at https://irma.app/docs/chained-sessions/. I will look into this next time I have some time to spend with this project.