Documentation ¶
Index ¶
- type AnchorPeer
- type ChannelNotifier
- type JoinChannelMessage
- type MessageCryptoService
- type OrgIdentityType
- type PeerIdentityFilter
- type PeerIdentityInfo
- type PeerIdentitySet
- type PeerIdentityType
- type PeerSecureDialOpts
- type PeerSignature
- type PeerSuspector
- type RoutingFilter
- type RoutingFilterFactory
- type SecurityAdvisor
- type SubChannelSelectionCriteria
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorPeer ¶
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 ¶
func (pis PeerIdentitySet) Filter(filter PeerIdentityFilter) PeerIdentitySet
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
Click to show internal directories.
Click to hide internal directories.