credentials_pb

package
v0.0.0-...-0cf994e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Method_name = map[int32]string{
	0: "ISSUE",
	1: "REVOKE",
}
View Source
var Method_value = map[string]int32{
	"ISSUE":  0,
	"REVOKE": 1,
}

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Data                 *Data         `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Verification         *Verification `protobuf:"bytes,2,opt,name=verification,proto3" json:"verification,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Credential) Descriptor

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

func (*Credential) GetData

func (m *Credential) GetData() *Data

func (*Credential) GetVerification

func (m *Credential) GetVerification() *Verification

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) Reset

func (m *Credential) Reset()

func (*Credential) String

func (m *Credential) String() string

func (*Credential) XXX_DiscardUnknown

func (m *Credential) XXX_DiscardUnknown()

func (*Credential) XXX_Marshal

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

func (*Credential) XXX_Merge

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

func (*Credential) XXX_Size

func (m *Credential) XXX_Size() int

func (*Credential) XXX_Unmarshal

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

type Data

type Data struct {
	Template             *templates_pb.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	RecipientPub         string                 `protobuf:"bytes,2,opt,name=recipient_pub,json=recipientPub,proto3" json:"recipient_pub,omitempty"`
	DateEarned           string                 `protobuf:"bytes,3,opt,name=date_earned,json=dateEarned,proto3" json:"date_earned,omitempty"`
	CoreData             *_struct.Struct        `protobuf:"bytes,4,opt,name=core_data,json=coreData,proto3" json:"core_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Data) Descriptor

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

func (*Data) GetCoreData

func (m *Data) GetCoreData() *_struct.Struct

func (*Data) GetDateEarned

func (m *Data) GetDateEarned() string

func (*Data) GetRecipientPub

func (m *Data) GetRecipientPub() string

func (*Data) GetTemplate

func (m *Data) GetTemplate() *templates_pb.Template

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

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

type Issue

type Issue struct {
	Params               *Credential `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	TemplateAddress      string      `protobuf:"bytes,2,opt,name=template_address,json=templateAddress,proto3" json:"template_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Issue) Descriptor

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

func (*Issue) GetParams

func (m *Issue) GetParams() *Credential

func (*Issue) GetTemplateAddress

func (m *Issue) GetTemplateAddress() string

func (*Issue) ProtoMessage

func (*Issue) ProtoMessage()

func (*Issue) Reset

func (m *Issue) Reset()

func (*Issue) String

func (m *Issue) String() string

func (*Issue) XXX_DiscardUnknown

func (m *Issue) XXX_DiscardUnknown()

func (*Issue) XXX_Marshal

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

func (*Issue) XXX_Merge

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

func (*Issue) XXX_Size

func (m *Issue) XXX_Size() int

func (*Issue) XXX_Unmarshal

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

type IssuingEngineReceipt

type IssuingEngineReceipt struct {
	Date                 int64       `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"`
	StateAddress         string      `protobuf:"bytes,2,opt,name=state_address,json=stateAddress,proto3" json:"state_address,omitempty"`
	RpcMethod            Method      `protobuf:"varint,3,opt,name=rpc_method,json=rpcMethod,proto3,enum=credential_pb.Method" json:"rpc_method,omitempty"`
	Credential           *Credential `protobuf:"bytes,4,opt,name=credential,proto3" json:"credential,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*IssuingEngineReceipt) Descriptor

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

func (*IssuingEngineReceipt) GetCredential

func (m *IssuingEngineReceipt) GetCredential() *Credential

func (*IssuingEngineReceipt) GetDate

func (m *IssuingEngineReceipt) GetDate() int64

func (*IssuingEngineReceipt) GetRpcMethod

func (m *IssuingEngineReceipt) GetRpcMethod() Method

func (*IssuingEngineReceipt) GetStateAddress

func (m *IssuingEngineReceipt) GetStateAddress() string

func (*IssuingEngineReceipt) ProtoMessage

func (*IssuingEngineReceipt) ProtoMessage()

func (*IssuingEngineReceipt) Reset

func (m *IssuingEngineReceipt) Reset()

func (*IssuingEngineReceipt) String

func (m *IssuingEngineReceipt) String() string

func (*IssuingEngineReceipt) XXX_DiscardUnknown

func (m *IssuingEngineReceipt) XXX_DiscardUnknown()

func (*IssuingEngineReceipt) XXX_Marshal

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

func (*IssuingEngineReceipt) XXX_Merge

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

func (*IssuingEngineReceipt) XXX_Size

func (m *IssuingEngineReceipt) XXX_Size() int

func (*IssuingEngineReceipt) XXX_Unmarshal

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

type Method

type Method int32
const (
	Method_ISSUE  Method = 0
	Method_REVOKE Method = 1
)

func (Method) EnumDescriptor

func (Method) EnumDescriptor() ([]byte, []int)

func (Method) String

func (x Method) String() string

type RPCRequest

type RPCRequest struct {
	// Types that are valid to be assigned to Method:
	//	*RPCRequest_Issue
	//	*RPCRequest_Revoke
	Method               isRPCRequest_Method `protobuf_oneof:"method"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*RPCRequest) Descriptor

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

func (*RPCRequest) GetIssue

func (m *RPCRequest) GetIssue() *Issue

func (*RPCRequest) GetMethod

func (m *RPCRequest) GetMethod() isRPCRequest_Method

func (*RPCRequest) GetRevoke

