tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
54 stars 41 forks source link

Specify the hash type of `Cell.hash()` and `Slice.hash()` functions #280

Closed novusnota closed 2 months ago

novusnota commented 3 months ago

https://docs.ton.org/learn/tvm-instructions/instructions doesn't necessarily help, HASHCU and HASHSU, which are instructions used in those functions respectively, don't state anything about the nature of the said hash. Just some 256-bit hash ¯\_(ツ)_/¯

Looked at TON sources, but cannot make sense of them yet :)

As discussed in Tact chat

anton-trunov commented 3 months ago

https://docs.ton.org/learn/tvm-instructions/instructions doesn't necessarily help

Could you please open an issue about that in the ton-docs repo and link it here?

novusnota commented 3 months ago

https://github.com/ton-community/ton-docs/issues/645

anton-trunov commented 2 months ago

https://github.com/tonstack/ton3-core/blob/main/src/boc/cell.ts#L396

anton-trunov commented 2 months ago

and also this https://github.com/ton-org/ton-core/blob/main/src/boc/cell/wonderCalculator.ts#L21