pb

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHush        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHush          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHush = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DHPair

type DHPair struct {
	Private []byte `protobuf:"bytes,1,opt,name=private,proto3" json:"private,omitempty" tree:"privateKey"`
	Public  []byte `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty" tree:"publicKey"`
	Epoch   uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" tree:"epoch"`
}

func NewPopulatedDHPair

func NewPopulatedDHPair(r randyHush, easy bool) *DHPair

func (DHPair) AttestationHash

func (p DHPair) AttestationHash() types.Hash

func (*DHPair) Descriptor

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

func (*DHPair) Equal

func (this *DHPair) Equal(that interface{}) bool

func (*DHPair) GetEpoch

func (m *DHPair) GetEpoch() uint64

func (*DHPair) GetPrivate

func (m *DHPair) GetPrivate() []byte

func (*DHPair) GetPublic

func (m *DHPair) GetPublic() []byte

func (*DHPair) GoString

func (this *DHPair) GoString() string

func (*DHPair) Marshal

func (m *DHPair) Marshal() (dAtA []byte, err error)

func (*DHPair) MarshalTo

func (m *DHPair) MarshalTo(dAtA []byte) (int, error)

func (*DHPair) MarshalToSizedBuffer

func (m *DHPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (DHPair) PrivateKey

func (p DHPair) PrivateKey() doubleratchet.Key

func (*DHPair) ProtoMessage

func (*DHPair) ProtoMessage()

func (DHPair) PublicKey

func (p DHPair) PublicKey() doubleratchet.Key

func (*DHPair) Reset

func (m *DHPair) Reset()

func (*DHPair) Size

func (m *DHPair) Size() (n int)

func (*DHPair) String

func (this *DHPair) String() string

func (*DHPair) Unmarshal

func (m *DHPair) Unmarshal(dAtA []byte) error

func (*DHPair) VerboseEqual

func (this *DHPair) VerboseEqual(that interface{}) error

func (*DHPair) XXX_DiscardUnknown

func (m *DHPair) XXX_DiscardUnknown()

func (*DHPair) XXX_Marshal

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

func (*DHPair) XXX_Merge

func (m *DHPair) XXX_Merge(src proto.Message)

func (*DHPair) XXX_Size

func (m *DHPair) XXX_Size() int

func (*DHPair) XXX_Unmarshal

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

type DHPubkeyAttestation

type DHPubkeyAttestation struct {
	Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty" tree:"pubkey"`
	Epoch  uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty" tree:"epoch"`
	Sig    []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty" tree:"sig"`
}

func NewPopulatedDHPubkeyAttestation

func NewPopulatedDHPubkeyAttestation(r randyHush, easy bool) *DHPubkeyAttestation

func (DHPubkeyAttestation) Address

func (a DHPubkeyAttestation) Address() (types.Address, error)

func (*DHPubkeyAttestation) Descriptor

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

func (*DHPubkeyAttestation) Equal

func (this *DHPubkeyAttestation) Equal(that interface{}) bool

func (*DHPubkeyAttestation) GetEpoch

func (m *DHPubkeyAttestation) GetEpoch() uint64

func (*DHPubkeyAttestation) GetPubkey

func (m *DHPubkeyAttestation) GetPubkey() []byte

func (*DHPubkeyAttestation) GetSig

func (m *DHPubkeyAttestation) GetSig() []byte

func (*DHPubkeyAttestation) GoString

func (this *DHPubkeyAttestation) GoString() string

func (DHPubkeyAttestation) Hash

func (a DHPubkeyAttestation) Hash() (types.Hash, error)

func (*DHPubkeyAttestation) Marshal

func (m *DHPubkeyAttestation) Marshal() (dAtA []byte, err error)

func (*DHPubkeyAttestation) MarshalTo

func (m *DHPubkeyAttestation) MarshalTo(dAtA []byte) (int, error)

func (*DHPubkeyAttestation) MarshalToSizedBuffer

func (m *DHPubkeyAttestation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DHPubkeyAttestation) ProtoMessage

func (*DHPubkeyAttestation) ProtoMessage()

func (DHPubkeyAttestation) PubkeyHex

func (a DHPubkeyAttestation) PubkeyHex() string

func (*DHPubkeyAttestation) Reset

func (m *DHPubkeyAttestation) Reset()

func (*DHPubkeyAttestation) Size

func (m *DHPubkeyAttestation) Size() (n int)

func (*DHPubkeyAttestation) String

func (this *DHPubkeyAttestation) String() string

func (*DHPubkeyAttestation) Unmarshal

func (m *DHPubkeyAttestation) Unmarshal(dAtA []byte) error

func (*DHPubkeyAttestation) VerboseEqual

func (this *DHPubkeyAttestation) VerboseEqual(that interface{}) error

func (*DHPubkeyAttestation) XXX_DiscardUnknown

func (m *DHPubkeyAttestation) XXX_DiscardUnknown()

func (*DHPubkeyAttestation) XXX_Marshal

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

func (*DHPubkeyAttestation) XXX_Merge

func (m *DHPubkeyAttestation) XXX_Merge(src proto.Message)

func (*DHPubkeyAttestation) XXX_Size

func (m *DHPubkeyAttestation) XXX_Size() int

func (*DHPubkeyAttestation) XXX_Unmarshal

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

type GroupMessage

type GroupMessage struct {
	SessionType    string                       `protobuf:"bytes,1,opt,name=sessionType,proto3" json:"sessionType,omitempty" tree:"sessionType"`
	ID             string                       `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty" tree:"id"`
	EncryptionKeys []GroupMessage_EncryptionKey `protobuf:"bytes,3,rep,name=encryptionKeys,proto3" json:"encryptionKeys" tree:"encryptionKeys"`
	Ciphertext     []byte                       `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty" tree:"ciphertext"`
	Sig            []byte                       `protobuf:"bytes,5,opt,name=sig,proto3" json:"sig,omitempty" tree:"sig"`
}

func NewPopulatedGroupMessage

func NewPopulatedGroupMessage(r randyHush, easy bool) *GroupMessage

func (*GroupMessage) Descriptor

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

func (*GroupMessage) Equal

func (this *GroupMessage) Equal(that interface{}) bool

func (*GroupMessage) GetCiphertext

func (m *GroupMessage) GetCiphertext() []byte

func (*GroupMessage) GetEncryptionKeys

func (m *GroupMessage) GetEncryptionKeys() []GroupMessage_EncryptionKey

func (*GroupMessage) GetID

func (m *GroupMessage) GetID() string

func (*GroupMessage) GetSessionType

func (m *GroupMessage) GetSessionType() string

func (*GroupMessage) GetSig

func (m *GroupMessage) GetSig() []byte

func (*GroupMessage) GoString

func (this *GroupMessage) GoString() string

func (GroupMessage) Hash

func (m GroupMessage) Hash() (types.Hash, error)

func (*GroupMessage) Marshal

func (m *GroupMessage) Marshal() (dAtA []byte, err error)

func (*GroupMessage) MarshalTo

func (m *GroupMessage) MarshalTo(dAtA []byte) (int, error)

func (*GroupMessage) MarshalToSizedBuffer

func (m *GroupMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupMessage) ProtoMessage

func (*GroupMessage) ProtoMessage()

func (*GroupMessage) Reset

func (m *GroupMessage) Reset()

func (*GroupMessage) Size

func (m *GroupMessage) Size() (n int)

func (*GroupMessage) String

func (this *GroupMessage) String() string

func (*GroupMessage) Unmarshal

func (m *GroupMessage) Unmarshal(dAtA []byte) error

func (*GroupMessage) VerboseEqual

func (this *GroupMessage) VerboseEqual(that interface{}) error

func (*GroupMessage) XXX_DiscardUnknown

func (m *GroupMessage) XXX_DiscardUnknown()

func (*GroupMessage) XXX_Marshal

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

func (*GroupMessage) XXX_Merge

func (m *GroupMessage) XXX_Merge(src proto.Message)

func (*GroupMessage) XXX_Size

func (m *GroupMessage) XXX_Size() int

func (*GroupMessage) XXX_Unmarshal

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

type GroupMessage_EncryptionKey

type GroupMessage_EncryptionKey struct {
	Recipient redwood_dev_types.Address `protobuf:"bytes,1,opt,name=recipient,proto3,customtype=redwood.dev/types.Address" json:"recipient" tree:"recipient"`
	Key       IndividualMessage         `protobuf:"bytes,2,opt,name=key,proto3" json:"key" tree:"key"`
}

func NewPopulatedGroupMessage_EncryptionKey

func NewPopulatedGroupMessage_EncryptionKey(r randyHush, easy bool) *GroupMessage_EncryptionKey

func (*GroupMessage_EncryptionKey) Descriptor

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

func (*GroupMessage_EncryptionKey) Equal

func (this *GroupMessage_EncryptionKey) Equal(that interface{}) bool

func (*GroupMessage_EncryptionKey) GetKey

func (*GroupMessage_EncryptionKey) GoString

func (this *GroupMessage_EncryptionKey) GoString() string

func (*GroupMessage_EncryptionKey) Marshal

func (m *GroupMessage_EncryptionKey) Marshal() (dAtA []byte, err error)

func (*GroupMessage_EncryptionKey) MarshalTo

func (m *GroupMessage_EncryptionKey) MarshalTo(dAtA []byte) (int, error)

func (*GroupMessage_EncryptionKey) MarshalToSizedBuffer

func (m *GroupMessage_EncryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupMessage_EncryptionKey) ProtoMessage

func (*GroupMessage_EncryptionKey) ProtoMessage()

func (*GroupMessage_EncryptionKey) Reset

func (m *GroupMessage_EncryptionKey) Reset()

func (*GroupMessage_EncryptionKey) Size

func (m *GroupMessage_EncryptionKey) Size() (n int)

func (*GroupMessage_EncryptionKey) String

func (this *GroupMessage_EncryptionKey) String() string

func (*GroupMessage_EncryptionKey) Unmarshal

func (m *GroupMessage_EncryptionKey) Unmarshal(dAtA []byte) error

func (*GroupMessage_EncryptionKey) VerboseEqual

func (this *GroupMessage_EncryptionKey) VerboseEqual(that interface{}) error

func (*GroupMessage_EncryptionKey) XXX_DiscardUnknown

func (m *GroupMessage_EncryptionKey) XXX_DiscardUnknown()

func (*GroupMessage_EncryptionKey) XXX_Marshal

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

func (*GroupMessage_EncryptionKey) XXX_Merge

func (m *GroupMessage_EncryptionKey) XXX_Merge(src proto.Message)

func (*GroupMessage_EncryptionKey) XXX_Size

func (m *GroupMessage_EncryptionKey) XXX_Size() int

func (*GroupMessage_EncryptionKey) XXX_Unmarshal

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

type IndividualMessage

type IndividualMessage struct {
	SessionHash redwood_dev_types.Hash   `protobuf:"bytes,1,opt,name=sessionHash,proto3,customtype=redwood.dev/types.Hash" json:"sessionHash" tree:"sessionHash"`
	Header      IndividualMessage_Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header" tree:"header"`
	Ciphertext  []byte                   `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty" tree:"ciphertext"`
}

func IndividualMessageFromDoubleRatchetMessage

func IndividualMessageFromDoubleRatchetMessage(msg doubleratchet.Message, sessionHash types.Hash) IndividualMessage

func NewPopulatedIndividualMessage

func NewPopulatedIndividualMessage(r randyHush, easy bool) *IndividualMessage

func (*IndividualMessage) Descriptor

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

func (*IndividualMessage) Equal

func (this *IndividualMessage) Equal(that interface{}) bool

func (*IndividualMessage) GetCiphertext

func (m *IndividualMessage) GetCiphertext() []byte

func (*IndividualMessage) GetHeader

func (*IndividualMessage) GoString

func (this *IndividualMessage) GoString() string

func (IndividualMessage) Hash

func (m IndividualMessage) Hash() (types.Hash, error)

func (*IndividualMessage) Marshal

func (m *IndividualMessage) Marshal() (dAtA []byte, err error)

func (*IndividualMessage) MarshalTo

func (m *IndividualMessage) MarshalTo(dAtA []byte) (int, error)

func (*IndividualMessage) MarshalToSizedBuffer

func (m *IndividualMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndividualMessage) ProtoMessage

func (*IndividualMessage) ProtoMessage()

func (*IndividualMessage) Reset

func (m *IndividualMessage) Reset()

func (*IndividualMessage) Size

func (m *IndividualMessage) Size() (n int)

func (*IndividualMessage) String

func (this *IndividualMessage) String() string

func (IndividualMessage) ToDoubleRatchetMessage

func (m IndividualMessage) ToDoubleRatchetMessage() doubleratchet.Message

func (*IndividualMessage) Unmarshal

func (m *IndividualMessage) Unmarshal(dAtA []byte) error

func (*IndividualMessage) VerboseEqual

func (this *IndividualMessage) VerboseEqual(that interface{}) error

func (*IndividualMessage) XXX_DiscardUnknown

func (m *IndividualMessage) XXX_DiscardUnknown()

func (*IndividualMessage) XXX_Marshal

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

func (*IndividualMessage) XXX_Merge

func (m *IndividualMessage) XXX_Merge(src proto.Message)

func (*IndividualMessage) XXX_Size

func (m *IndividualMessage) XXX_Size() int

func (*IndividualMessage) XXX_Unmarshal

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

type IndividualMessage_Header

type IndividualMessage_Header struct {
	DhPubkey []byte `protobuf:"bytes,1,opt,name=dhPubkey,proto3" json:"dhPubkey,omitempty" tree:"dhPubkey"`
	N        uint32 `protobuf:"varint,2,opt,name=n,proto3" json:"n,omitempty" tree:"n"`
	Pn       uint32 `protobuf:"varint,3,opt,name=pn,proto3" json:"pn,omitempty" tree:"pn"`
}

func NewPopulatedIndividualMessage_Header

func NewPopulatedIndividualMessage_Header(r randyHush, easy bool) *IndividualMessage_Header

func (*IndividualMessage_Header) Descriptor

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

func (*IndividualMessage_Header) Equal

func (this *IndividualMessage_Header) Equal(that interface{}) bool

func (*IndividualMessage_Header) GetDhPubkey

func (m *IndividualMessage_Header) GetDhPubkey() []byte

func (*IndividualMessage_Header) GetN

func (m *IndividualMessage_Header) GetN() uint32

func (*IndividualMessage_Header) GetPn

func (m *IndividualMessage_Header) GetPn() uint32

func (*IndividualMessage_Header) GoString

func (this *IndividualMessage_Header) GoString() string

func (*IndividualMessage_Header) Marshal

func (m *IndividualMessage_Header) Marshal() (dAtA []byte, err error)

func (*IndividualMessage_Header) MarshalTo

func (m *IndividualMessage_Header) MarshalTo(dAtA []byte) (int, error)

func (*IndividualMessage_Header) MarshalToSizedBuffer

func (m *IndividualMessage_Header) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndividualMessage_Header) ProtoMessage

