摘要:
> 注意,以太坊智能合约里面采用的是公钥非紧凑类型```def gen_secrets_pair(): """ 得到公钥和私钥 :return: """ from coincurve import PrivateKey p = PrivateKey() return p.to_hex(), p.public_key.format(compressed=Fa... 阅读全文
posted @ 2017-12-19 19:38
白云辉
阅读(1574)
评论(0)
推荐(0)
摘要:
```pragma solidity ^0.4.16;contract Metadata { // 十六进制字符串转换成bytes function hexStr2bytes(string data)returns (bytes){ uint _ascii_0 = 48; uint _ascii_A = 65; uint _ascii_a = ... 阅读全文
posted @ 2017-12-19 16:35
白云辉
阅读(2983)
评论(1)
推荐(0)

浙公网安备 33010602011771号