摘要: 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)