Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dappbird opened this issue Aug 23, 2022 · 1 comment
Open

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

dappbird opened this issue Aug 23, 2022 · 1 comment

Comments

@dappbird
Copy link

给个例子
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

@Developmc
Copy link
Contributor

意思是用web3 java代码实现 js的 web3.utils.soliditySha3 方法?
这个得你去看看java库有没有相关的实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants