fpcclientsdk

package
v1.0.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: Apache-2.0, MIT Imports: 0 Imported by: 0

README

FPC Client SDK for Go

The FPC Client SDK for Go builds on top of the Fabric Client SDK Go. For more documentation, see godoc and our sample applications which illustrate the use of the FPC Client SDK. The FPC Helloworld Tutorial also demonstrates the usage of the FPC Client SDK for Go.

Testing

Before running tests, please make sure you have built the chaincode samples (i.e., run make -C $FPC_PATH/samples/chaincode) as they are used for testing.

Documentation

Overview

Package fpcclientsdk enables Go developers to build solutions that interact with FPC chaincode for Hyperledger Fabric. The FPC Client SDK builds on top of the Fabric Client SDK Go (https://godoc.org/github.com/hyperledger/fabric-sdk-go) and provides FPC specific functionality such as enclave initialization and secure interaction with a FPC chaincode. The main goal is to ease the interaction with a FPC chaincode and provide similar experience as offered by normal chaincode interaction.

Packages for end developer usage

pkg/client/resmgmt: Provides resource management capabilities such as installing FPC chaincode. Reference: https://godoc.org/github.com/hyperledger/fabric-private-chaincode/client_sdk/go/pkg/client/resmgmt

pkg/gateway: Enables Go developers to build client applications using the Hyperledger Fabric programming model. Reference: https://godoc.org/github.com/hyperledger/fabric-private-chaincode/client_sdk/go/pkg/gateway

Usage samples

$FPC_PATH/samples/application: Illustrates the use of the FPC Client SDK. The sample applications can be used with our test-network `$FPC_PATH/samples/deployment/test-network`.

Directories

Path Synopsis
pkg
client/resmgmt
Package resmgmt provides FPC specific chaincode management functionality.
Package resmgmt provides FPC specific chaincode management functionality.
core/contract
Package contract implements the client-side FPC protocol
Package contract implements the client-side FPC protocol
core/contract/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
core/lifecycle
Package lifecycle provides FPC specific chaincode management functionality.
Package lifecycle provides FPC specific chaincode management functionality.
core/lifecycle/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
fab/ccpackager
Package ccpackager provides functionality to package a FPC chaincode.
Package ccpackager provides functionality to package a FPC chaincode.
gateway
Package gateway enables interaction with a FPC chaincode.
Package gateway enables interaction with a FPC chaincode.
sgx
Package sgx provides Intel SGX specific functionality.
Package sgx provides Intel SGX specific functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL