Skip to content

如何用web3j把 web3.utils.soliditySha3 实现出来  #31

@dappbird

Description

@dappbird

给个例子
web3.utils.soliditySha3({t: 'string', v: 'Hello!%'}, {t: 'int8', v:-23}, {t: 'address', v: '0x85F43D8a49eeB85d32Cf465507DD71d507100C1d'});

"0xa13b31627c1ed7aaded5aecec71baf02fe123797fffd45e662eac8e06fbe4955"

http://cw.hubwiz.com/card/c/web3.js-1.0/1/8/8/

这个就是新加的 签名那个

要对访问合约做身份验证

这个已经后台做好了。 我现在是要把参数做sha3的计算

在做sha3计算的时候, 我需要用web3j来实现 web3js里面的web3.utils.soliditySha3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions