aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

feat: reduce the amount of key hashing required to fetch public keys

Open nventuro opened this issue 6 months ago • 1 comments

Closes https://github.com/AztecProtocol/aztec-packages/issues/7825

We now hash each set of public keys once instead of twice by having a smarter oracle function that always returns the correct value, instead of two that we need to call conditionally.

This reduces the gate count of a token transfer by ~3k, though this reduction is expected to be lower and closer to ~1k once #7954 is closed, since we'll then be performing fewer total key read operations.

nventuro avatar Aug 14 '24 20:08 nventuro