Documentation ¶
Index ¶
- func RegisterSetupServiceServer(s *grpc.Server, srv SetupServiceServer)
- type IDProof
- func (*IDProof) Descriptor() ([]byte, []int)
- func (m *IDProof) GetAddr() string
- func (p *IDProof) GetCommitteeNo() int
- func (m *IDProof) GetNonce() []byte
- func (m *IDProof) GetPK() []byte
- func (*IDProof) ProtoMessage()
- func (m *IDProof) Reset()
- func (m *IDProof) String() string
- func (p *IDProof) Verify() bool
- func (m *IDProof) XXX_DiscardUnknown()
- func (m *IDProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IDProof) XXX_Merge(src proto.Message)
- func (m *IDProof) XXX_Size() int
- func (m *IDProof) XXX_Unmarshal(b []byte) error
- type SetupServiceClient
- type SetupServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSetupServiceServer ¶
func RegisterSetupServiceServer(s *grpc.Server, srv SetupServiceServer)
Types ¶
type IDProof ¶
type IDProof struct { Addr string `protobuf:"bytes,1,opt,name=Addr,proto3" json:"Addr,omitempty"` PK []byte `protobuf:"bytes,2,opt,name=PK,proto3" json:"PK,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IDProof is a proof for identity.
func NewIDProof ¶
NewIDProof returns a new proof for identity with PoW.
func (*IDProof) Descriptor ¶
func (*IDProof) GetCommitteeNo ¶
GetCommitteeNo generates the committee number based on the identity proof.
func (*IDProof) ProtoMessage ¶
func (*IDProof) ProtoMessage()
func (*IDProof) XXX_DiscardUnknown ¶
func (m *IDProof) XXX_DiscardUnknown()
func (*IDProof) XXX_Marshal ¶
func (*IDProof) XXX_Unmarshal ¶
type SetupServiceClient ¶
type SetupServiceClient interface {
ReceiveIDProof(ctx context.Context, in *IDProof, opts ...grpc.CallOption) (*empty.Empty, error)
}
SetupServiceClient is the client API for SetupService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSetupServiceClient ¶
func NewSetupServiceClient(cc *grpc.ClientConn) SetupServiceClient
Click to show internal directories.
Click to hide internal directories.