api

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorPeer

type AnchorPeer struct {
	Host string
	Port int
}

type ChannelNotifier

type ChannelNotifier interface {
	JoinChannel(joinMsg JoinChannelMessage, channelID common.ChannelID)
}

type JoinChannelMessage

type JoinChannelMessage interface {
	SequenceNumber() uint64

	Members() []OrgIdentityType

	AnchorPeersOf(org OrgIdentityType) []AnchorPeer
}

type MessageCryptoService

type MessageCryptoService interface {
	GetPKIidOfCert(peerIdentity PeerIdentityType) common.PKIidType

	VerifyBlock(channelID common.ChannelID, seqNum uint64, block *cb.Block) error

	Sign(msg []byte) ([]byte, error)

	Verify(peerIdentity PeerIdentityType, signature, message []byte) error

	VerifyByChannel(channelID common.ChannelID, peerIdentity PeerIdentityType, signature, message []byte) error

	ValidateIdentity(peerIdentity PeerIdentityType) error

	Expiration(peerIdentity PeerIdentityType) (time.Time, error)
}

type OrgIdentityType

type OrgIdentityType []byte

type PeerIdentityFilter

type PeerIdentityFilter func(info PeerIdentityInfo) bool

type PeerIdentityInfo

type PeerIdentityInfo struct {
	PKIId        common.PKIidType
	Identity     PeerIdentityType
	Organization OrgIdentityType
}

type PeerIdentitySet

type PeerIdentitySet []PeerIdentityInfo

func (PeerIdentitySet) ByID

func (pis PeerIdentitySet) ByID() map[string]PeerIdentityInfo

func (PeerIdentitySet) ByOrg

func (pis PeerIdentitySet) ByOrg() map[string]PeerIdentitySet

func (PeerIdentitySet) Filter

type PeerIdentityType

type PeerIdentityType []byte

type PeerSecureDialOpts

type PeerSecureDialOpts func() []grpc.DialOption

type PeerSignature

type PeerSignature struct {
	Signature    []byte
	Message      []byte
	PeerIdentity PeerIdentityType
}

type PeerSuspector

type PeerSuspector func(identity PeerIdentityType) bool

type RoutingFilter

type RoutingFilter func(peerIdentity PeerIdentityType) bool

type RoutingFilterFactory

type RoutingFilterFactory interface {
	Peers(common.ChannelID, SubChannelSelectionCriteria) RoutingFilter
}

type SecurityAdvisor

type SecurityAdvisor interface {
	OrgByPeerIdentity(PeerIdentityType) OrgIdentityType
}

type SubChannelSelectionCriteria

type SubChannelSelectionCriteria func(signature PeerSignature) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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