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

feat!: add AztecAddress.isValid and make random be valid #10081

Merged
merged 8 commits into from
Nov 22, 2024
Merged

Conversation

nventuro
Copy link
Contributor

Closes #10039

Since #8970 is not yet implemented, invalid addresses cannot be the recipient of e.g. token transfers, since we end up producing points not in the curve and causing MSM to fail. Making random() return valid addresses seems like very reasonable behavior.

@AztecBot
Copy link
Collaborator

AztecBot commented Nov 20, 2024

Docs Preview

Hey there! 👋 You can check your preview at https://6740916de90097ac0fb1a18a--aztec-docs-dev.netlify.app

@AztecProtocol AztecProtocol deleted a comment from github-actions bot Nov 20, 2024
@AztecProtocol AztecProtocol deleted a comment from github-actions bot Nov 21, 2024
@nventuro
Copy link
Contributor Author

I refactored Point a little bit to reuse this YFromX method, and added AztecAddress.toAddressPoint, which simplified some other parts of the encryption flow.

Copy link
Contributor

Changes to public function bytecode sizes

Generated at commit: 444e95cc61393657178cd36e99e5c1a36dbeea83, compared to commit: bbac3d9db1a4cd133c4949c3c25a17a7e39d14a2

🧾 Summary (100% most significant diffs)

Program Bytecode size in bytes (+/-) %
AvmTest::public_dispatch -735 ✅ -1.21%

Full diff report 👇
Program Bytecode size in bytes (+/-) %
AvmTest::public_dispatch 60,027 (-735) -1.21%

@nventuro nventuro merged commit fbdf6b0 into master Nov 22, 2024
66 checks passed
@nventuro nventuro deleted the nv/valid-addr branch November 22, 2024 14:19
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.

Failing token transfer: Assertion failed: failed to solve blackbox function: multi_scalar_mul
3 participants