func (*IndividualMessage_Header) ProtoMessage()

func (*IndividualMessage_Header) Reset

func (m *IndividualMessage_Header) Reset()

func (*IndividualMessage_Header) Size

func (m *IndividualMessage_Header) Size() (n int)

func (*IndividualMessage_Header) String

func (this *IndividualMessage_Header) String() string

func (*IndividualMessage_Header) Unmarshal

func (m *IndividualMessage_Header) Unmarshal(dAtA []byte) error

func (*IndividualMessage_Header) VerboseEqual

func (this *IndividualMessage_Header) VerboseEqual(that interface{}) error

func (*IndividualMessage_Header) XXX_DiscardUnknown

func (m *IndividualMessage_Header) XXX_DiscardUnknown()

func (*IndividualMessage_Header) XXX_Marshal

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

func (*IndividualMessage_Header) XXX_Merge

func (m *IndividualMessage_Header) XXX_Merge(src proto.Message)

func (*IndividualMessage_Header) XXX_Size

func (m *IndividualMessage_Header) XXX_Size() int

func (*IndividualMessage_Header) XXX_Unmarshal

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

type IndividualSessionID

type IndividualSessionID struct {
	SessionType string                    `protobuf:"bytes,1,opt,name=sessionType,proto3" json:"sessionType,omitempty" tree:"sessionType"`
	AliceAddr   redwood_dev_types.Address `protobuf:"bytes,2,opt,name=aliceAddr,proto3,customtype=redwood.dev/types.Address" json:"aliceAddr" tree:"aliceAddr"`
	BobAddr     redwood_dev_types.Address `protobuf:"bytes,3,opt,name=bobAddr,proto3,customtype=redwood.dev/types.Address" json:"bobAddr" tree:"bobAddr"`
	Epoch       uint64                    `protobuf:"varint,4,opt,name=epoch,proto3" json:"epoch,omitempty" tree:"epoch"`
}

