随笔分类 - blockchain
摘要:Sudo的环境变量问题 export PATH=$PATH:/usr/bin https://askubuntu.com/questions/338726/cant-execute-terminal-commands-the-command-sudo-is-available-in-usr-bin-
阅读全文
摘要:可能换行符号异样导致无法识别后面的-c命令行,退格删除重新输入即可
阅读全文
摘要:1. 计算latency, transactions per second (TPS)等: https://github.com/Hyperledger-TWGC/tape/issues/146 2. ProposalResponsePayloads from Peers do not match问
阅读全文
摘要:reset the bytes.Buffer https://stackoverflow.com/questions/70302406/failed-unmarshal-for-xxx-invalid-character-after-top-level-value
阅读全文
摘要:从blockchain上拿下来的数据(byte)用自定义的decodeToXXXStruct解析 和json.Unmarshal交替尝试使用 func DecodeToCostInfo(s []byte) CostInfo { p := CostInfo{} dec := gob.NewDecode
阅读全文
摘要:result of a syntax error in the JSON input (likely a missing ", }, or ]). https://stackoverflow.com/questions/27994327/golang-json-unmarshal-unexpecte
阅读全文
摘要:https://stackoverflow.com/questions/28264343/json-unmarshal-return-nil
阅读全文
摘要:https://zhuanlan.zhihu.com/p/109828249
阅读全文
摘要:https://itcn.blog/p/1648461309475448.html
阅读全文
摘要:sudo apt-get install openssl sudo apt-get install libssl-dev https://www.jianshu.com/p/e2f57b224c84
阅读全文
摘要:https://asecuritysite.com/elgamal/go_elgamal https://www.youtube.com/watch?v=DRgeuJl86uY&ab_channel=BillBuchananOBE https://www.youtube.com/watch?v=Ex
阅读全文
摘要:package main import ( "bytes" "compress/gzip" "encoding/gob" "fmt" "io/ioutil" "log" "os") type Person struct { Name string Address Address} type Addr
阅读全文
摘要:自己这里的情况是在chaincode里用了加密,AES RSA等有随机数,每次对同一message加密结果会不一样(为了更加安全)。而hyperledger fabric里每个peer会执行一下chaincode,导致得到的结果不同,不deterministic,就导致proposal respon
阅读全文
摘要:加一个\ https://stackoverflow.com/questions/38977555/error-embedding-n-into-a-string-literal https://stackoverflow.com/questions/56522226/golang-json-unm
阅读全文
摘要:可能原因: 1. struct的字段首字母没有大写。用json转换的话首字母都要大写。 2. 不同smart contract function分布在了不同文件夹。一个smart contract对应一个database,不同function要都写在同一个go文件里。 https://stackov
阅读全文
摘要:Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 23051bda224b17ebd368c152415
阅读全文
摘要:原因:没有添加fabric的环境变量 方法1: 添加环境变量 export PATH=$HOME/hf/fabric-samples/bin:$PATH 测试是否添加成功:fabric-ca-client version https://www.cnblogs.com/chaichai/p/1175
阅读全文
摘要:先运行网络(比如sudo ./byfn.sh up)再运行docker exec -it cli bash
阅读全文

浙公网安备 33010602011771号