AztecProtocol / aztec-packages

Apache License 2.0
172 stars 178 forks source link

[keys] Prevent registration of invalid keys #7515

Open nventuro opened 1 month ago

nventuro commented 1 month ago

We should disallow accounts from registering keys that are not valid points on the curve, since this is always a mistake that will result in notes not being created.

Look for "TODO(#7515)" in the codebase.

nventuro commented 1 month ago

Now that private storage slots are also points (with https://github.com/AztecProtocol/aztec-packages/pull/7437), this consideration extends to them.