func NewPopulatedIndividualSessionID

func NewPopulatedIndividualSessionID(r randyHush, easy bool) *IndividualSessionID

func (IndividualSessionID) Bytes

func (id IndividualSessionID) Bytes() []byte

func (*IndividualSessionID) Descriptor

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

func (*IndividualSessionID) Equal

func (this *IndividualSessionID) Equal(that interface{}) bool

func (*IndividualSessionID) GetEpoch

func (m *IndividualSessionID) GetEpoch() uint64

func (*IndividualSessionID) GetSessionType

func (m *IndividualSessionID) GetSessionType() string

func (*IndividualSessionID) GoString

func (this *IndividualSessionID) GoString() string

func (IndividualSessionID) Hash

func (id IndividualSessionID) Hash() types.Hash

func (*IndividualSessionID) Marshal

func (m *IndividualSessionID) Marshal() (dAtA []byte, err error)

func (IndividualSessionID) MarshalText

func (id IndividualSessionID) MarshalText() ([]byte, error)

func (*IndividualSessionID) MarshalTo

func (m *IndividualSessionID) MarshalTo(dAtA []byte) (int, error)

func (*IndividualSessionID) MarshalToSizedBuffer

func (m *IndividualSessionID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndividualSessionID) ProtoMessage

func (*IndividualSessionID) ProtoMessage()

