client

package
v0.0.0-...-d863974 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(route string) string

func Commit

func Commit(_orderer model.Node, transactionBytes []byte) string

func CommitProposalAndSign

func CommitProposalAndSign(proposal string, signedBytes []byte, endorsers []model.Node, signer golang.Crypto) []byte

func GetProposalSigned

func GetProposalSigned(proposal string, signer *golang.Crypto) (signedBytes []byte)

func Propose

func Propose(proposal string, signedBytes []byte, endorsers []model.Node) (proposalResponses []*peer.ProposalResponse, payload []byte)

func QueryProposal

func QueryProposal(proposal string, signedBytes []byte, endorsers []model.Node) (result string)

func ReadPEMFile

func ReadPEMFile(file string) []byte

Types

type Eventer

type Eventer struct {
	event.Eventer
}

func EventerFrom

func EventerFrom(node model.Node) Eventer

func (Eventer) WaitForTx

func (e Eventer) WaitForTx(channel, txid string, signer *golang.Crypto) (txStatus string)

type GetTransactionByIDResult

type GetTransactionByIDResult struct {
	Transaction *common.Payload

	Validation string
}

func (GetTransactionByIDResult) FromString

Jump to

Keyboard shortcuts

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