chore: docs for PrivateAction commitment field

This commit is contained in:
agureev 2026-07-31 00:47:04 +04:00
parent dbcdbb29f3
commit 0e957b5c08
20 changed files with 6 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -156,6 +156,9 @@ impl InputAccountIdentity {
pub struct PrivateAction {
pub nullifier: Nullifier,
pub root: CommitmentSetDigest,
// IMPORTANT: The commitment in the action is not necessarily connected
// to the nullifier in content. That is, the commitment's plaintext is
// not necessarily the updated account state of the nullifier's plaintext.
pub commitment: Commitment,
pub encrypted_post_state: EncryptedAccountData,
}

View File

@ -236,6 +236,9 @@ pub struct PublicActionWithID {
pub struct PrivateAction {
pub nullifier: Nullifier,
pub root: CommitmentSetDigest,
// IMPORTANT: The commitment in the action is not necessarily connected
// to the nullifier in content. That is, the commitment's plaintext is
// not necessarily the updated account state of the nullifier's plaintext.
pub commitment: Commitment,
pub encrypted_post_state: EncryptedAccountData,
}