func (*IndividualSessionID) Reset

func (m *IndividualSessionID) Reset()

func (*IndividualSessionID) Size

func (m *IndividualSessionID) Size() (n int)

func (IndividualSessionID) String

func (id IndividualSessionID) String() string

func (*IndividualSessionID) Unmarshal

func (m *IndividualSessionID) Unmarshal(dAtA []byte) error

func (*IndividualSessionID) UnmarshalText

func (id *IndividualSessionID) UnmarshalText(bs []byte) error

func (*IndividualSessionID) VerboseEqual

func (this *IndividualSessionID) VerboseEqual(that interface{}) error

func (*IndividualSessionID) XXX_DiscardUnknown

func (m *IndividualSessionID) XXX_DiscardUnknown()

func (*IndividualSessionID) XXX_Marshal

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

func (*IndividualSessionID) XXX_Merge

func (m *IndividualSessionID) XXX_Merge(src proto.Message)

func (*IndividualSessionID) XXX_Size

func (m *IndividualSessionID) XXX_Size() int

func (*IndividualSessionID) XXX_Unmarshal

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

type IndividualSessionProposal

type IndividualSessionProposal struct {
	SessionID               IndividualSessionID    `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID" tree:"sessionID"`
	SharedKey               SharedKey              `protobuf:"bytes,2,opt,name=sharedKey,proto3,customtype=SharedKey" json:"sharedKey" tree:"sharedKey"`
	AliceSig                []byte                 `protobuf:"bytes,3,opt,name=aliceSig,proto3" json:"aliceSig,omitempty" tree:"aliceSig"`
	ReplacesSessionWithHash redwood_dev_types.Hash `` /* 154-byte string literal not displayed */
	RemoteDHPubkey          []byte                 `protobuf:"bytes,5,opt,name=remoteDHPubkey,proto3" json:"remoteDHPubkey,omitempty" tree:"remoteDHPubkey"`
}

