1

我正在阅读一份智能合约,并遇到了这些功能。我无法理解它。有人可以解释这些功能的作用吗?

uECC_decompress()
rhash_keccak_256_init()
rhash_keccak_update()
rhash_keccak_final()
4

1 回答 1

0

It sounds like you must have been reading either the eosio.unregd or eosio.lost contracts.

  • uECC_decompress: Decompress a compressed public key
  • rhash_keccak_256_init(), rhash_keccak_update(), rhash_keccak_final(): initialize, add data to, and compute a Keccak256 hash.

EDIT: Neither of these are a part of CDT. They are external libraries pulled into the project. Check the ecc folder in both to see the implementations.

于 2019-05-18T12:59:58.467 回答