Skip to content

feat: Compute random action for session proofs#377

Merged
paolodamico merged 11 commits intomainfrom
takis/compute-session-action
Feb 17, 2026
Merged

feat: Compute random action for session proofs#377
paolodamico merged 11 commits intomainfrom
takis/compute-session-action

Conversation

@Takaros999
Copy link
Contributor

@Takaros999 Takaros999 commented Feb 9, 2026

This PR generates the action deterministically based on the request nonce. The idea behind this was to have the same action per request.

Awaiting feedback from @paolodamico

@Takaros999 Takaros999 marked this pull request as ready for review February 9, 2026 12:19
@Takaros999 Takaros999 requested a review from a team as a code owner February 9, 2026 12:19
match self.action {
Some(action) => action,
None => todo!("Not ready"),
None => FieldElement::from_arbitrary_raw_bytes(self.nonce.to_string().as_bytes()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I'm not sure this is a good idea, this delegates the entropy to the RP and lets the RP somewhat influence the nullifier. it may be fine, but best to be on the safe side with a simple random field element generation here

…-action

# Conflicts:
#	crates/request/Cargo.toml
@paolodamico paolodamico merged commit 1256480 into main Feb 17, 2026
17 checks passed
@paolodamico paolodamico deleted the takis/compute-session-action branch February 17, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants