Documentation ¶
Index ¶
Constants ¶
View Source
const ( //roletypember标识组织的成员标识 RoleTypeMember = RoleType("MEMBER") //roletypeer标识组织的对等身份 RoleTypePeer = RoleType("PEER") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyEndorsementPolicy ¶
type KeyEndorsementPolicy interface { // Policy() ([]byte, error) // // //在第一个参数中指定。在其他方面,期望的角色 //取决于通道的配置:如果它支持节点OU,则为 // //如果不是的话。 AddOrgs(roleType RoleType, organizations ...string) error // // DelOrgs(organizations ...string) // ListOrgs() []string }
func NewStateEP ¶
func NewStateEP(policy []byte) (KeyEndorsementPolicy, error)
type RoleTypeDoesNotExistError ¶
type RoleTypeDoesNotExistError struct {
RoleType RoleType
}
func (*RoleTypeDoesNotExistError) Error ¶
func (r *RoleTypeDoesNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.