Closed aakoshh closed 1 year ago
Even though https://github.com/filecoin-project/ref-fvm/issues/890 disables key hashing in the HAMT, it will still calculate hashes for the CID of Nodes. This could be done as a syscall, rather than in Wasm, similarly to I guess how the EVM opcodes are implemented.
For cids, the HAMT delegates to the blockstore. In the case of the actors, that turns out to be
Basically:
Ah, brilliant, thanks for pointing that out @Stebalien. Okay then this ticket makes no sense in the context of the EVM, because all we need is not to call hashing at all. I changed the description to mention other actors instead that will use the HAMT as intended.
Part of https://github.com/filecoin-project/ref-fvm/issues/859
Even though https://github.com/filecoin-project/ref-fvm/issues/890 disables key hashing in the HAMT, ~it will still calculate hashes for the CID of
Node
s.~Normal HAMT usage will still do hashing of keys, which native smart contracts would be using. This could be done as a syscall, rather than in Wasm, similarly to I guess how the EVM opcodes are implemented. See https://github.com/filecoin-project/ref-fvm/issues/374
Hashing would not have any effect on the storage footprint per se, but it's related to performance and overall gas cost. Its effect can be measured as part of the gas model epic and memory expansion epic under Syscall pricing and Execution gas refinement.