摘要: https://stackoverflow.com/questions/28264343/json-unmarshal-return-nil 阅读全文
posted @ 2022-05-04 22:19 铸剑非攻 阅读(137) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-02 23:37 铸剑非攻 阅读(80) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/109828249 阅读全文
posted @ 2022-05-02 23:36 铸剑非攻 阅读(16) 评论(0) 推荐(0)
摘要: https://itcn.blog/p/1648461309475448.html 阅读全文
posted @ 2022-05-02 23:27 铸剑非攻 阅读(63) 评论(0) 推荐(0)
摘要: sudo apt-get install openssl sudo apt-get install libssl-dev https://www.jianshu.com/p/e2f57b224c84 阅读全文
posted @ 2022-05-02 23:26 铸剑非攻 阅读(710) 评论(0) 推荐(0)
摘要: https://asecuritysite.com/elgamal/go_elgamal https://www.youtube.com/watch?v=DRgeuJl86uY&ab_channel=BillBuchananOBE https://www.youtube.com/watch?v=Ex 阅读全文
posted @ 2022-04-29 20:56 铸剑非攻 阅读(40) 评论(0) 推荐(0)
摘要: package main import ( "bytes" "compress/gzip" "encoding/gob" "fmt" "io/ioutil" "log" "os") type Person struct { Name string Address Address} type Addr 阅读全文
posted @ 2022-04-27 23:35 铸剑非攻 阅读(542) 评论(0) 推荐(0)
摘要: 自己这里的情况是在chaincode里用了加密,AES RSA等有随机数,每次对同一message加密结果会不一样(为了更加安全)。而hyperledger fabric里每个peer会执行一下chaincode,导致得到的结果不同,不deterministic,就导致proposal respon 阅读全文
posted @ 2022-04-27 23:23 铸剑非攻 阅读(282) 评论(0) 推荐(0)
摘要: 加一个\ https://stackoverflow.com/questions/38977555/error-embedding-n-into-a-string-literal https://stackoverflow.com/questions/56522226/golang-json-unm 阅读全文
posted @ 2022-04-27 23:18 铸剑非攻 阅读(2060) 评论(0) 推荐(0)
摘要: 可能原因: 1. struct的字段首字母没有大写。用json转换的话首字母都要大写。 2. 不同smart contract function分布在了不同文件夹。一个smart contract对应一个database,不同function要都写在同一个go文件里。 https://stackov 阅读全文
posted @ 2022-04-27 23:16 铸剑非攻 阅读(71) 评论(0) 推荐(0)