badgeforce_pb

package
v0.0.0-...-7b10863 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Data                 *CredentialData         `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Verification         *CredentialVerification `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() *CredentialData

func (*Credential) GetVerification

func (m *Credential) GetVerification() *CredentialVerification

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 CredentialData

type CredentialData struct {
	Template             *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 (*CredentialData) Descriptor

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

func (*CredentialData) GetCoreData

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

func (*CredentialData) GetDateEarned

func (m *CredentialData) GetDateEarned() string

func (*CredentialData) GetRecipientPub

func (m *CredentialData) GetRecipientPub() string

func (*CredentialData) GetTemplate

func (m *CredentialData) GetTemplate() *Template

func (*CredentialData) ProtoMessage

func (*CredentialData) ProtoMessage()

func (*CredentialData) Reset

func (m *CredentialData) Reset()

func (*CredentialData) String

func (m *CredentialData) String() string

func (*CredentialData) XXX_DiscardUnknown

func (m *CredentialData) XXX_DiscardUnknown()

func (*CredentialData) XXX_Marshal

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

func (*CredentialData) XXX_Merge

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

func (*CredentialData) XXX_Size

func (m *CredentialData) XXX_Size() int

func (*CredentialData) XXX_Unmarshal

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

type CredentialIssuingMethod

type CredentialIssuingMethod int32
const (
	CredentialIssuingMethod_ISSUE  CredentialIssuingMethod = 0
	CredentialIssuingMethod_REVOKE CredentialIssuingMethod = 1
)

func (CredentialIssuingMethod) EnumDescriptor

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

func (CredentialIssuingMethod) String

func (x CredentialIssuingMethod) String() string

type CredentialIssuingRPCRequest

type CredentialIssuingRPCRequest struct {
	// Types that are valid to be assigned to Method:
	//	*CredentialIssuingRPCRequest_Issue
	//	*CredentialIssuingRPCRequest_Revoke
	Method               isCredentialIssuingRPCRequest_Method `protobuf_oneof:"method"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

func (*CredentialIssuingRPCRequest) Descriptor

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

func (*CredentialIssuingRPCRequest) GetIssue

func (m *CredentialIssuingRPCRequest) GetIssue() *Issue

func (*CredentialIssuingRPCRequest) GetMethod

func (m *CredentialIssuingRPCRequest) GetMethod() isCredentialIssuingRPCRequest_Method

func (*CredentialIssuingRPCRequest) GetRevoke

func (m *CredentialIssuingRPCRequest) GetRevoke() *Revoke

func (*CredentialIssuingRPCRequest) ProtoMessage

func (*CredentialIssuingRPCRequest) ProtoMessage()

func (*CredentialIssuingRPCRequest) Reset

func (m *CredentialIssuingRPCRequest) Reset()

func (*CredentialIssuingRPCRequest) String

func (m *CredentialIssuingRPCRequest) String() string

func (*CredentialIssuingRPCRequest) XXX_DiscardUnknown

func (m *CredentialIssuingRPCRequest) XXX_DiscardUnknown()

func (*CredentialIssuingRPCRequest) XXX_Marshal

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

func (*CredentialIssuingRPCRequest) XXX_Merge

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

func (*CredentialIssuingRPCRequest) XXX_OneofFuncs

func (*CredentialIssuingRPCRequest) 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 (*CredentialIssuingRPCRequest) XXX_Size

func (m *CredentialIssuingRPCRequest) XXX_Size() int

func (*CredentialIssuingRPCRequest) XXX_Unmarshal

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

type CredentialIssuingRPCRequest_Issue

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

type CredentialIssuingRPCRequest_Revoke

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

type CredentialVerification

type CredentialVerification 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 (*CredentialVerification) Descriptor

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

func (*CredentialVerification) GetExpiration

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

func (*CredentialVerification) GetIpfsFileName

func (m *CredentialVerification) GetIpfsFileName() string

func (*CredentialVerification) GetIpfsHash

func (m *CredentialVerification) GetIpfsHash() string

func (*CredentialVerification) GetIssuerPub

func (m *CredentialVerification) GetIssuerPub() string

func (*CredentialVerification) GetProofOfIntegrityHash

func (m *CredentialVerification) GetProofOfIntegrityHash() string

func (*CredentialVerification) GetRecipientPub

func (m *CredentialVerification) GetRecipientPub() string

func (*CredentialVerification) GetRevocationStatus

func (m *CredentialVerification) GetRevocationStatus() *RevocationStatus

func (*CredentialVerification) GetSignature

func (m *CredentialVerification) GetSignature() string

func (*CredentialVerification) ProtoMessage

func (*CredentialVerification) ProtoMessage()

func (*CredentialVerification) Reset

func (m *CredentialVerification) Reset()

func (*CredentialVerification) String

func (m *CredentialVerification) String() string

func (*CredentialVerification) XXX_DiscardUnknown

func (m *CredentialVerification) XXX_DiscardUnknown()

func (*CredentialVerification) XXX_Marshal

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

func (*CredentialVerification) XXX_Merge

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

func (*CredentialVerification) XXX_Size

func (m *CredentialVerification) XXX_Size() int

func (*CredentialVerification) XXX_Unmarshal

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

type Data

type Data struct {
	IssuerPub            string          `protobuf:"bytes,1,opt,name=issuer_pub,json=issuerPub,proto3" json:"issuer_pub,omitempty"`
	Name                 string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description          string          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Type                 string          `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	CreatedAt            int64           `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Version              *Version        `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	CoreData             *_struct.Struct `protobuf:"bytes,7,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) GetCreatedAt

func (m *Data) GetCreatedAt() int64

func (*Data) GetDescription

func (m *Data) GetDescription() string

func (*Data) GetIssuerPub

func (m *Data) GetIssuerPub() string

func (*Data) GetName

func (m *Data) GetName() string

func (*Data) GetType

func (m *Data) GetType() string

func (*Data) GetVersion

func (m *Data) GetVersion() *Version

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"`
	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) 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            CredentialIssuingMethod `` /* 132-byte string literal not displayed */
	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 (*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 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 Template

type Template 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 (*Template) Descriptor

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

func (*Template) GetData

func (m *Template) GetData() *Data

func (*Template) GetVerification

func (m *Template) GetVerification() *Verification

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) Reset

func (m *Template) Reset()

func (*Template) String

func (m *Template) String() string

func (*Template) XXX_DiscardUnknown

func (m *Template) XXX_DiscardUnknown()

func (*Template) XXX_Marshal

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

func (*Template) XXX_Merge

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

func (*Template) XXX_Size

func (m *Template) XXX_Size() int

func (*Template) XXX_Unmarshal

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

type Verification

type Verification struct {
	Signature            string   `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	ProofOfIntegrityHash string   `protobuf:"bytes,2,opt,name=proof_of_integrity_hash,json=proofOfIntegrityHash,proto3" json:"proof_of_integrity_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Verification) Descriptor

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

func (*Verification) GetProofOfIntegrityHash

func (m *Verification) GetProofOfIntegrityHash() string

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

type Version

type Version struct {
	Major                int32    `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	Minor                int32    `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch                int32    `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Version) Descriptor

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

func (*Version) GetMajor

func (m *Version) GetMajor() int32

func (*Version) GetMinor

func (m *Version) GetMinor() int32

func (*Version) GetPatch

func (m *Version) GetPatch() int32

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) String

func (m *Version) String() string

func (*Version) XXX_DiscardUnknown

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal

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

func (*Version) XXX_Merge

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

func (*Version) XXX_Size

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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