hlf-tools

command module
v0.0.0-...-6726744 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 15 Imported by: 0

README

Hyperledger Fabric Tools

Extract proto.encode proto.decode compute.update from configtxlator to the rpc service.

RPC Methods

Proto.Encode

Converts a JSON document to protobuf.

// Request params
type ProtoArgs struct {
	MsgName string // The type of protobuf structure to encode to. For example, 'common.Config'.
	Input   []byte // A file containing the JSON document.
}

// result
reply *[]byte // A file to write the output to.
Proto.Decode

Converts a proto message to JSON.

// Request params
type ProtoArgs struct {
	MsgName string // The type of protobuf structure to encode to. For example, 'common.Config'.
	Input   []byte // A file containing the JSON document.
}

// result
reply *[]byte
Compute.Update

Takes two marshaled common.Config messages and computes the config update which transitions between the two.

type ComputeUpdateArgs struct {
	ChannelName string // The name of the channel for this update.
	Origin      []byte // The original config message.
	Updated     []byte // The updated config message.
}

// result
reply *[]byte

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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