2018-08-23から1日間の記事一覧

ecverify()について

solidityの署名検証で使われるecverifyについて引数などのメモ. ecverifyの引数は以下2つ hash sig 生成方法 hash = web3.sha3("VoteToAlice") sig = web3.eth.sign(account,hash) , accountはmsg.senderと同じく実行者のアドレス 返り値は,アドレス