Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive a note's randomness from the ephemeral shared secret. #8999

Open
Tracked by #8953
nventuro opened this issue Oct 3, 2024 · 0 comments
Open
Tracked by #8953

Derive a note's randomness from the ephemeral shared secret. #8999

nventuro opened this issue Oct 3, 2024 · 0 comments
Labels
C-aztec.nr Component: Aztec smart contract framework C-pxe Component: PXE (Private eXecution Envrionment) team-fairies Nico's team

Comments

@nventuro
Copy link
Contributor

nventuro commented Oct 3, 2024

Computing the randomness as the hash of the shared secret S (see the new definition for S here: #8969) means the recipient doesn't need to be told what it is, so we can remove it from the logs and save DA costs.

Note that the key changes don't enable this: this optimization had always been available. It also doesn't change the trust assumption re. the recipient, since they're still freely choosing a 'random' value for the esk generation, even if the randomness itself is derived.

While this optimization is nice in theory, it will wreak havoc a bit with our NoteInterface, since we won't simply be able to serialize the data structure and place it in the logs: likely the logs will need to know more about how notes work in order to cooperate during log creation.

@github-project-automation github-project-automation bot moved this to Todo in A3 Oct 3, 2024
@nventuro nventuro added C-aztec.nr Component: Aztec smart contract framework C-pxe Component: PXE (Private eXecution Envrionment) team-fairies Nico's team labels Oct 3, 2024
@sklppy88 sklppy88 self-assigned this Nov 1, 2024
@sklppy88 sklppy88 removed their assignment Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-aztec.nr Component: Aztec smart contract framework C-pxe Component: PXE (Private eXecution Envrionment) team-fairies Nico's team
Projects
Status: Todo
Development

No branches or pull requests

2 participants