trans

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequest

func CreateRequest(user *msp.UserData, request *TransRequest) (data string, txId string, err error)

func NewTranHeader

func NewTranHeader(channelID string, usre *msp.UserData) (fab.TransactionHeader, error)

func ParseRequest

func ParseRequest(data string) error

Types

type TransRequest

type TransRequest struct {
	ChannelId    string
	ChaincodeId  string
	Fcn          string
	Args         [][]byte
	TransientMap map[string][]byte
}

func (*TransRequest) GetRequest

func (t *TransRequest) GetRequest() *fab.ChaincodeInvokeRequest

type TransactionHeader

type TransactionHeader struct {
	// contains filtered or unexported fields
}

TransactionHeader contains metadata for a transaction created by the SDK.

func (*TransactionHeader) ChannelID

func (th *TransactionHeader) ChannelID() string

ChannelID returns the transaction's target channel identifier.

func (*TransactionHeader) Creator

func (th *TransactionHeader) Creator() []byte

Creator returns the transaction creator's identity bytes.

func (*TransactionHeader) Nonce

func (th *TransactionHeader) Nonce() []byte

Nonce returns the transaction's generated nonce.

func (*TransactionHeader) TransactionID

func (th *TransactionHeader) TransactionID() fab.TransactionID

TransactionID returns the transaction's computed identifier.

Jump to

Keyboard shortcuts

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