Coder Social home page Coder Social logo

education's Introduction

环境依赖:

  • Ubuntu 16.04
  • git
  • docker 17.03.0-ce+
  • docker-compose 1.8
  • Golang 1.11.x+
  • make

安装步骤

  1. 新建目录

    $ mkdir -p $GOPATH/src/github.com/kongyixueyuan.com/
    $ cd $GOPATH/src/github.com/kongyixueyuan.com/
  2. 下载项目

    $ git clone https://github.com/kevin-hf/education.git
  3. 进入fixtures目录启动网络

    $ cd $GOPATH/src/github.com/kongyixueyuan.com/education/fixtures
    $ docker-compose up
  4. 返回至项目根目录

    $ cd $GOPATH/src/github.com/kongyixueyuan.com/education
  5. 编译

    $ go build
  6. 启动服务

    $ ./education
  7. 浏览器访问

    http://localhost:9000
  8. 登录用户名及密码

    用户名:Hanxiaodong
    密码:123456
    
  9. 停止服务

    Ctrl + C 停止Web服务,然后使用如下命令清空:

    $ make clean

education's People

Contributors

kevin-hf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

education's Issues

./education时,peer加入通道失败。

Fabric SDK初始化成功
通道已成功创建,
[fabsdk/fab] 2022/04/13 07:27:55 UTC - peer.(*peerEndorser).sendProposal -> ERRO process proposal failed [rpc error: code = Unavailable desc = transport is closing]
[fabsdk/fab] 2022/04/13 07:27:55 UTC - peer.(*peerEndorser).sendProposal -> ERRO process proposal failed [rpc error: code = Unavailable desc = transport is closing]
Peers加入通道失败: join channel failed: Multiple errors occurred:
SendProposal failed: Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:7051]
SendProposal failed: Transaction processing for endorser [localhost:7151]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:7151]

peer节点启动不了

环境都是一样的,应该是配置文件yml有问题吧,只有peer节点起不来

import cycle not allowed

在编译go build的时候总是报错:import cycle not allowed
package github.com/kongyixueyuan.com/education
imports github.com/kongyixueyuan.com/education/sdkInit
imports github.com/hyperledger/fabric-sdk-go/pkg/client/channel
imports github.com/hyperledger/fabric-sdk-go/pkg/client/channel/invoke
imports github.com/hyperledger/fabric-sdk-go/pkg/client/common/selection/options
imports github.com/hyperledger/fabric-sdk-go/pkg/common/logging
imports github.com/hyperledger/fabric-sdk-go/pkg/core/logging/modlog
imports github.com/stretchr/testify/assert
imports net/http
imports crypto/tls
imports crypto/x509
imports net
imports runtime/cgo
imports runtime/cgo

请问该怎么解决?

请问如何实现不同用户对chaincode操作的访问控制

你好,我正在学习HyperLedger Fabric,之前只接触过公链,发现两者的账户体系有很大区别,非常想弄明白您这个项目中,如何限制不同用户访问chaincode不同接口的机制。在chaincode的源码中未发现相关的处理,望答复,谢谢。

创建通道失败问题

请问在go build之后,执行./education命令。报错如下:
Fabric SDK初始化成功
创建应用通道失败: create channel failed: SendEnvelope failed: calling orderer 'localhost:7050' failed: Orderer Server Status Code: (400) BAD_REQUEST. Description: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1
这个怎么解决呢?

执行./education报错

据指定的资源管理客户端Context创建通道管理客户端失败: failed to create resmgmt client due to context error: user not found
这一步要怎么解决呢

./education 出现错误——请问有人帮忙看一下吗

panic: mismatching message name: got msp.SerializedIdentity, want sdk.msp.SerializedIdentity

goroutine 1 [running]:
google.golang.org/protobuf/internal/impl.legacyLoadMessageDesc({0xd22820?, 0xb71c80}, {0xc0bc4e, 0x1a})
/root/go/pkg/mod/google.golang.org/[email protected]/internal/impl/legacy_message.go:147 +0x4b9
google.golang.org/protobuf/internal/impl.legacyLoadMessageInfo({0xd22820?, 0xb71c80}, {0xc0bc4e, 0x1a})
/root/go/pkg/mod/google.golang.org/[email protected]/internal/impl/legacy_message.go:56 +0xa5
google.golang.org/protobuf/internal/impl.legacyLoadMessageType({0xd22820, 0xb71c80}, {0xc0bc4e, 0x1a})
/root/go/pkg/mod/google.golang.org/[email protected]/internal/impl/legacy_message.go:40 +0xbe
google.golang.org/protobuf/internal/impl.Export.LegacyMessageTypeOf({}, {0xd16d08?, 0x0}, {0xc0bc4e, 0x1a})
/root/go/pkg/mod/google.golang.org/[email protected]/internal/impl/legacy_export.go:33 +0x9d
github.com/golang/protobuf/proto.RegisterType({0xd16d08?, 0x0}, {0xc0bc4e, 0x1a})
/root/go/pkg/mod/github.com/golang/[email protected]/proto/registry.go:180 +0x36
github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/msp.init.0()
/root/go/pkg/mod/github.com/hyperledger/[email protected]/third_party/github.com/hyperledger/fabric/protos/msp/identities.pb.go:142 +0x2e

关于configtx.yaml与crypto-config.yaml

您好!看到您的项目感觉非常感兴趣,想麻烦问一下您关于fixture文件夹里configtx.yaml与crypto-config.yaml这两个文件能不能给一下?万分感谢!

make的时候报错

请问一下,在执行make命令的时候报以下错误:

github.com/kongyixueyuan.com/education/vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util

vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type csr.KeyRequest
vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:132:37: cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest in argument to getBCCSPKeyOpts

github.com/kongyixueyuan.com/education/vendor/github.com/zmap/zlint/lints

vendor/github.com/zmap/zlint/lints/result.go:75:9: undefined: strings.ReplaceAll
Makefile:17: recipe for target 'build' failed
怎么解决?

make的时候报错

github.com/kongyixueyuan.com/education/vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util

vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type csr.KeyRequest
vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:132:37: cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest in argument to getBCCSPKeyOpts

github.com/kongyixueyuan.com/education/vendor/github.com/zmap/zlint/lints

vendor/github.com/zmap/zlint/lints/result.go:75:9: undefined: strings.ReplaceAll
Makefile:17: recipe for target 'build' failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.