草庐IT

HyperLedger

全部标签

Go 构建失败, fatal error : rocksdb/c. h

我正在测试项目obc-peer.我很困惑我应该从哪里获得github.com/****、golang.org/****、google.golang.org/****、google/****。我错了$GOPATH吗?这是gobuild和goenv的日志:希望有人能帮帮我......大神们vagrant@vagrant-ubuntu-trusty-64:/opt/gopath$goenvGOARCH="amd64"GOBIN=""GOEXE=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOOS="linux"GOPATH="/opt/gopath"GORACE=

Go 构建失败, fatal error : rocksdb/c. h

我正在测试项目obc-peer.我很困惑我应该从哪里获得github.com/****、golang.org/****、google.golang.org/****、google/****。我错了$GOPATH吗?这是gobuild和goenv的日志:希望有人能帮帮我......大神们vagrant@vagrant-ubuntu-trusty-64:/opt/gopath$goenvGOARCH="amd64"GOBIN=""GOEXE=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOOS="linux"GOPATH="/opt/gopath"GORACE=

go - 注册成员(member)请求因签名验证失败

当我尝试注册“admin”用户时,第二次调用CreateCertificatePair失败并显示“签名验证失败”消息。顺便说一句,我从eca_test.go复制了enrollUser函数。membersrvc/ca包下的那些测试都可以通过。//Phase2oftheprotocolspi:=ecies.NewSPI()eciesKey,err:=spi.NewPrivateKey(nil,encPriv)iferr!=nil{returnerr}ecies,err:=spi.NewAsymmetricCipherFromPublicKey(eciesKey)iferr!=nil{ret

go - 注册成员(member)请求因签名验证失败

当我尝试注册“admin”用户时,第二次调用CreateCertificatePair失败并显示“签名验证失败”消息。顺便说一句,我从eca_test.go复制了enrollUser函数。membersrvc/ca包下的那些测试都可以通过。//Phase2oftheprotocolspi:=ecies.NewSPI()eciesKey,err:=spi.NewPrivateKey(nil,encPriv)iferr!=nil{returnerr}ecies,err:=spi.NewAsymmetricCipherFromPublicKey(eciesKey)iferr!=nil{ret

go - 无法在 Ubuntu 终端上从我自己的 github 运行 hyperledger 链码

我可以从以下官方路径运行链码:https://github.com/ibm-blockchain/learn-chaincode/finishedgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02#peerchaincodedeploy-pgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02-c'{"Function":"init","Args":["a","100","b","200"]}'但无法从我自己

go - 无法在 Ubuntu 终端上从我自己的 github 运行 hyperledger 链码

我可以从以下官方路径运行链码:https://github.com/ibm-blockchain/learn-chaincode/finishedgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02#peerchaincodedeploy-pgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02-c'{"Function":"init","Args":["a","100","b","200"]}'但无法从我自己

go - 如何更新结构的数据并将其保存在链代码中?

以下是链代码的摘录,我在其中创建了一个保存基本信息的客户结构。我希望编写一个更新函数,首先使用UID(args[0])获取客户的详细信息,然后根据函数更新的第二个参数附加/更新国家/地区,最后保存更新的数据。我究竟做错了什么?另外我想知道Marshal和Unmarshal的概念。typeCustomerstruct{UIDstringNamestringAddressstruct{StreetNostringCountrystring}}func(t*SimpleChaincode)update(stubshim.ChaincodeStubInterface,args[]string)

go - 如何更新结构的数据并将其保存在链代码中?

以下是链代码的摘录,我在其中创建了一个保存基本信息的客户结构。我希望编写一个更新函数,首先使用UID(args[0])获取客户的详细信息,然后根据函数更新的第二个参数附加/更新国家/地区,最后保存更新的数据。我究竟做错了什么?另外我想知道Marshal和Unmarshal的概念。typeCustomerstruct{UIDstringNamestringAddressstruct{StreetNostringCountrystring}}func(t*SimpleChaincode)update(stubshim.ChaincodeStubInterface,args[]string)

go - 如何查询具有部分键值的表

我正在使用hyperledger(v0.6)表并具有如下结构;varcolumnDefsTableOne[]*shim.ColumnDefinitioncolumnOneTableOneDef:=shim.ColumnDefinition{Name:"RefNum",Type:shim.ColumnDefinition_STRING,Key:true}columnTwoTableOneDef:=shim.ColumnDefinition{Name:"Amount",Type:shim.ColumnDefinition_STRING,Key:false}columnThreeTableO

go - 如何查询具有部分键值的表

我正在使用hyperledger(v0.6)表并具有如下结构;varcolumnDefsTableOne[]*shim.ColumnDefinitioncolumnOneTableOneDef:=shim.ColumnDefinition{Name:"RefNum",Type:shim.ColumnDefinition_STRING,Key:true}columnTwoTableOneDef:=shim.ColumnDefinition{Name:"Amount",Type:shim.ColumnDefinition_STRING,Key:false}columnThreeTableO