Documentation ¶
Overview ¶
Package protocol is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Profile SignedProfileOperation SignedServerMessage BackendMessage ClientMessage ClientReply
Index ¶
- Constants
- Variables
- func Frame(msg []byte) []byte
- func PBEncode(msg proto.Message) []byte
- func Pad(msg []byte, l int) []byte
- func Unpad(msg []byte) []byte
- type BackendMessage
- func (this *BackendMessage) Equal(that interface{}) bool
- func (m *BackendMessage) GetDownload() *BackendMessage_MessageID
- func (m *BackendMessage) GetSignedServerMessage() *SignedServerMessage
- func (m *BackendMessage) GetSubscribe() bool
- func (m *BackendMessage) Marshal() (data []byte, err error)
- func (m *BackendMessage) MarshalTo(data []byte) (n int, err error)
- func (*BackendMessage) ProtoMessage()
- func (m *BackendMessage) Reset()
- func (m *BackendMessage) Size() (n int)
- func (m *BackendMessage) String() string
- func (m *BackendMessage) Unmarshal(data []byte) error
- type BackendMessage_MessageID
- func (this *BackendMessage_MessageID) Equal(that interface{}) bool
- func (m *BackendMessage_MessageID) GetPhase() []uint64
- func (m *BackendMessage_MessageID) GetRound() uint64
- func (m *BackendMessage_MessageID) GetServer() []uint64
- func (m *BackendMessage_MessageID) Marshal() (data []byte, err error)
- func (m *BackendMessage_MessageID) MarshalTo(data []byte) (n int, err error)
- func (*BackendMessage_MessageID) ProtoMessage()
- func (m *BackendMessage_MessageID) Reset()
- func (m *BackendMessage_MessageID) Size() (n int)
- func (m *BackendMessage_MessageID) String() string
- func (m *BackendMessage_MessageID) Unmarshal(data []byte) error
- type ClientMessage
- func (this *ClientMessage) Equal(that interface{}) bool
- func (m *ClientMessage) GetInviteCode() []byte
- func (m *ClientMessage) GetModifyProfile() *SignedProfileOperation
- func (m *ClientMessage) GetPadReplyTo() uint64
- func (m *ClientMessage) GetPeekState() bool
- func (m *ClientMessage) GetResolveName() []byte
- func (m *ClientMessage) Marshal() (data []byte, err error)
- func (m *ClientMessage) MarshalTo(data []byte) (n int, err error)
- func (*ClientMessage) ProtoMessage()
- func (m *ClientMessage) Reset()
- func (m *ClientMessage) Size() (n int)
- func (m *ClientMessage) String() string
- func (m *ClientMessage) Unmarshal(data []byte) error
- type ClientReply
- func (this *ClientReply) Equal(that interface{}) bool
- func (m *ClientReply) GetLookupNodes() []*ClientReply_MerklemapNode
- func (m *ClientReply) GetStateConfirmations() []*SignedServerMessage
- func (m *ClientReply) GetStatus() ClientReply_Status
- func (m *ClientReply) Marshal() (data []byte, err error)
- func (m *ClientReply) MarshalTo(data []byte) (n int, err error)
- func (*ClientReply) ProtoMessage()
- func (m *ClientReply) Reset()
- func (m *ClientReply) Size() (n int)
- func (m *ClientReply) String() string
- func (m *ClientReply) Unmarshal(data []byte) error
- type ClientReply_MerklemapNode
- func (this *ClientReply_MerklemapNode) Equal(that interface{}) bool
- func (m *ClientReply_MerklemapNode) GetLeftChildHash() []byte
- func (m *ClientReply_MerklemapNode) GetRightChildHash() []byte
- func (m *ClientReply_MerklemapNode) GetSubstring() []byte
- func (m *ClientReply_MerklemapNode) GetSubstringBitsInLastByte() uint64
- func (m *ClientReply_MerklemapNode) GetValue() []byte
- func (m *ClientReply_MerklemapNode) Marshal() (data []byte, err error)
- func (m *ClientReply_MerklemapNode) MarshalTo(data []byte) (n int, err error)
- func (*ClientReply_MerklemapNode) ProtoMessage()
- func (m *ClientReply_MerklemapNode) Reset()
- func (m *ClientReply_MerklemapNode) Size() (n int)
- func (m *ClientReply_MerklemapNode) String() string
- func (m *ClientReply_MerklemapNode) Unmarshal(data []byte) error
- type ClientReply_Status
- type Profile
- func (this *Profile) Equal(that interface{}) bool
- func (m *Profile) ExtensionMap() map[int32]proto.Extension
- func (*Profile) ExtensionRangeArray() []proto.ExtensionRange
- func (m *Profile) GetExpirationTime() uint64
- func (m *Profile) GetSignatureKey() *Profile_PublicKey
- func (m *Profile) GetVersion() uint64
- func (m *Profile) Marshal() (data []byte, err error)
- func (m *Profile) MarshalTo(data []byte) (n int, err error)
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) Size() (n int)
- func (m *Profile) String() string
- func (m *Profile) Unmarshal(data []byte) error
- type Profile_PublicKey
- func (this *Profile_PublicKey) Equal(that interface{}) bool
- func (m *Profile_PublicKey) GetEd25519() []byte
- func (pk Profile_PublicKey) ID() uint64
- func (m *Profile_PublicKey) Marshal() (data []byte, err error)
- func (m *Profile_PublicKey) MarshalTo(data []byte) (n int, err error)
- func (*Profile_PublicKey) ProtoMessage()
- func (m *Profile_PublicKey) Reset()
- func (m *Profile_PublicKey) Size() (n int)
- func (m *Profile_PublicKey) String() string
- func (m *Profile_PublicKey) Unmarshal(data []byte) error
- func (pk Profile_PublicKey) VerifySignature(tag string, msg, sig []byte) error
- type SignedProfileOperation
- func (this *SignedProfileOperation) Equal(that interface{}) bool
- func (m *SignedProfileOperation) GetNewProfileSignature() []byte
- func (m *SignedProfileOperation) GetOldProfileSignature() []byte
- func (m *SignedProfileOperation) GetProfileOperation() []byte
- func (m *SignedProfileOperation) Marshal() (data []byte, err error)
- func (m *SignedProfileOperation) MarshalTo(data []byte) (n int, err error)
- func (*SignedProfileOperation) ProtoMessage()
- func (m *SignedProfileOperation) Reset()
- func (m *SignedProfileOperation) Size() (n int)
- func (m *SignedProfileOperation) String() string
- func (m *SignedProfileOperation) Unmarshal(data []byte) error
- type SignedProfileOperation_ProfileOperationT
- func (this *SignedProfileOperation_ProfileOperationT) Equal(that interface{}) bool
- func (m *SignedProfileOperation_ProfileOperationT) GetName() []byte
- func (m *SignedProfileOperation_ProfileOperationT) GetNewProfile() []byte
- func (m *SignedProfileOperation_ProfileOperationT) Marshal() (data []byte, err error)
- func (m *SignedProfileOperation_ProfileOperationT) MarshalTo(data []byte) (n int, err error)
- func (*SignedProfileOperation_ProfileOperationT) ProtoMessage()
- func (m *SignedProfileOperation_ProfileOperationT) Reset()
- func (m *SignedProfileOperation_ProfileOperationT) Size() (n int)
- func (m *SignedProfileOperation_ProfileOperationT) String() string
- func (m *SignedProfileOperation_ProfileOperationT) Unmarshal(data []byte) error
- type SignedServerMessage
- func (this *SignedServerMessage) Equal(that interface{}) bool
- func (m *SignedServerMessage) GetMessage() []byte
- func (m *SignedServerMessage) GetSignature() []byte
- func (m *SignedServerMessage) Marshal() (data []byte, err error)
- func (m *SignedServerMessage) MarshalTo(data []byte) (n int, err error)
- func (*SignedServerMessage) ProtoMessage()
- func (m *SignedServerMessage) Reset()
- func (m *SignedServerMessage) Size() (n int)
- func (m *SignedServerMessage) String() string
- func (m *SignedServerMessage) Unmarshal(data []byte) error
- type SignedServerMessage_ServerMessage
- func (this *SignedServerMessage_ServerMessage) Equal(that interface{}) bool
- func (m *SignedServerMessage_ServerMessage) GetHashOfHashes() []byte
- func (m *SignedServerMessage_ServerMessage) GetHashOfOperations() []byte
- func (m *SignedServerMessage_ServerMessage) GetHashOfState() []byte
- func (m *SignedServerMessage_ServerMessage) GetOperations() []byte
- func (m *SignedServerMessage_ServerMessage) GetRound() uint64
- func (m *SignedServerMessage_ServerMessage) GetServer() uint64
- func (m *SignedServerMessage_ServerMessage) GetTime() uint64
- func (m *SignedServerMessage_ServerMessage) Marshal() (data []byte, err error)
- func (m *SignedServerMessage_ServerMessage) MarshalTo(data []byte) (n int, err error)
- func (*SignedServerMessage_ServerMessage) ProtoMessage()
- func (m *SignedServerMessage_ServerMessage) Reset()
- func (m *SignedServerMessage_ServerMessage) Size() (n int)
- func (m *SignedServerMessage_ServerMessage) String() string
- func (m *SignedServerMessage_ServerMessage) Unmarshal(data []byte) error
- type SignedServerMessage_ServerMessage_OperationsT
- func (this *SignedServerMessage_ServerMessage_OperationsT) Equal(that interface{}) bool
- func (m *SignedServerMessage_ServerMessage_OperationsT) GetProfileOperations() []*SignedProfileOperation
- func (m *SignedServerMessage_ServerMessage_OperationsT) GetSeed() []byte
- func (m *SignedServerMessage_ServerMessage_OperationsT) GetTime() uint64
- func (m *SignedServerMessage_ServerMessage_OperationsT) Marshal() (data []byte, err error)
- func (m *SignedServerMessage_ServerMessage_OperationsT) MarshalTo(data []byte) (n int, err error)
- func (*SignedServerMessage_ServerMessage_OperationsT) ProtoMessage()
- func (m *SignedServerMessage_ServerMessage_OperationsT) Reset()
- func (m *SignedServerMessage_ServerMessage_OperationsT) Size() (n int)
- func (m *SignedServerMessage_ServerMessage_OperationsT) String() string
- func (m *SignedServerMessage_ServerMessage_OperationsT) Unmarshal(data []byte) error
Constants ¶
View Source
const Default_BackendMessage_Subscribe bool = false
View Source
const Default_Profile_Version uint64 = 0
View Source
const MAX_VALIDITY_PERIOD = 60 * 60 * 24 * 365 // seconds
Variables ¶
View Source
var ClientReply_Status_name = map[int32]string{
0: "OK",
1: "REGISTRATION_DISABLED",
2: "INVITE_INVALID",
3: "INVITE_USED",
4: "NOT_AUTHORIZED",
5: "NOT_A_LEADER",
6: "TRY_AGAIN",
}
View Source
var ClientReply_Status_value = map[string]int32{
"OK": 0,
"REGISTRATION_DISABLED": 1,
"INVITE_INVALID": 2,
"INVITE_USED": 3,
"NOT_AUTHORIZED": 4,
"NOT_A_LEADER": 5,
"TRY_AGAIN": 6,
}
View Source
var ErrSignatureVerificationFailed = errors.New("Signature verification failed")
Functions ¶
Types ¶
type BackendMessage ¶
type BackendMessage struct { SignedServerMessage *SignedServerMessage `protobuf:"bytes,1,opt" json:"SignedServerMessage,omitempty"` Download *BackendMessage_MessageID `protobuf:"bytes,2,opt" json:"Download,omitempty"` Subscribe *bool `protobuf:"varint,3,opt,def=0" json:"Subscribe,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedBackendMessage ¶
func NewPopulatedBackendMessage(r randyMessage, easy bool) *BackendMessage
func (*BackendMessage) Equal ¶
func (this *BackendMessage) Equal(that interface{}) bool
func (*BackendMessage) GetDownload ¶
func (m *BackendMessage) GetDownload() *BackendMessage_MessageID
func (*BackendMessage) GetSignedServerMessage ¶
func (m *BackendMessage) GetSignedServerMessage() *SignedServerMessage
func (*BackendMessage) GetSubscribe ¶
func (m *BackendMessage) GetSubscribe() bool
func (*BackendMessage) Marshal ¶
func (m *BackendMessage) Marshal() (data []byte, err error)
func (*BackendMessage) MarshalTo ¶
func (m *BackendMessage) MarshalTo(data []byte) (n int, err error)
func (*BackendMessage) ProtoMessage ¶
func (*BackendMessage) ProtoMessage()
func (*BackendMessage) Reset ¶
func (m *BackendMessage) Reset()
func (*BackendMessage) Size ¶
func (m *BackendMessage) Size() (n int)
func (*BackendMessage) String ¶
func (m *BackendMessage) String() string
func (*BackendMessage) Unmarshal ¶
func (m *BackendMessage) Unmarshal(data []byte) error
type BackendMessage_MessageID ¶
type BackendMessage_MessageID struct { Round *uint64 `protobuf:"varint,1,req,name=round" json:"round,omitempty"` Phase []uint64 `protobuf:"varint,2,rep,packed,name=phase" json:"phase,omitempty"` Server []uint64 `protobuf:"varint,3,rep,packed,name=server" json:"server,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedBackendMessage_MessageID ¶
func NewPopulatedBackendMessage_MessageID(r randyMessage, easy bool) *BackendMessage_MessageID
func (*BackendMessage_MessageID) Equal ¶
func (this *BackendMessage_MessageID) Equal(that interface{}) bool
func (*BackendMessage_MessageID) GetPhase ¶
func (m *BackendMessage_MessageID) GetPhase() []uint64
func (*BackendMessage_MessageID) GetRound ¶
func (m *BackendMessage_MessageID) GetRound() uint64
func (*BackendMessage_MessageID) GetServer ¶
func (m *BackendMessage_MessageID) GetServer() []uint64
func (*BackendMessage_MessageID) Marshal ¶
func (m *BackendMessage_MessageID) Marshal() (data []byte, err error)
func (*BackendMessage_MessageID) MarshalTo ¶
func (m *BackendMessage_MessageID) MarshalTo(data []byte) (n int, err error)
func (*BackendMessage_MessageID) ProtoMessage ¶
func (*BackendMessage_MessageID) ProtoMessage()
func (*BackendMessage_MessageID) Reset ¶
func (m *BackendMessage_MessageID) Reset()
func (*BackendMessage_MessageID) Size ¶
func (m *BackendMessage_MessageID) Size() (n int)
func (*BackendMessage_MessageID) String ¶
func (m *BackendMessage_MessageID) String() string
func (*BackendMessage_MessageID) Unmarshal ¶
func (m *BackendMessage_MessageID) Unmarshal(data []byte) error
type ClientMessage ¶
type ClientMessage struct { PeekState *bool `protobuf:"varint,1,opt" json:"PeekState,omitempty"` ResolveName []byte `protobuf:"bytes,2,opt" json:"ResolveName,omitempty"` ModifyProfile *SignedProfileOperation `protobuf:"bytes,3,opt" json:"ModifyProfile,omitempty"` InviteCode []byte `protobuf:"bytes,4,opt" json:"InviteCode,omitempty"` PadReplyTo *uint64 `protobuf:"varint,11,opt" json:"PadReplyTo,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedClientMessage ¶
func NewPopulatedClientMessage(r randyMessage, easy bool) *ClientMessage
func (*ClientMessage) Equal ¶
func (this *ClientMessage) Equal(that interface{}) bool
func (*ClientMessage) GetInviteCode ¶
func (m *ClientMessage) GetInviteCode() []byte
func (*ClientMessage) GetModifyProfile ¶
func (m *ClientMessage) GetModifyProfile() *SignedProfileOperation
func (*ClientMessage) GetPadReplyTo ¶
func (m *ClientMessage) GetPadReplyTo() uint64
func (*ClientMessage) GetPeekState ¶
func (m *ClientMessage) GetPeekState() bool
func (*ClientMessage) GetResolveName ¶
func (m *ClientMessage) GetResolveName() []byte
func (*ClientMessage) Marshal ¶
func (m *ClientMessage) Marshal() (data []byte, err error)
func (*ClientMessage) ProtoMessage ¶
func (*ClientMessage) ProtoMessage()
func (*ClientMessage) Reset ¶
func (m *ClientMessage) Reset()
func (*ClientMessage) Size ¶
func (m *ClientMessage) Size() (n int)
func (*ClientMessage) String ¶
func (m *ClientMessage) String() string
func (*ClientMessage) Unmarshal ¶
func (m *ClientMessage) Unmarshal(data []byte) error
type ClientReply ¶
type ClientReply struct { StateConfirmations []*SignedServerMessage `protobuf:"bytes,1,rep" json:"StateConfirmations,omitempty"` LookupNodes []*ClientReply_MerklemapNode `protobuf:"bytes,2,rep" json:"LookupNodes,omitempty"` Status *ClientReply_Status `protobuf:"varint,3,opt,name=status,enum=protocol.ClientReply_Status,def=0" json:"status,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedClientReply ¶
func NewPopulatedClientReply(r randyMessage, easy bool) *ClientReply
func (*ClientReply) Equal ¶
func (this *ClientReply) Equal(that interface{}) bool
func (*ClientReply) GetLookupNodes ¶
func (m *ClientReply) GetLookupNodes() []*ClientReply_MerklemapNode
func (*ClientReply) GetStateConfirmations ¶
func (m *ClientReply) GetStateConfirmations() []*SignedServerMessage
func (*ClientReply) GetStatus ¶
func (m *ClientReply) GetStatus() ClientReply_Status
func (*ClientReply) Marshal ¶
func (m *ClientReply) Marshal() (data []byte, err error)
func (*ClientReply) ProtoMessage ¶
func (*ClientReply) ProtoMessage()
func (*ClientReply) Reset ¶
func (m *ClientReply) Reset()
func (*ClientReply) Size ¶
func (m *ClientReply) Size() (n int)
func (*ClientReply) String ¶
func (m *ClientReply) String() string
func (*ClientReply) Unmarshal ¶
func (m *ClientReply) Unmarshal(data []byte) error
type ClientReply_MerklemapNode ¶
type ClientReply_MerklemapNode struct { SubstringBitsInLastByte *uint64 `protobuf:"varint,1,req" json:"SubstringBitsInLastByte,omitempty"` Substring []byte `protobuf:"bytes,2,req" json:"Substring,omitempty"` // exactly one of {LeftChildHash, RightChildHash, Value} must be present in a message on wire, all are used for hashing LeftChildHash []byte `protobuf:"bytes,3,opt" json:"LeftChildHash,omitempty"` RightChildHash []byte `protobuf:"bytes,4,opt" json:"RightChildHash,omitempty"` Value []byte `protobuf:"bytes,5,opt" json:"Value,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedClientReply_MerklemapNode ¶
func NewPopulatedClientReply_MerklemapNode(r randyMessage, easy bool) *ClientReply_MerklemapNode
func (*ClientReply_MerklemapNode) Equal ¶
func (this *ClientReply_MerklemapNode) Equal(that interface{}) bool
func (*ClientReply_MerklemapNode) GetLeftChildHash ¶
func (m *ClientReply_MerklemapNode) GetLeftChildHash() []byte
func (*ClientReply_MerklemapNode) GetRightChildHash ¶
func (m *ClientReply_MerklemapNode) GetRightChildHash() []byte
func (*ClientReply_MerklemapNode) GetSubstring ¶
func (m *ClientReply_MerklemapNode) GetSubstring() []byte
func (*ClientReply_MerklemapNode) GetSubstringBitsInLastByte ¶
func (m *ClientReply_MerklemapNode) GetSubstringBitsInLastByte() uint64
func (*ClientReply_MerklemapNode) GetValue ¶
func (m *ClientReply_MerklemapNode) GetValue() []byte
func (*ClientReply_MerklemapNode) Marshal ¶
func (m *ClientReply_MerklemapNode) Marshal() (data []byte, err error)
func (*ClientReply_MerklemapNode) MarshalTo ¶
func (m *ClientReply_MerklemapNode) MarshalTo(data []byte) (n int, err error)
func (*ClientReply_MerklemapNode) ProtoMessage ¶
func (*ClientReply_MerklemapNode) ProtoMessage()
func (*ClientReply_MerklemapNode) Reset ¶
func (m *ClientReply_MerklemapNode) Reset()
func (*ClientReply_MerklemapNode) Size ¶
func (m *ClientReply_MerklemapNode) Size() (n int)
func (*ClientReply_MerklemapNode) String ¶
func (m *ClientReply_MerklemapNode) String() string
func (*ClientReply_MerklemapNode) Unmarshal ¶
func (m *ClientReply_MerklemapNode) Unmarshal(data []byte) error
type ClientReply_Status ¶
type ClientReply_Status int32
const ( ClientReply_OK ClientReply_Status = 0 ClientReply_REGISTRATION_DISABLED ClientReply_Status = 1 ClientReply_INVITE_INVALID ClientReply_Status = 2 ClientReply_INVITE_USED ClientReply_Status = 3 ClientReply_NOT_AUTHORIZED ClientReply_Status = 4 ClientReply_NOT_A_LEADER ClientReply_Status = 5 ClientReply_TRY_AGAIN ClientReply_Status = 6 )
const Default_ClientReply_Status ClientReply_Status = ClientReply_OK
func (ClientReply_Status) Enum ¶
func (x ClientReply_Status) Enum() *ClientReply_Status
func (ClientReply_Status) String ¶
func (x ClientReply_Status) String() string
func (*ClientReply_Status) UnmarshalJSON ¶
func (x *ClientReply_Status) UnmarshalJSON(data []byte) error
type Profile ¶
type Profile struct { SignatureKey *Profile_PublicKey `protobuf:"bytes,1,req" json:"SignatureKey,omitempty"` ExpirationTime *uint64 `protobuf:"varint,2,req" json:"ExpirationTime,omitempty"` Version *uint64 `protobuf:"varint,3,opt,def=0" json:"Version,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedProfile ¶
func (*Profile) ExtensionRangeArray ¶
func (*Profile) ExtensionRangeArray() []proto.ExtensionRange
func (*Profile) GetExpirationTime ¶
func (*Profile) GetSignatureKey ¶
func (m *Profile) GetSignatureKey() *Profile_PublicKey
func (*Profile) GetVersion ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
type Profile_PublicKey ¶
type Profile_PublicKey struct { Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519" json:"ed25519,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedProfile_PublicKey ¶
func NewPopulatedProfile_PublicKey(r randyMessage, easy bool) *Profile_PublicKey
func (*Profile_PublicKey) Equal ¶
func (this *Profile_PublicKey) Equal(that interface{}) bool
func (*Profile_PublicKey) GetEd25519 ¶
func (m *Profile_PublicKey) GetEd25519() []byte
func (Profile_PublicKey) ID ¶
func (pk Profile_PublicKey) ID() uint64
func (*Profile_PublicKey) Marshal ¶
func (m *Profile_PublicKey) Marshal() (data []byte, err error)
func (*Profile_PublicKey) MarshalTo ¶
func (m *Profile_PublicKey) MarshalTo(data []byte) (n int, err error)
func (*Profile_PublicKey) ProtoMessage ¶
func (*Profile_PublicKey) ProtoMessage()
func (*Profile_PublicKey) Reset ¶
func (m *Profile_PublicKey) Reset()
func (*Profile_PublicKey) Size ¶
func (m *Profile_PublicKey) Size() (n int)
func (*Profile_PublicKey) String ¶
func (m *Profile_PublicKey) String() string
func (*Profile_PublicKey) Unmarshal ¶
func (m *Profile_PublicKey) Unmarshal(data []byte) error
func (Profile_PublicKey) VerifySignature ¶
func (pk Profile_PublicKey) VerifySignature(tag string, msg, sig []byte) error
type SignedProfileOperation ¶
type SignedProfileOperation struct { ProfileOperation []byte `protobuf:"bytes,1,req" json:"ProfileOperation,omitempty"` NewProfileSignature []byte `protobuf:"bytes,2,req" json:"NewProfileSignature,omitempty"` OldProfileSignature []byte `protobuf:"bytes,3,opt" json:"OldProfileSignature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedSignedProfileOperation ¶
func NewPopulatedSignedProfileOperation(r randyMessage, easy bool) *SignedProfileOperation
func (*SignedProfileOperation) Equal ¶
func (this *SignedProfileOperation) Equal(that interface{}) bool
func (*SignedProfileOperation) GetNewProfileSignature ¶
func (m *SignedProfileOperation) GetNewProfileSignature() []byte
func (*SignedProfileOperation) GetOldProfileSignature ¶
func (m *SignedProfileOperation) GetOldProfileSignature() []byte
func (*SignedProfileOperation) GetProfileOperation ¶
func (m *SignedProfileOperation) GetProfileOperation() []byte
func (*SignedProfileOperation) Marshal ¶
func (m *SignedProfileOperation) Marshal() (data []byte, err error)
func (*SignedProfileOperation) MarshalTo ¶
func (m *SignedProfileOperation) MarshalTo(data []byte) (n int, err error)
func (*SignedProfileOperation) ProtoMessage ¶
func (*SignedProfileOperation) ProtoMessage()
func (*SignedProfileOperation) Reset ¶
func (m *SignedProfileOperation) Reset()
func (*SignedProfileOperation) Size ¶
func (m *SignedProfileOperation) Size() (n int)
func (*SignedProfileOperation) String ¶
func (m *SignedProfileOperation) String() string
func (*SignedProfileOperation) Unmarshal ¶
func (m *SignedProfileOperation) Unmarshal(data []byte) error
type SignedProfileOperation_ProfileOperationT ¶
type SignedProfileOperation_ProfileOperationT struct { Name []byte `protobuf:"bytes,1,req" json:"Name,omitempty"` NewProfile []byte `protobuf:"bytes,2,req" json:"NewProfile,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedSignedProfileOperation_ProfileOperationT ¶
func NewPopulatedSignedProfileOperation_ProfileOperationT(r randyMessage, easy bool) *SignedProfileOperation_ProfileOperationT
func (*SignedProfileOperation_ProfileOperationT) Equal ¶
func (this *SignedProfileOperation_ProfileOperationT) Equal(that interface{}) bool
func (*SignedProfileOperation_ProfileOperationT) GetName ¶
func (m *SignedProfileOperation_ProfileOperationT) GetName() []byte
func (*SignedProfileOperation_ProfileOperationT) GetNewProfile ¶
func (m *SignedProfileOperation_ProfileOperationT) GetNewProfile() []byte
func (*SignedProfileOperation_ProfileOperationT) Marshal ¶
func (m *SignedProfileOperation_ProfileOperationT) Marshal() (data []byte, err error)
func (*SignedProfileOperation_ProfileOperationT) MarshalTo ¶
func (m *SignedProfileOperation_ProfileOperationT) MarshalTo(data []byte) (n int, err error)
func (*SignedProfileOperation_ProfileOperationT) ProtoMessage ¶
func (*SignedProfileOperation_ProfileOperationT) ProtoMessage()
func (*SignedProfileOperation_ProfileOperationT) Reset ¶
func (m *SignedProfileOperation_ProfileOperationT) Reset()
func (*SignedProfileOperation_ProfileOperationT) Size ¶
func (m *SignedProfileOperation_ProfileOperationT) Size() (n int)
func (*SignedProfileOperation_ProfileOperationT) String ¶
func (m *SignedProfileOperation_ProfileOperationT) String() string
func (*SignedProfileOperation_ProfileOperationT) Unmarshal ¶
func (m *SignedProfileOperation_ProfileOperationT) Unmarshal(data []byte) error
type SignedServerMessage ¶
type SignedServerMessage struct { Message []byte `protobuf:"bytes,1,req" json:"Message,omitempty"` Signature []byte `protobuf:"bytes,2,req" json:"Signature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedSignedServerMessage ¶
func NewPopulatedSignedServerMessage(r randyMessage, easy bool) *SignedServerMessage
func (*SignedServerMessage) Equal ¶
func (this *SignedServerMessage) Equal(that interface{}) bool
func (*SignedServerMessage) GetMessage ¶
func (m *SignedServerMessage) GetMessage() []byte
func (*SignedServerMessage) GetSignature ¶
func (m *SignedServerMessage) GetSignature() []byte
func (*SignedServerMessage) Marshal ¶
func (m *SignedServerMessage) Marshal() (data []byte, err error)
func (*SignedServerMessage) MarshalTo ¶
func (m *SignedServerMessage) MarshalTo(data []byte) (n int, err error)
func (*SignedServerMessage) ProtoMessage ¶
func (*SignedServerMessage) ProtoMessage()
func (*SignedServerMessage) Reset ¶
func (m *SignedServerMessage) Reset()
func (*SignedServerMessage) Size ¶
func (m *SignedServerMessage) Size() (n int)
func (*SignedServerMessage) String ¶
func (m *SignedServerMessage) String() string
func (*SignedServerMessage) Unmarshal ¶
func (m *SignedServerMessage) Unmarshal(data []byte) error
type SignedServerMessage_ServerMessage ¶
type SignedServerMessage_ServerMessage struct { HashOfOperations []byte `protobuf:"bytes,1,opt" json:"HashOfOperations,omitempty"` HashOfHashes []byte `protobuf:"bytes,2,opt" json:"HashOfHashes,omitempty"` Operations []byte `protobuf:"bytes,3,opt" json:"Operations,omitempty"` HashOfState []byte `protobuf:"bytes,4,opt" json:"HashOfState,omitempty"` Round *uint64 `protobuf:"varint,10,req,name=round" json:"round,omitempty"` Server *uint64 `protobuf:"varint,11,req,name=server" json:"server,omitempty"` Time *uint64 `protobuf:"varint,12,req,name=time" json:"time,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedSignedServerMessage_ServerMessage ¶
func NewPopulatedSignedServerMessage_ServerMessage(r randyMessage, easy bool) *SignedServerMessage_ServerMessage
func (*SignedServerMessage_ServerMessage) Equal ¶
func (this *SignedServerMessage_ServerMessage) Equal(that interface{}) bool
func (*SignedServerMessage_ServerMessage) GetHashOfHashes ¶
func (m *SignedServerMessage_ServerMessage) GetHashOfHashes() []byte
func (*SignedServerMessage_ServerMessage) GetHashOfOperations ¶
func (m *SignedServerMessage_ServerMessage) GetHashOfOperations() []byte
func (*SignedServerMessage_ServerMessage) GetHashOfState ¶
func (m *SignedServerMessage_ServerMessage) GetHashOfState() []byte
func (*SignedServerMessage_ServerMessage) GetOperations ¶
func (m *SignedServerMessage_ServerMessage) GetOperations() []byte
func (*SignedServerMessage_ServerMessage) GetRound ¶
func (m *SignedServerMessage_ServerMessage) GetRound() uint64
func (*SignedServerMessage_ServerMessage) GetServer ¶
func (m *SignedServerMessage_ServerMessage) GetServer() uint64
func (*SignedServerMessage_ServerMessage) GetTime ¶
func (m *SignedServerMessage_ServerMessage) GetTime() uint64
func (*SignedServerMessage_ServerMessage) Marshal ¶
func (m *SignedServerMessage_ServerMessage) Marshal() (data []byte, err error)
func (*SignedServerMessage_ServerMessage) MarshalTo ¶
func (m *SignedServerMessage_ServerMessage) MarshalTo(data []byte) (n int, err error)
func (*SignedServerMessage_ServerMessage) ProtoMessage ¶
func (*SignedServerMessage_ServerMessage) ProtoMessage()
func (*SignedServerMessage_ServerMessage) Reset ¶
func (m *SignedServerMessage_ServerMessage) Reset()
func (*SignedServerMessage_ServerMessage) Size ¶
func (m *SignedServerMessage_ServerMessage) Size() (n int)
func (*SignedServerMessage_ServerMessage) String ¶
func (m *SignedServerMessage_ServerMessage) String() string
func (*SignedServerMessage_ServerMessage) Unmarshal ¶
func (m *SignedServerMessage_ServerMessage) Unmarshal(data []byte) error
type SignedServerMessage_ServerMessage_OperationsT ¶
type SignedServerMessage_ServerMessage_OperationsT struct { Seed []byte `protobuf:"bytes,1,req" json:"Seed,omitempty"` Time *uint64 `protobuf:"varint,2,req,name=time" json:"time,omitempty"` ProfileOperations []*SignedProfileOperation `protobuf:"bytes,3,rep" json:"ProfileOperations,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedSignedServerMessage_ServerMessage_OperationsT ¶
func NewPopulatedSignedServerMessage_ServerMessage_OperationsT(r randyMessage, easy bool) *SignedServerMessage_ServerMessage_OperationsT
func (*SignedServerMessage_ServerMessage_OperationsT) Equal ¶
func (this *SignedServerMessage_ServerMessage_OperationsT) Equal(that interface{}) bool
func (*SignedServerMessage_ServerMessage_OperationsT) GetProfileOperations ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) GetProfileOperations() []*SignedProfileOperation
func (*SignedServerMessage_ServerMessage_OperationsT) GetSeed ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) GetSeed() []byte
func (*SignedServerMessage_ServerMessage_OperationsT) GetTime ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) GetTime() uint64
func (*SignedServerMessage_ServerMessage_OperationsT) Marshal ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) Marshal() (data []byte, err error)
func (*SignedServerMessage_ServerMessage_OperationsT) MarshalTo ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) MarshalTo(data []byte) (n int, err error)
func (*SignedServerMessage_ServerMessage_OperationsT) ProtoMessage ¶
func (*SignedServerMessage_ServerMessage_OperationsT) ProtoMessage()
func (*SignedServerMessage_ServerMessage_OperationsT) Reset ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) Reset()
func (*SignedServerMessage_ServerMessage_OperationsT) Size ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) Size() (n int)
func (*SignedServerMessage_ServerMessage_OperationsT) String ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) String() string
func (*SignedServerMessage_ServerMessage_OperationsT) Unmarshal ¶
func (m *SignedServerMessage_ServerMessage_OperationsT) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.