0

I'm a beginner and I need to sign the data with metamask,Find the document https://learnblockchain.cn/docs/web3js-0.2x/web3.eth.html#sign

then In the browser's debug desk ,i try run

web3.eth.sign('0xB2b63803188fb6efafD83FE67bec878eD4d8940B','data',console.log)

metamask responded to my request,and popped up the prompt

But after I confirm it,No return value

If anyone knows, please help me,thanks

1

1 Answer 1

0

ok, i know

Signature information of eth.sign needs to be treated with web3.sha3

but personal.sign don't need it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.