Documentation ¶
Overview ¶
Package documents - data is signed and nested in "encrypted envelope"
Index ¶
- Variables
- func DecodeIDDocument(rawdoc []byte, tag string, idDocument *IDDoc) error
- func DecodeOrderDocument(rawdoc []byte, tag string, orderdoc *OrderDoc, sikeSK []byte, ...) error
- func Encode(nodeID string, plainText proto.Message, secretText proto.Message, ...) (rawDoc []byte, err error)
- func EncodeIDDocument(idDocument *IDDoc, blsSK []byte) ([]byte, error)
- func EncodeOrderDocument(nodeID string, orderDoc OrderDoc, blsSK []byte, recipients map[string]*IDDoc) ([]byte, error)
- func Verify(signedEnvelope SignedEnvelope, blsPK []byte) error
- type DocType
- type EncryptTestMessage1
- func (*EncryptTestMessage1) Descriptor() ([]byte, []int)
- func (m *EncryptTestMessage1) GetNametest2() string
- func (*EncryptTestMessage1) ProtoMessage()
- func (m *EncryptTestMessage1) Reset()
- func (m *EncryptTestMessage1) String() string
- func (this *EncryptTestMessage1) Validate() error
- func (m *EncryptTestMessage1) XXX_DiscardUnknown()
- func (m *EncryptTestMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptTestMessage1) XXX_Merge(src proto.Message)
- func (m *EncryptTestMessage1) XXX_Size() int
- func (m *EncryptTestMessage1) XXX_Unmarshal(b []byte) error
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) GetBody() []byte
- func (m *Envelope) GetEncryptedBody() []byte
- func (m *Envelope) GetHeader() *Header
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- func (this *Envelope) Validate() error
- func (m *Envelope) XXX_DiscardUnknown()
- func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Envelope) XXX_Merge(src proto.Message)
- func (m *Envelope) XXX_Size() int
- func (m *Envelope) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetBodyTypeCode() float32
- func (m *Header) GetBodyVersion() float32
- func (m *Header) GetDateTime() int64
- func (m *Header) GetEncryptedBodyIV() []byte
- func (m *Header) GetEncryptedBodyTypeCode() float32
- func (m *Header) GetEncryptedBodyVersion() float32
- func (m *Header) GetIPFSID() string
- func (m *Header) GetPreviousCID() string
- func (m *Header) GetRecipients() []*Recipient
- func (m *Header) GetVersion() float32
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (this *Header) Validate() error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type IDDoc
- type IDDocument
- func (*IDDocument) Descriptor() ([]byte, []int)
- func (m *IDDocument) GetAuthenticationReference() string
- func (m *IDDocument) GetBLSPublicKey() []byte
- func (m *IDDocument) GetBeneficiaryECPublicKey() []byte
- func (m *IDDocument) GetSikePublicKey() []byte
- func (m *IDDocument) GetTimestamp() int64
- func (*IDDocument) ProtoMessage()
- func (m *IDDocument) Reset()
- func (m *IDDocument) String() string
- func (this *IDDocument) Validate() error
- func (m *IDDocument) XXX_DiscardUnknown()
- func (m *IDDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IDDocument) XXX_Merge(src proto.Message)
- func (m *IDDocument) XXX_Size() int
- func (m *IDDocument) XXX_Unmarshal(b []byte) error
- type OrderDoc
- type OrderDocument
- func (*OrderDocument) Descriptor() ([]byte, []int)
- func (m *OrderDocument) GetBeneficiaryCID() string
- func (m *OrderDocument) GetCoin() int64
- func (m *OrderDocument) GetOrderPart2() *OrderPart2
- func (m *OrderDocument) GetOrderPart3() *OrderPart3
- func (m *OrderDocument) GetOrderPart4() *OrderPart4
- func (m *OrderDocument) GetPrincipalCID() string
- func (m *OrderDocument) GetReference() string
- func (m *OrderDocument) GetTimestamp() int64
- func (m *OrderDocument) GetType() string
- func (*OrderDocument) ProtoMessage()
- func (m *OrderDocument) Reset()
- func (m *OrderDocument) String() string
- func (this *OrderDocument) Validate() error
- func (m *OrderDocument) XXX_DiscardUnknown()
- func (m *OrderDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderDocument) XXX_Merge(src proto.Message)
- func (m *OrderDocument) XXX_Size() int
- func (m *OrderDocument) XXX_Unmarshal(b []byte) error
- type OrderPart2
- func (*OrderPart2) Descriptor() ([]byte, []int)
- func (m *OrderPart2) GetCommitmentPublicKey() string
- func (m *OrderPart2) GetPreviousOrderCID() string
- func (m *OrderPart2) GetTimestamp() int64
- func (*OrderPart2) ProtoMessage()
- func (m *OrderPart2) Reset()
- func (m *OrderPart2) String() string
- func (this *OrderPart2) Validate() error
- func (m *OrderPart2) XXX_DiscardUnknown()
- func (m *OrderPart2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderPart2) XXX_Merge(src proto.Message)
- func (m *OrderPart2) XXX_Size() int
- func (m *OrderPart2) XXX_Unmarshal(b []byte) error
- type OrderPart3
- func (*OrderPart3) Descriptor() ([]byte, []int)
- func (m *OrderPart3) GetBeneficiaryEncryptedData() []byte
- func (m *OrderPart3) GetPreviousOrderCID() string
- func (m *OrderPart3) GetRedemption() string
- func (m *OrderPart3) GetTimestamp() int64
- func (*OrderPart3) ProtoMessage()
- func (m *OrderPart3) Reset()
- func (m *OrderPart3) String() string
- func (this *OrderPart3) Validate() error
- func (m *OrderPart3) XXX_DiscardUnknown()
- func (m *OrderPart3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderPart3) XXX_Merge(src proto.Message)
- func (m *OrderPart3) XXX_Size() int
- func (m *OrderPart3) XXX_Unmarshal(b []byte) error
- type OrderPart4
- func (*OrderPart4) Descriptor() ([]byte, []int)
- func (m *OrderPart4) GetPreviousOrderCID() string
- func (m *OrderPart4) GetSecret() string
- func (m *OrderPart4) GetTimestamp() int64
- func (*OrderPart4) ProtoMessage()
- func (m *OrderPart4) Reset()
- func (m *OrderPart4) String() string
- func (this *OrderPart4) Validate() error
- func (m *OrderPart4) XXX_DiscardUnknown()
- func (m *OrderPart4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderPart4) XXX_Merge(src proto.Message)
- func (m *OrderPart4) XXX_Size() int
- func (m *OrderPart4) XXX_Unmarshal(b []byte) error
- type PlainTestMessage1
- func (*PlainTestMessage1) Descriptor() ([]byte, []int)
- func (m *PlainTestMessage1) GetNametest1() string
- func (*PlainTestMessage1) ProtoMessage()
- func (m *PlainTestMessage1) Reset()
- func (m *PlainTestMessage1) String() string
- func (this *PlainTestMessage1) Validate() error
- func (m *PlainTestMessage1) XXX_DiscardUnknown()
- func (m *PlainTestMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlainTestMessage1) XXX_Merge(src proto.Message)
- func (m *PlainTestMessage1) XXX_Size() int
- func (m *PlainTestMessage1) XXX_Unmarshal(b []byte) error
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetName() string
- func (m *Policy) GetVersion() float32
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (this *Policy) Validate() error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type Recipient
- func (*Recipient) Descriptor() ([]byte, []int)
- func (m *Recipient) GetCID() string
- func (m *Recipient) GetCipherText() []byte
- func (m *Recipient) GetEncapsulatedKey() []byte
- func (m *Recipient) GetIV() []byte
- func (m *Recipient) GetVersion() float32
- func (*Recipient) ProtoMessage()
- func (m *Recipient) Reset()
- func (m *Recipient) String() string
- func (this *Recipient) Validate() error
- func (m *Recipient) XXX_DiscardUnknown()
- func (m *Recipient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Recipient) XXX_Merge(src proto.Message)
- func (m *Recipient) XXX_Size() int
- func (m *Recipient) XXX_Unmarshal(b []byte) error
- type SignedEnvelope
- func (*SignedEnvelope) Descriptor() ([]byte, []int)
- func (m *SignedEnvelope) GetMessage() []byte
- func (m *SignedEnvelope) GetSignature() []byte
- func (m *SignedEnvelope) GetSignerCID() string
- func (*SignedEnvelope) ProtoMessage()
- func (m *SignedEnvelope) Reset()
- func (m *SignedEnvelope) String() string
- func (this *SignedEnvelope) Validate() error
- func (m *SignedEnvelope) XXX_DiscardUnknown()
- func (m *SignedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedEnvelope) XXX_Merge(src proto.Message)
- func (m *SignedEnvelope) XXX_Size() int
- func (m *SignedEnvelope) XXX_Unmarshal(b []byte) error
- type SimpleString
- func (*SimpleString) Descriptor() ([]byte, []int)
- func (m *SimpleString) GetContent() string
- func (*SimpleString) ProtoMessage()
- func (m *SimpleString) Reset()
- func (m *SimpleString) String() string
- func (this *SimpleString) Validate() error
- func (m *SimpleString) XXX_DiscardUnknown()
- func (m *SimpleString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimpleString) XXX_Merge(src proto.Message)
- func (m *SimpleString) XXX_Size() int
- func (m *SimpleString) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var DocList = []DocType{ {"empty", 0, 1.0, nil}, {"Simple", 1, 1.0, &SimpleString{}}, {"PlainTestMessage1", 2, 1.0, &PlainTestMessage1{}}, {"EncryptTestMessage1", 3, 1.0, &EncryptTestMessage1{}}, {"IDDocument", 100, 1.0, &IDDocument{}}, {"OrderDocument", 101, 1.0, &OrderDocument{}}, {"PolicyDocument", 102, 1.0, &Policy{}}, }
DocList This is a master list of documents supported
var ( //EnvelopeVersion the versioning of the entire Envelope, (not individual documents/contents) EnvelopeVersion float32 = 1.0 )
Functions ¶
func DecodeIDDocument ¶
DecodeIDDocument - decode a raw byte stream into an IDDocument
func DecodeOrderDocument ¶
func DecodeOrderDocument(rawdoc []byte, tag string, orderdoc *OrderDoc, sikeSK []byte, recipientCID string, sendersBlsPK []byte) error
DecodeOrderDocument -
func Encode ¶
func Encode(nodeID string, plainText proto.Message, secretText proto.Message, header *Header, blsSK []byte, recipients map[string]*IDDoc) (rawDoc []byte, err error)
Encode - convert the header, secret and plaintext into a message for the wire The Header can be pre-populated with any nece
func EncodeIDDocument ¶
EncodeIDDocument encode an IDDoc into a raw bytes stream for the wire
func EncodeOrderDocument ¶
func EncodeOrderDocument(nodeID string, orderDoc OrderDoc, blsSK []byte, recipients map[string]*IDDoc) ([]byte, error)
EncodeOrderDocument encode an OrderDoc into a raw bytes stream for the wire
func Verify ¶
func Verify(signedEnvelope SignedEnvelope, blsPK []byte) error
Verify verify the envelopes BLS signature
Types ¶
type DocType ¶
type DocType struct { Name string //English name of the document TypeCode float32 Version float32 Message proto.Message //An empty instance of the document for comparison }
DocType - defines a document which is parseable It is necessary to build this list because there is no inheritance in
func GetDocTypeForType ¶
GetDocTypeForType return the DocType for a given Doc Code
type EncryptTestMessage1 ¶
type EncryptTestMessage1 struct { Nametest2 string `protobuf:"bytes,1,opt,name=Nametest2,proto3" json:"Nametest2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EncryptTestMessage1) Descriptor ¶
func (*EncryptTestMessage1) Descriptor() ([]byte, []int)
func (*EncryptTestMessage1) GetNametest2 ¶
func (m *EncryptTestMessage1) GetNametest2() string
func (*EncryptTestMessage1) ProtoMessage ¶
func (*EncryptTestMessage1) ProtoMessage()
func (*EncryptTestMessage1) Reset ¶
func (m *EncryptTestMessage1) Reset()
func (*EncryptTestMessage1) String ¶
func (m *EncryptTestMessage1) String() string
func (*EncryptTestMessage1) Validate ¶
func (this *EncryptTestMessage1) Validate() error
func (*EncryptTestMessage1) XXX_DiscardUnknown ¶
func (m *EncryptTestMessage1) XXX_DiscardUnknown()
func (*EncryptTestMessage1) XXX_Marshal ¶
func (m *EncryptTestMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptTestMessage1) XXX_Merge ¶
func (m *EncryptTestMessage1) XXX_Merge(src proto.Message)
func (*EncryptTestMessage1) XXX_Size ¶
func (m *EncryptTestMessage1) XXX_Size() int
func (*EncryptTestMessage1) XXX_Unmarshal ¶
func (m *EncryptTestMessage1) XXX_Unmarshal(b []byte) error
type Envelope ¶
type Envelope struct { Header *Header `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"` EncryptedBody []byte `protobuf:"bytes,3,opt,name=EncryptedBody,proto3" json:"EncryptedBody,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetEncryptedBody ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) XXX_DiscardUnknown ¶
func (m *Envelope) XXX_DiscardUnknown()
func (*Envelope) XXX_Marshal ¶
func (*Envelope) XXX_Unmarshal ¶
type Header ¶
type Header struct { IPFSID string `protobuf:"bytes,1,opt,name=IPFSID,proto3" json:"IPFSID,omitempty"` Version float32 `protobuf:"fixed32,2,opt,name=Version,proto3" json:"Version,omitempty"` DateTime int64 `protobuf:"varint,3,opt,name=DateTime,proto3" json:"DateTime,omitempty"` PreviousCID string `protobuf:"bytes,4,opt,name=PreviousCID,proto3" json:"PreviousCID,omitempty"` BodyTypeCode float32 `protobuf:"fixed32,5,opt,name=BodyTypeCode,proto3" json:"BodyTypeCode,omitempty"` BodyVersion float32 `protobuf:"fixed32,6,opt,name=BodyVersion,proto3" json:"BodyVersion,omitempty"` EncryptedBodyTypeCode float32 `protobuf:"fixed32,7,opt,name=EncryptedBodyTypeCode,proto3" json:"EncryptedBodyTypeCode,omitempty"` EncryptedBodyVersion float32 `protobuf:"fixed32,8,opt,name=EncryptedBodyVersion,proto3" json:"EncryptedBodyVersion,omitempty"` EncryptedBodyIV []byte `protobuf:"bytes,9,opt,name=EncryptedBodyIV,proto3" json:"EncryptedBodyIV,omitempty"` Recipients []*Recipient `protobuf:"bytes,10,rep,name=Recipients,proto3" json:"Recipients,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func Decode ¶
func Decode(rawDoc []byte, tag string, sikeSK []byte, recipientID string, plainText proto.Message, encryptedText proto.Message, sendersBlsPK []byte) (header *Header, err error)
Decode - Given a raw envelope, Sike Secret Key & ID - decode into plaintext, ciphertext(decrypted) and header
func (*Header) Descriptor ¶
func (*Header) GetBodyTypeCode ¶
func (*Header) GetBodyVersion ¶
func (*Header) GetDateTime ¶
func (*Header) GetEncryptedBodyIV ¶
func (*Header) GetEncryptedBodyTypeCode ¶
func (*Header) GetEncryptedBodyVersion ¶
func (*Header) GetPreviousCID ¶
func (*Header) GetRecipients ¶
func (*Header) GetVersion ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type IDDoc ¶
type IDDoc struct { *Header *IDDocument }
IDDoc wrapper to encapsulate Header & IDDocument into one object
type IDDocument ¶
type IDDocument struct { AuthenticationReference string `protobuf:"bytes,1,opt,name=AuthenticationReference,proto3" json:"AuthenticationReference,omitempty"` BeneficiaryECPublicKey []byte `protobuf:"bytes,2,opt,name=BeneficiaryECPublicKey,proto3" json:"BeneficiaryECPublicKey,omitempty"` SikePublicKey []byte `protobuf:"bytes,3,opt,name=SikePublicKey,proto3" json:"SikePublicKey,omitempty"` BLSPublicKey []byte `protobuf:"bytes,4,opt,name=BLSPublicKey,proto3" json:"BLSPublicKey,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IDDocument) Descriptor ¶
func (*IDDocument) Descriptor() ([]byte, []int)
func (*IDDocument) GetAuthenticationReference ¶
func (m *IDDocument) GetAuthenticationReference() string
func (*IDDocument) GetBLSPublicKey ¶
func (m *IDDocument) GetBLSPublicKey() []byte
func (*IDDocument) GetBeneficiaryECPublicKey ¶
func (m *IDDocument) GetBeneficiaryECPublicKey() []byte
func (*IDDocument) GetSikePublicKey ¶
func (m *IDDocument) GetSikePublicKey() []byte
func (*IDDocument) GetTimestamp ¶
func (m *IDDocument) GetTimestamp() int64
func (*IDDocument) ProtoMessage ¶
func (*IDDocument) ProtoMessage()
func (*IDDocument) Reset ¶
func (m *IDDocument) Reset()
func (*IDDocument) String ¶
func (m *IDDocument) String() string
func (*IDDocument) Validate ¶
func (this *IDDocument) Validate() error
func (*IDDocument) XXX_DiscardUnknown ¶
func (m *IDDocument) XXX_DiscardUnknown()
func (*IDDocument) XXX_Marshal ¶
func (m *IDDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IDDocument) XXX_Merge ¶
func (m *IDDocument) XXX_Merge(src proto.Message)
func (*IDDocument) XXX_Size ¶
func (m *IDDocument) XXX_Size() int
func (*IDDocument) XXX_Unmarshal ¶
func (m *IDDocument) XXX_Unmarshal(b []byte) error
type OrderDoc ¶
type OrderDoc struct { *Header *OrderDocument }
OrderDoc puts and order in encrypted wrapper
type OrderDocument ¶
type OrderDocument struct { Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` Coin int64 `protobuf:"varint,2,opt,name=Coin,proto3" json:"Coin,omitempty"` PrincipalCID string `protobuf:"bytes,3,opt,name=PrincipalCID,proto3" json:"PrincipalCID,omitempty"` BeneficiaryCID string `protobuf:"bytes,4,opt,name=BeneficiaryCID,proto3" json:"BeneficiaryCID,omitempty"` Reference string `protobuf:"bytes,5,opt,name=Reference,proto3" json:"Reference,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` OrderPart2 *OrderPart2 `protobuf:"bytes,7,opt,name=OrderPart2,proto3" json:"OrderPart2,omitempty"` OrderPart3 *OrderPart3 `protobuf:"bytes,8,opt,name=OrderPart3,proto3" json:"OrderPart3,omitempty"` OrderPart4 *OrderPart4 `protobuf:"bytes,9,opt,name=OrderPart4,proto3" json:"OrderPart4,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderDocument) Descriptor ¶
func (*OrderDocument) Descriptor() ([]byte, []int)
func (*OrderDocument) GetBeneficiaryCID ¶
func (m *OrderDocument) GetBeneficiaryCID() string
func (*OrderDocument) GetCoin ¶
func (m *OrderDocument) GetCoin() int64
func (*OrderDocument) GetOrderPart2 ¶
func (m *OrderDocument) GetOrderPart2() *OrderPart2
func (*OrderDocument) GetOrderPart3 ¶
func (m *OrderDocument) GetOrderPart3() *OrderPart3
func (*OrderDocument) GetOrderPart4 ¶
func (m *OrderDocument) GetOrderPart4() *OrderPart4
func (*OrderDocument) GetPrincipalCID ¶
func (m *OrderDocument) GetPrincipalCID() string
func (*OrderDocument) GetReference ¶
func (m *OrderDocument) GetReference() string
func (*OrderDocument) GetTimestamp ¶
func (m *OrderDocument) GetTimestamp() int64
func (*OrderDocument) GetType ¶
func (m *OrderDocument) GetType() string
func (*OrderDocument) ProtoMessage ¶
func (*OrderDocument) ProtoMessage()
func (*OrderDocument) Reset ¶
func (m *OrderDocument) Reset()
func (*OrderDocument) String ¶
func (m *OrderDocument) String() string
func (*OrderDocument) Validate ¶
func (this *OrderDocument) Validate() error
func (*OrderDocument) XXX_DiscardUnknown ¶
func (m *OrderDocument) XXX_DiscardUnknown()
func (*OrderDocument) XXX_Marshal ¶
func (m *OrderDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderDocument) XXX_Merge ¶
func (m *OrderDocument) XXX_Merge(src proto.Message)
func (*OrderDocument) XXX_Size ¶
func (m *OrderDocument) XXX_Size() int
func (*OrderDocument) XXX_Unmarshal ¶
func (m *OrderDocument) XXX_Unmarshal(b []byte) error
type OrderPart2 ¶
type OrderPart2 struct { CommitmentPublicKey string `protobuf:"bytes,1,opt,name=CommitmentPublicKey,proto3" json:"CommitmentPublicKey,omitempty"` PreviousOrderCID string `protobuf:"bytes,2,opt,name=PreviousOrderCID,proto3" json:"PreviousOrderCID,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderPart2) Descriptor ¶
func (*OrderPart2) Descriptor() ([]byte, []int)
func (*OrderPart2) GetCommitmentPublicKey ¶
func (m *OrderPart2) GetCommitmentPublicKey() string
func (*OrderPart2) GetPreviousOrderCID ¶
func (m *OrderPart2) GetPreviousOrderCID() string
func (*OrderPart2) GetTimestamp ¶
func (m *OrderPart2) GetTimestamp() int64
func (*OrderPart2) ProtoMessage ¶
func (*OrderPart2) ProtoMessage()
func (*OrderPart2) Reset ¶
func (m *OrderPart2) Reset()
func (*OrderPart2) String ¶
func (m *OrderPart2) String() string
func (*OrderPart2) Validate ¶
func (this *OrderPart2) Validate() error
func (*OrderPart2) XXX_DiscardUnknown ¶
func (m *OrderPart2) XXX_DiscardUnknown()
func (*OrderPart2) XXX_Marshal ¶
func (m *OrderPart2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderPart2) XXX_Merge ¶
func (m *OrderPart2) XXX_Merge(src proto.Message)
func (*OrderPart2) XXX_Size ¶
func (m *OrderPart2) XXX_Size() int
func (*OrderPart2) XXX_Unmarshal ¶
func (m *OrderPart2) XXX_Unmarshal(b []byte) error
type OrderPart3 ¶
type OrderPart3 struct { Redemption string `protobuf:"bytes,1,opt,name=Redemption,proto3" json:"Redemption,omitempty"` PreviousOrderCID string `protobuf:"bytes,2,opt,name=PreviousOrderCID,proto3" json:"PreviousOrderCID,omitempty"` BeneficiaryEncryptedData []byte `protobuf:"bytes,3,opt,name=BeneficiaryEncryptedData,proto3" json:"BeneficiaryEncryptedData,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderPart3) Descriptor ¶
func (*OrderPart3) Descriptor() ([]byte, []int)
func (*OrderPart3) GetBeneficiaryEncryptedData ¶
func (m *OrderPart3) GetBeneficiaryEncryptedData() []byte
func (*OrderPart3) GetPreviousOrderCID ¶
func (m *OrderPart3) GetPreviousOrderCID() string
func (*OrderPart3) GetRedemption ¶
func (m *OrderPart3) GetRedemption() string
func (*OrderPart3) GetTimestamp ¶
func (m *OrderPart3) GetTimestamp() int64
func (*OrderPart3) ProtoMessage ¶
func (*OrderPart3) ProtoMessage()
func (*OrderPart3) Reset ¶
func (m *OrderPart3) Reset()
func (*OrderPart3) String ¶
func (m *OrderPart3) String() string
func (*OrderPart3) Validate ¶
func (this *OrderPart3) Validate() error
func (*OrderPart3) XXX_DiscardUnknown ¶
func (m *OrderPart3) XXX_DiscardUnknown()
func (*OrderPart3) XXX_Marshal ¶
func (m *OrderPart3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderPart3) XXX_Merge ¶
func (m *OrderPart3) XXX_Merge(src proto.Message)
func (*OrderPart3) XXX_Size ¶
func (m *OrderPart3) XXX_Size() int
func (*OrderPart3) XXX_Unmarshal ¶
func (m *OrderPart3) XXX_Unmarshal(b []byte) error
type OrderPart4 ¶
type OrderPart4 struct { Secret string `protobuf:"bytes,1,opt,name=Secret,proto3" json:"Secret,omitempty"` PreviousOrderCID string `protobuf:"bytes,2,opt,name=PreviousOrderCID,proto3" json:"PreviousOrderCID,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderPart4) Descriptor ¶
func (*OrderPart4) Descriptor() ([]byte, []int)
func (*OrderPart4) GetPreviousOrderCID ¶
func (m *OrderPart4) GetPreviousOrderCID() string
func (*OrderPart4) GetSecret ¶
func (m *OrderPart4) GetSecret() string
func (*OrderPart4) GetTimestamp ¶
func (m *OrderPart4) GetTimestamp() int64
func (*OrderPart4) ProtoMessage ¶
func (*OrderPart4) ProtoMessage()
func (*OrderPart4) Reset ¶
func (m *OrderPart4) Reset()
func (*OrderPart4) String ¶
func (m *OrderPart4) String() string
func (*OrderPart4) Validate ¶
func (this *OrderPart4) Validate() error
func (*OrderPart4) XXX_DiscardUnknown ¶
func (m *OrderPart4) XXX_DiscardUnknown()
func (*OrderPart4) XXX_Marshal ¶
func (m *OrderPart4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderPart4) XXX_Merge ¶
func (m *OrderPart4) XXX_Merge(src proto.Message)
func (*OrderPart4) XXX_Size ¶
func (m *OrderPart4) XXX_Size() int
func (*OrderPart4) XXX_Unmarshal ¶
func (m *OrderPart4) XXX_Unmarshal(b []byte) error
type PlainTestMessage1 ¶
type PlainTestMessage1 struct { Nametest1 string `protobuf:"bytes,1,opt,name=Nametest1,proto3" json:"Nametest1,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlainTestMessage1) Descriptor ¶
func (*PlainTestMessage1) Descriptor() ([]byte, []int)
func (*PlainTestMessage1) GetNametest1 ¶
func (m *PlainTestMessage1) GetNametest1() string
func (*PlainTestMessage1) ProtoMessage ¶
func (*PlainTestMessage1) ProtoMessage()
func (*PlainTestMessage1) Reset ¶
func (m *PlainTestMessage1) Reset()
func (*PlainTestMessage1) String ¶
func (m *PlainTestMessage1) String() string
func (*PlainTestMessage1) Validate ¶
func (this *PlainTestMessage1) Validate() error
func (*PlainTestMessage1) XXX_DiscardUnknown ¶
func (m *PlainTestMessage1) XXX_DiscardUnknown()
func (*PlainTestMessage1) XXX_Marshal ¶
func (m *PlainTestMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTestMessage1) XXX_Merge ¶
func (m *PlainTestMessage1) XXX_Merge(src proto.Message)
func (*PlainTestMessage1) XXX_Size ¶
func (m *PlainTestMessage1) XXX_Size() int
func (*PlainTestMessage1) XXX_Unmarshal ¶
func (m *PlainTestMessage1) XXX_Unmarshal(b []byte) error
type Policy ¶
type Policy struct { Version float32 `protobuf:"fixed32,1,opt,name=Version,proto3" json:"Version,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Policy) Descriptor ¶
func (*Policy) GetVersion ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type Recipient ¶
type Recipient struct { Version float32 `protobuf:"fixed32,1,opt,name=Version,proto3" json:"Version,omitempty"` CID string `protobuf:"bytes,2,opt,name=CID,proto3" json:"CID,omitempty"` EncapsulatedKey []byte `protobuf:"bytes,3,opt,name=EncapsulatedKey,proto3" json:"EncapsulatedKey,omitempty"` CipherText []byte `protobuf:"bytes,4,opt,name=CipherText,proto3" json:"CipherText,omitempty"` IV []byte `protobuf:"bytes,5,opt,name=IV,proto3" json:"IV,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Recipient) Descriptor ¶
func (*Recipient) GetCipherText ¶
func (*Recipient) GetEncapsulatedKey ¶
func (*Recipient) GetVersion ¶
func (*Recipient) ProtoMessage ¶
func (*Recipient) ProtoMessage()
func (*Recipient) XXX_DiscardUnknown ¶
func (m *Recipient) XXX_DiscardUnknown()
func (*Recipient) XXX_Marshal ¶
func (*Recipient) XXX_Unmarshal ¶
type SignedEnvelope ¶
type SignedEnvelope struct { Signature []byte `protobuf:"bytes,1,opt,name=Signature,proto3" json:"Signature,omitempty"` SignerCID string `protobuf:"bytes,2,opt,name=SignerCID,proto3" json:"SignerCID,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedEnvelope) Descriptor ¶
func (*SignedEnvelope) Descriptor() ([]byte, []int)
func (*SignedEnvelope) GetMessage ¶
func (m *SignedEnvelope) GetMessage() []byte
func (*SignedEnvelope) GetSignature ¶
func (m *SignedEnvelope) GetSignature() []byte
func (*SignedEnvelope) GetSignerCID ¶
func (m *SignedEnvelope) GetSignerCID() string
func (*SignedEnvelope) ProtoMessage ¶
func (*SignedEnvelope) ProtoMessage()
func (*SignedEnvelope) Reset ¶
func (m *SignedEnvelope) Reset()
func (*SignedEnvelope) String ¶
func (m *SignedEnvelope) String() string
func (*SignedEnvelope) Validate ¶
func (this *SignedEnvelope) Validate() error
func (*SignedEnvelope) XXX_DiscardUnknown ¶
func (m *SignedEnvelope) XXX_DiscardUnknown()
func (*SignedEnvelope) XXX_Marshal ¶
func (m *SignedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedEnvelope) XXX_Merge ¶
func (m *SignedEnvelope) XXX_Merge(src proto.Message)
func (*SignedEnvelope) XXX_Size ¶
func (m *SignedEnvelope) XXX_Size() int
func (*SignedEnvelope) XXX_Unmarshal ¶
func (m *SignedEnvelope) XXX_Unmarshal(b []byte) error
type SimpleString ¶
type SimpleString struct { Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SimpleString) Descriptor ¶
func (*SimpleString) Descriptor() ([]byte, []int)
func (*SimpleString) GetContent ¶
func (m *SimpleString) GetContent() string
func (*SimpleString) ProtoMessage ¶
func (*SimpleString) ProtoMessage()
func (*SimpleString) Reset ¶
func (m *SimpleString) Reset()
func (*SimpleString) String ¶
func (m *SimpleString) String() string
func (*SimpleString) Validate ¶
func (this *SimpleString) Validate() error
func (*SimpleString) XXX_DiscardUnknown ¶
func (m *SimpleString) XXX_DiscardUnknown()
func (*SimpleString) XXX_Marshal ¶
func (m *SimpleString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimpleString) XXX_Merge ¶
func (m *SimpleString) XXX_Merge(src proto.Message)
func (*SimpleString) XXX_Size ¶
func (m *SimpleString) XXX_Size() int
func (*SimpleString) XXX_Unmarshal ¶
func (m *SimpleString) XXX_Unmarshal(b []byte) error