func NewPopulatedIndividualSessionProposal

func NewPopulatedIndividualSessionProposal(r randyHush, easy bool) *IndividualSessionProposal

func (*IndividualSessionProposal) Descriptor

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

func (*IndividualSessionProposal) Equal

func (this *IndividualSessionProposal) Equal(that interface{}) bool

func (*IndividualSessionProposal) GetAliceSig

func (m *IndividualSessionProposal) GetAliceSig() []byte

func (*IndividualSessionProposal) GetRemoteDHPubkey

func (m *IndividualSessionProposal) GetRemoteDHPubkey() []byte

func (*IndividualSessionProposal) GetSessionID

func (*IndividualSessionProposal) GoString

func (this *IndividualSessionProposal) GoString() string

func (IndividualSessionProposal) Hash

func (*IndividualSessionProposal) Marshal

func (m *IndividualSessionProposal) Marshal() (dAtA []byte, err error)

func (*IndividualSessionProposal) MarshalTo

func (m *IndividualSessionProposal) MarshalTo(dAtA []byte) (int, error)

func (*IndividualSessionProposal) MarshalToSizedBuffer

func (m *IndividualSessionProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndividualSessionProposal) ProtoMessage

func (*IndividualSessionProposal) ProtoMessage()

func (*IndividualSessionProposal) Reset

func (m *IndividualSessionProposal) Reset()

func (*IndividualSessionProposal) Size

func (m *IndividualSessionProposal) Size() (n int)

func (*IndividualSessionProposal) String

func (this *IndividualSessionProposal) String() string

func (*IndividualSessionProposal) Unmarshal

func (m *IndividualSessionProposal) Unmarshal(dAtA []byte) error

func (*IndividualSessionProposal) VerboseEqual

