stackrlabs / succinct-residency-exps

0 stars 0 forks source link

Fix `leaves` type in Merklize #29

Closed aashutoshrathi closed 3 days ago

aashutoshrathi commented 5 days ago

Description

Right now the leaves are of type Vec<Vec<u8>>, it can be Vec<[u8; n]>

0xRampey commented 4 days ago

The leaves we pass in can have arbitrary sizes, they are hashed inside the zkVM before being merkelized.

aashutoshrathi commented 4 days ago

ah! should we fix sizes or make them ints?

0xRampey commented 4 days ago

We can fix size to 32 bytes perhaps. Arbitrary size is more practical use case for merkelization tho

aashutoshrathi commented 3 days ago

We do have this fixed now