Hyperledger Fabric 1.1 Documentation
tutorials leverage the sample code. API Documentation The API documentation for Hyperledger Fabric’s Golang APIs can be found on the godoc site for Fabric [http://godoc.org/github.com/hyperledger/fabric]. x for many of its components. Note Building with Go version 1.8.x is not supported Go [https://golang.org/] - version 1.9.x Given that we will be writing chaincode programs in Go, there are two environment implemented in several programming languages. The currently supported chaincode language is Go [https://golang.org/] with support for Java and other languages coming in future releases. Privacy Depending on0 码力 | 422 页 | 4.84 MB | 1 年前3Hyperledger Fabric 2.0.1 Documentation
delivery conditions, and express it as a smart contract in a programming language such as JavaScript, GOLANG or Java. The legal and technical skills required to convert centuries of legal language into programming Language Hyperledger Fabric uses the Go Programming Language for many of its components. Go [https://golang.org/dl/] version 1.13.x is required. Given that we will be writing chaincode programs in Go, there first time, the script will install the chaincode dependencies. By default, The script installs the Golang version of the fabcar chaincode. However, you can use the language flag, -l, to install the Java0 码力 | 760 页 | 10.21 MB | 1 年前3Hyperledger Fabric 2.0 Documentation
delivery conditions, and express it as a smart contract in a programming language such as JavaScript, GOLANG or Java. The legal and technical skills required to convert centuries of legal language into programming Fabric chaincode lifecycle What is Chaincode? Chaincode is a program, written in Go [https://golang.org], Node.js [https://nodejs.org], or Java [https://java.com/en/] that implements a prescribed interface can see an example of a metadata file below: {"Path":"fabric- samples/chaincode/fabcar/go","Type":"golang","Label":"fabcarv1"} The chaincode is packaged separately by Org1 and Org2. Both organizations use0 码力 | 821 页 | 10.22 MB | 1 年前3Hyperledger Fabric 1.2 Documentation
Language Hyperledger Fabric uses the Go Programming Language for many of its components. Go [https://golang.org/dl/] version 1.10.x is required. Given that we will be writing chaincode programs in Go, there spin up our various Fabric entities and launch a smart contract container for chaincode written in Golang: ./startFabric.sh You also have the option of running this tutorial against chaincode written in database backend to use: goleveldb (default) or couchdb -l- the chaincode language: golang (default) or node -i - the tag to be used to launch the network (defaults to "latest") 0 码力 | 497 页 | 6.59 MB | 1 年前3百度超级链 XuperChain 3.9-e 中文文档
础的可用环境,还会展示 一些基本操作 1. XuperChain环境部署 1.1. 准备环境 XuperChain主要由Golang开发,需要首先准备编译运行的环境 安装go语言编译环境,版本为1.11或更高 下载地址:golang [https://golang.org/dl/] 安装git 下载地址:git [https://git-scm.com/download] 1.2. contractsdk/cpp/example/counter.cc 原理和 Golang合约是一致的 注解 除了 Initialize 外的其他函数,是可以自行定义函数名的,可参考 contractsdk/go/example/counter/counter.go中的具体实例,在之后调用合约时写 明函数名即可 3.2. 部署wasm合约 1. 编译合约 - Golang 注意合约编译环境与源码编译环境一致,编译参数如下 cpus: 1 # 内存大小限制 memory: "1G" # 停止合约的等待秒数,超时强制杀死 stopTimeout: 3 1. 编译合约 - Golang 编译native合约时,只要保持环境和编译XuperChain源码时一致即 可,我们还是以contractsdk/go/example中的counter合约为例 cd contractsd0 码力 | 317 页 | 27.80 MB | 1 年前3百度超级链 XuperChain 3.9 中文文档
础的可用环境,还会展示 一些基本操作 1. XuperChain环境部署 1.1. 准备环境 XuperChain主要由Golang开发,需要首先准备编译运行的环境 安装go语言编译环境,版本为1.11或更高 下载地址:golang [https://golang.org/dl/] 安装git 下载地址:git [https://git-scm.com/download] 1.2. contractsdk/cpp/example/counter.cc 原理和 Golang合约是一致的 注解 除了 Initialize 外的其他函数,是可以自行定义函数名的,可参考 contractsdk/go/example/counter/counter.go中的具体实例,在之后调用合约时写 明函数名即可 3.2. 部署wasm合约 1. 编译合约 - Golang 注意合约编译环境与源码编译环境一致,编译参数如下 cpus: 1 # 内存大小限制 memory: "1G" # 停止合约的等待秒数,超时强制杀死 stopTimeout: 3 1. 编译合约 - Golang 编译native合约时,只要保持环境和编译XuperChain源码时一致即 可,我们还是以contractsdk/go/example中的counter合约为例 cd contractsd0 码力 | 317 页 | 27.80 MB | 1 年前3Hyperledger Fabric 1.3 Documentation
Language Hyperledger Fabric uses the Go Programming Language for many of its components. Go [https://golang.org/dl/] version 1.10.x is required. Given that we will be writing chaincode programs in Go, there spin up our various Fabric entities and launch a smart contract container for chaincode written in Golang: ./startFabric.sh You also have the option of running this tutorial against chaincode written in database backend to use: goleveldb (default) or couchdb -l- the chaincode language: golang (default), node or java -i - the tag to be used to launch the network (defaults 0 码力 | 528 页 | 6.85 MB | 1 年前3Hyperledger Fabric 1.4 Documentation
delivery conditions, and express it as a smart contract in a programming language such as JavaScript, GOLANG or Java. The legal and technical skills required to convert centuries of legal language into programming Language Hyperledger Fabric uses the Go Programming Language for many of its components. Go [https://golang.org/dl/] version 1.11.x is required. Given that we will be writing chaincode programs in Go, there [https://github.com/hyperledger/fabric-chaincode-node/blob/master/fabric-shim/lib/stub.js#L293]. If golang is used as a chaincode language, the client identity chaincode library [https://github.com/hype0 码力 | 678 页 | 10.02 MB | 1 年前3百度超级链 XuperChain 3.8 中文文档
础的可用环境,还会展示 一些基本操作 1. XuperChain环境部署 1.1. 准备环境 XuperChain主要由Golang开发,需要首先准备编译运行的环境 安装go语言编译环境,版本为1.11或更高 下载地址:golang [https://golang.org/dl/] 安装git 下载地址:git [https://git-scm.com/download] 1.2. contractsdk/cpp/example/counter.cc 原理和 Golang合约是一致的 注解 除了 Initialize 外的其他函数,是可以自行定义函数名的,可参考 contractsdk/go/example/counter/counter.go中的具体实例,在之后调用合约时写 明函数名即可 3.2. 部署wasm合约 1. 编译合约 - Golang 注意合约编译环境与源码编译环境一致,编译参数如下 cpus: 1 # 内存大小限制 memory: "1G" # 停止合约的等待秒数,超时强制杀死 stopTimeout: 3 1. 编译合约 - Golang 编译native合约时,只要保持环境和编译XuperChain源码时一致即 可,我们还是以contractsdk/go/example中的counter合约为例 cd contractsd0 码力 | 316 页 | 27.93 MB | 1 年前3百度超级链 XuperChain latest 中文文档
础的可用环境,还会展示 一些基本操作 1. XuperChain环境部署 1.1. 准备环境 XuperChain主要由Golang开发,需要首先准备编译运行的环境 安装go语言编译环境,版本为1.11或更高 下载地址:golang [https://golang.org/dl/] 安装git 下载地址:git [https://git-scm.com/download] 1.2. cpus: 1 # 内存大小限制 memory: "1G" # 停止合约的等待秒数,超时强制杀死 stopTimeout: 3 1. 编译合约 - Golang 编译native合约时,只要保持环境和编译XuperChain源码时一致即 可,我们以 contractsdk/go/example 中的 counter 合约为例 cd contract contractsdk/java/example/counter $ mvn package 3. 部署合约 部署native合约。针对不同语言实现的合约,主要通过 --runtime 字 段进行区分 # 部署golang native合约 $./xchain-cli native deploy --account XC1111111111111111@xuper --fee 15587517 --runtime0 码力 | 316 页 | 24.51 MB | 1 年前3
共 64 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7