func (this *IndividualSessionProposal) VerboseEqual(that interface{}) error

func (*IndividualSessionProposal) XXX_DiscardUnknown

func (m *IndividualSessionProposal) XXX_DiscardUnknown()

func (*IndividualSessionProposal) XXX_Marshal

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

func (*IndividualSessionProposal) XXX_Merge

func (m *IndividualSessionProposal) XXX_Merge(src proto.Message)

func (*IndividualSessionProposal) XXX_Size

func (m *IndividualSessionProposal) XXX_Size() int

func (*IndividualSessionProposal) XXX_Unmarshal

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

type IndividualSessionResponse

type IndividualSessionResponse struct {
	ProposalHash redwood_dev_types.Hash `protobuf:"bytes,1,opt,name=proposalHash,proto3,customtype=redwood.dev/types.Hash" json:"proposalHash" tree:"proposalHash"`
	BobSig       []byte                 `protobuf:"bytes,2,opt,name=bobSig,proto3" json:"bobSig,omitempty" tree:"bobSig"`
	Approved     bool                   `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty" tree:"approved"`
}

func NewPopulatedIndividualSessionResponse

func NewPopulatedIndividualSessionResponse(r randyHush, easy bool) *IndividualSessionResponse

func (*IndividualSessionResponse) Descriptor

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

func (*IndividualSessionResponse) Equal

func (this *IndividualSessionResponse) Equal(that interface{}) bool

func (*IndividualSessionResponse) GetApproved

func (m *IndividualSessionResponse) GetApproved() bool

func (*IndividualSessionResponse) GetBobSig

func (m *IndividualSessionResponse) GetBobSig() []byte

func (*IndividualSessionResponse) GoString

func (this *IndividualSessionResponse) GoString() string

func (*IndividualSessionResponse) Marshal

func (m *IndividualSessionResponse) Marshal() (dAtA []byte, err error)

func (*IndividualSessionResponse) MarshalTo

func (m *IndividualSessionResponse) MarshalTo(dAtA []byte) (int, error)

func (*IndividualSessionResponse) MarshalToSizedBuffer

func (m *IndividualSessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndividualSessionResponse) ProtoMessage

func (*IndividualSessionResponse) ProtoMessage()

func (*IndividualSessionResponse) Reset

func (m *IndividualSessionResponse) Reset()

func (*IndividualSessionResponse) Size

func (m *IndividualSessionResponse) Size() (n int)

func (*IndividualSessionResponse) String

func (this *IndividualSessionResponse) String() string

func (*IndividualSessionResponse) Unmarshal

func (m *IndividualSessionResponse) Unmarshal(dAtA []byte) error

func (*IndividualSessionResponse) VerboseEqual

func (this *IndividualSessionResponse) VerboseEqual(that interface{}) error

func (*IndividualSessionResponse) XXX_DiscardUnknown

func (m *IndividualSessionResponse) XXX_DiscardUnknown()

func (*IndividualSessionResponse) XXX_Marshal

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

func (*IndividualSessionResponse) XXX_Merge

func (m *IndividualSessionResponse) XXX_Merge(src proto.Message)

func (*IndividualSessionResponse) XXX_Size

func (m *IndividualSessionResponse) XXX_Size() int

func (*IndividualSessionResponse) XXX_Unmarshal

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

type SharedKey

type SharedKey [32]byte

func GenerateSharedKey

func GenerateSharedKey() (SharedKey, error)

func NewPopulatedSharedKey

func NewPopulatedSharedKey(r randyHush) *SharedKey

func SharedKeyFromBytes

func SharedKeyFromBytes(bs []byte) (sk SharedKey)

func (SharedKey) Bytes

func (t SharedKey) Bytes() []byte

func (SharedKey) Compare

func (t SharedKey) Compare(other SharedKey) int

func (SharedKey) Equal

func (t SharedKey) Equal(other SharedKey) bool

func (SharedKey) Marshal

func (t SharedKey) Marshal() ([]byte, error)

func (SharedKey) MarshalJSON

func (t SharedKey) MarshalJSON() ([]byte, error)

func (*SharedKey) MarshalTo

func (t *SharedKey) MarshalTo(data []byte) (n int, err error)

func (*SharedKey) Size

func (t *SharedKey) Size() int

func (*SharedKey) Unmarshal

func (t *SharedKey) Unmarshal(data []byte) error

func (*SharedKey) UnmarshalJSON

func (t *SharedKey) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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