Documentation ¶
Index ¶
- type Ref
- func (*Ref) Descriptor() ([]byte, []int)
- func (m *Ref) GetAddress() []byte
- func (m *Ref) GetSalt() []byte
- func (m *Ref) GetSecretKey() []byte
- func (ref *Ref) Plaintext(nonce []byte) string
- func (*Ref) ProtoMessage()
- func (m *Ref) ProtoSize() (n int)
- func (m *Ref) Reset()
- func (m *Ref) String() string
- func (m *Ref) XXX_DiscardUnknown()
- func (m *Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ref) XXX_Merge(src proto.Message)
- func (m *Ref) XXX_Size() int
- func (m *Ref) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ref ¶
type Ref struct { Address []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` SecretKey []byte `protobuf:"bytes,2,opt,name=SecretKey,proto3" json:"SecretKey,omitempty"` Salt []byte `protobuf:"bytes,3,opt,name=Salt,proto3" json:"Salt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func FromPlaintext ¶
func (*Ref) Descriptor ¶
func (*Ref) GetAddress ¶
func (*Ref) GetSecretKey ¶
func (*Ref) Plaintext ¶
Obtain the canonical plaintext for the Ref with an optional nonce that can be be used to salt the plaintext in order to obtain an unpredictable version of the plaintext for encryption purposes (i.e. for Grants). The nonce is discarded when read by FromPlaintext
func (*Ref) ProtoMessage ¶
func (*Ref) ProtoMessage()
func (*Ref) XXX_DiscardUnknown ¶
func (m *Ref) XXX_DiscardUnknown()
func (*Ref) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.