elastico

package
v0.0.0-...-6303a67 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func NewIDProof(addr string, pk []byte) *IDProof

NewIDProof returns a new proof for identity with PoW.

func (*IDProof) Descriptor

func (*IDProof) Descriptor() ([]byte, []int)

func (*IDProof) GetAddr

func (m *IDProof) GetAddr() string

func (*IDProof) GetCommitteeNo

func (p *IDProof) GetCommitteeNo() int

GetCommitteeNo generates the committee number based on the identity proof.

func (*IDProof) GetNonce

func (m *IDProof) GetNonce() []byte

func (*IDProof) GetPK

func (m *IDProof) GetPK() []byte

func (*IDProof) ProtoMessage

func (*IDProof) ProtoMessage()

func (*IDProof) Reset

func (m *IDProof) Reset()

func (*IDProof) String

func (m *IDProof) String() string

func (*IDProof) Verify

func (p *IDProof) Verify() bool

Verify verifies if the identity proof is correct.

func (*IDProof) XXX_DiscardUnknown

func (m *IDProof) XXX_DiscardUnknown()

func (*IDProof) XXX_Marshal

func (m *IDProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IDProof) XXX_Merge

func (dst *IDProof) XXX_Merge(src proto.Message)

func (*IDProof) XXX_Size

func (m *IDProof) XXX_Size() int

func (*IDProof) XXX_Unmarshal

func (m *IDProof) XXX_Unmarshal(b []byte) error

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

type SetupServiceServer

type SetupServiceServer interface {
	ReceiveIDProof(context.Context, *IDProof) (*empty.Empty, error)
}

SetupServiceServer is the server API for SetupService service.

Jump to

Keyboard shortcuts

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