func (m *RPCRequest) GetRevoke() *Revoke

func (*RPCRequest) ProtoMessage

func (*RPCRequest) ProtoMessage()

func (*RPCRequest) Reset

func (m *RPCRequest) Reset()

func (*RPCRequest) String

func (m *RPCRequest) String() string

func (*RPCRequest) XXX_DiscardUnknown

func (m *RPCRequest) XXX_DiscardUnknown()

func (*RPCRequest) XXX_Marshal

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

func (*RPCRequest) XXX_Merge

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

func (*RPCRequest) XXX_OneofFuncs

func (*RPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*RPCRequest) XXX_Size

func (m *RPCRequest) XXX_Size() int

func (*RPCRequest) XXX_Unmarshal

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

type RPCRequest_Issue

type RPCRequest_Issue struct {
	Issue *Issue `protobuf:"bytes,1,opt,name=issue,proto3,oneof"`
}

type RPCRequest_Revoke

type RPCRequest_Revoke struct {
	Revoke *Revoke `protobuf:"bytes,2,opt,name=revoke,proto3,oneof"`
}

type RevocationStatus

type RevocationStatus struct {
	IsRevoked            bool                 `protobuf:"varint,1,opt,name=isRevoked,proto3" json:"isRevoked,omitempty"`
	RevokedAt            *timestamp.Timestamp `protobuf:"bytes,2,opt,name=revokedAt,proto3" json:"revokedAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RevocationStatus) Descriptor

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

func (*RevocationStatus) GetIsRevoked

func (m *RevocationStatus) GetIsRevoked() bool

func (*RevocationStatus) GetRevokedAt

func (m *RevocationStatus) GetRevokedAt() *timestamp.Timestamp

func (*RevocationStatus) ProtoMessage

func (*RevocationStatus) ProtoMessage()

func (*RevocationStatus) Reset

func (m *RevocationStatus) Reset()

func (*RevocationStatus) String

func (m *RevocationStatus) String() string

func (*RevocationStatus) XXX_DiscardUnknown

func (m *RevocationStatus) XXX_DiscardUnknown()

func (*RevocationStatus) XXX_Marshal

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

func (*RevocationStatus) XXX_Merge

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

func (*RevocationStatus) XXX_Size

func (m *RevocationStatus) XXX_Size() int

func (*RevocationStatus) XXX_Unmarshal

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

type Revoke

type Revoke struct {
	Addresses            []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Revoke) Descriptor

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

func (*Revoke) GetAddresses

func (m *Revoke) GetAddresses() []string

func (*Revoke) ProtoMessage

func (*Revoke) ProtoMessage()

func (*Revoke) Reset

func (m *Revoke) Reset()

func (*Revoke) String

func (m *Revoke) String() string

func (*Revoke) XXX_DiscardUnknown

func (m *Revoke) XXX_DiscardUnknown()

func (*Revoke) XXX_Marshal

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

func (*Revoke) XXX_Merge

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

func (*Revoke) XXX_Size

func (m *Revoke) XXX_Size() int

func (*Revoke) XXX_Unmarshal

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

type Verification

type Verification struct {
	RecipientPub         string               `protobuf:"bytes,1,opt,name=recipient_pub,json=recipientPub,proto3" json:"recipient_pub,omitempty"`
	IssuerPub            string               `protobuf:"bytes,2,opt,name=issuer_pub,json=issuerPub,proto3" json:"issuer_pub,omitempty"`
	Signature            string               `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	ProofOfIntegrityHash string               `protobuf:"bytes,4,opt,name=proof_of_integrity_hash,json=proofOfIntegrityHash,proto3" json:"proof_of_integrity_hash,omitempty"`
	Expiration           *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
	RevocationStatus     *RevocationStatus    `protobuf:"bytes,6,opt,name=revocation_status,json=revocationStatus,proto3" json:"revocation_status,omitempty"`
	IpfsHash             string               `protobuf:"bytes,7,opt,name=ipfs_hash,json=ipfsHash,proto3" json:"ipfs_hash,omitempty"`
	IpfsFileName         string               `protobuf:"bytes,8,opt,name=ipfs_file_name,json=ipfsFileName,proto3" json:"ipfs_file_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Verification) Descriptor

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

func (*Verification) GetExpiration

func (m *Verification) GetExpiration() *timestamp.Timestamp

func (*Verification) GetIpfsFileName

func (m *Verification) GetIpfsFileName() string

func (*Verification) GetIpfsHash

func (m *Verification) GetIpfsHash() string

func (*Verification) GetIssuerPub

func (m *Verification) GetIssuerPub() string

func (*Verification) GetProofOfIntegrityHash

func (m *Verification) GetProofOfIntegrityHash() string

func (*Verification) GetRecipientPub

func (m *Verification) GetRecipientPub() string

func (*Verification) GetRevocationStatus

func (m *Verification) GetRevocationStatus() *RevocationStatus

func (*Verification) GetSignature

func (m *Verification) GetSignature() string

func (*Verification) ProtoMessage

func (*Verification) ProtoMessage()

func (*Verification) Reset

func (m *Verification) Reset()

func (*Verification) String

func (m *Verification) String() string

func (*Verification) XXX_DiscardUnknown

func (m *Verification) XXX_DiscardUnknown()

func (*Verification) XXX_Marshal

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

func (*Verification) XXX_Merge

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

func (*Verification) XXX_Size

func (m *Verification) XXX_Size() int

func (*Verification) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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