types

package
v0.0.0-...-893f904 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_did_issuecredential_types_issuecredential_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` //mime-type
	Value    string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Attribute describes an attribute for a Preview Credential.

func (*Attribute) Descriptor deprecated

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetMimeType

func (x *Attribute) GetMimeType() string

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetValue

func (x *Attribute) GetValue() string

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type CredentialSpec

type CredentialSpec struct {
	Credential *types1.VerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` // json.RawMessage
	Options    *CredentialSpecOptions       `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

CredentialSpec is the attachment payload in messages conforming to the RFC0593 format.

func (*CredentialSpec) Descriptor deprecated

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

Deprecated: Use CredentialSpec.ProtoReflect.Descriptor instead.

func (*CredentialSpec) GetCredential

func (x *CredentialSpec) GetCredential() *types1.VerifiableCredential

func (*CredentialSpec) GetOptions

func (x *CredentialSpec) GetOptions() *CredentialSpecOptions

func (*CredentialSpec) ProtoMessage

func (*CredentialSpec) ProtoMessage()

func (*CredentialSpec) ProtoReflect

func (x *CredentialSpec) ProtoReflect() protoreflect.Message

func (*CredentialSpec) Reset

func (x *CredentialSpec) Reset()

func (*CredentialSpec) String

func (x *CredentialSpec) String() string

type CredentialSpecOptions

type CredentialSpecOptions struct {
	ProofPurpose     string            `protobuf:"bytes,1,opt,name=proofPurpose,proto3" json:"proofPurpose,omitempty"`
	Domain           string            `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Challenge        string            `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"`
	CredentialStatus *CredentialStatus `protobuf:"bytes,4,opt,name=credentialStatus,proto3" json:"credentialStatus,omitempty"`
	ProofType        string            `protobuf:"bytes,5,opt,name=proofType,proto3" json:"proofType,omitempty"`
	Created          string            `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

CredentialSpecOptions are the options for issuance of the credential. TODO support CredentialStatus.

func (*CredentialSpecOptions) Descriptor deprecated

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

Deprecated: Use CredentialSpecOptions.ProtoReflect.Descriptor instead.

func (*CredentialSpecOptions) GetChallenge

func (x *CredentialSpecOptions) GetChallenge() string

func (*CredentialSpecOptions) GetCreated

func (x *CredentialSpecOptions) GetCreated() string

func (*CredentialSpecOptions) GetCredentialStatus

func (x *CredentialSpecOptions) GetCredentialStatus() *CredentialStatus

func (*CredentialSpecOptions) GetDomain

func (x *CredentialSpecOptions) GetDomain() string

func (*CredentialSpecOptions) GetProofPurpose

func (x *CredentialSpecOptions) GetProofPurpose() string

func (*CredentialSpecOptions) GetProofType

func (x *CredentialSpecOptions) GetProofType() string

func (*CredentialSpecOptions) ProtoMessage

func (*CredentialSpecOptions) ProtoMessage()

func (*CredentialSpecOptions) ProtoReflect

func (x *CredentialSpecOptions) ProtoReflect() protoreflect.Message

func (*CredentialSpecOptions) Reset

func (x *CredentialSpecOptions) Reset()

func (*CredentialSpecOptions) String

func (x *CredentialSpecOptions) String() string

type CredentialStatus

type CredentialStatus struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

CredentialStatus is the requested status for the credential.

func (*CredentialStatus) Descriptor deprecated

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

Deprecated: Use CredentialStatus.ProtoReflect.Descriptor instead.

func (*CredentialStatus) GetType

func (x *CredentialStatus) GetType() string

func (*CredentialStatus) ProtoMessage

func (*CredentialStatus) ProtoMessage()

func (*CredentialStatus) ProtoReflect

func (x *CredentialStatus) ProtoReflect() protoreflect.Message

func (*CredentialStatus) Reset

func (x *CredentialStatus) Reset()

func (*CredentialStatus) String

func (x *CredentialStatus) String() string

type Format

type Format struct {
	AttachId string `protobuf:"bytes,1,opt,name=attach_id,json=attachId,proto3" json:"attach_id,omitempty"`
	Format   string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

Format contains the value of the attachment @id and the verifiable credential format of the attachment.

func (*Format) Descriptor deprecated

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

Deprecated: Use Format.ProtoReflect.Descriptor instead.

func (*Format) GetAttachId

func (x *Format) GetAttachId() string

func (*Format) GetFormat

func (x *Format) GetFormat() string

func (*Format) ProtoMessage

func (*Format) ProtoMessage()

func (*Format) ProtoReflect

func (x *Format) ProtoReflect() protoreflect.Message

func (*Format) Reset

func (x *Format) Reset()

func (*Format) String

func (x *Format) String() string

type GenericIssueCredential

type GenericIssueCredential struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Formats contains an entry for each credentials~attach array entry, providing the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,3,rep,name=formats,proto3" json:"formats,omitempty"`
	// CredentialsAttach is a slice of attachments containing the issued credentials.
	CredentialsAttach []*types.Attachment `protobuf:"bytes,4,rep,name=credentials_attach,json=credentialsAttach,proto3" json:"credentials_attach,omitempty"` //credentials~attach
	// WebRedirect contains optional web redirect info to be sent to holder for redirect.
	WebRedirect *types.WebRedirect `protobuf:"bytes,5,opt,name=web_redirect,json=webRedirect,proto3" json:"web_redirect,omitempty"` // ~web-redirect
	// V3
	Body *IssueCredentialV3Body `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

GenericIssueCredential combination of V2 and V3 swagger:model

func (*GenericIssueCredential) Descriptor deprecated

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

Deprecated: Use GenericIssueCredential.ProtoReflect.Descriptor instead.

func (*GenericIssueCredential) GetAttachments

func (x *GenericIssueCredential) GetAttachments() []*types.AttachmentV2

func (*GenericIssueCredential) GetBody

func (*GenericIssueCredential) GetComment

func (x *GenericIssueCredential) GetComment() string

func (*GenericIssueCredential) GetCredentialsAttach

func (x *GenericIssueCredential) GetCredentialsAttach() []*types.Attachment

func (*GenericIssueCredential) GetFormats

func (x *GenericIssueCredential) GetFormats() []*Format

func (*GenericIssueCredential) GetType

func (x *GenericIssueCredential) GetType() string

func (*GenericIssueCredential) GetWebRedirect

func (x *GenericIssueCredential) GetWebRedirect() *types.WebRedirect

func (*GenericIssueCredential) ProtoMessage

func (*GenericIssueCredential) ProtoMessage()

func (*GenericIssueCredential) ProtoReflect

func (x *GenericIssueCredential) ProtoReflect() protoreflect.Message

func (*GenericIssueCredential) Reset

func (x *GenericIssueCredential) Reset()

func (*GenericIssueCredential) String

func (x *GenericIssueCredential) String() string

type GenericOfferCredential

type GenericOfferCredential struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //@type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// CredentialPreview is a JSON-LD object that represents the credential data that Issuer is willing to issue.
	CredentialPreview *PreviewCredential `protobuf:"bytes,3,opt,name=credential_preview,json=credentialPreview,proto3" json:"credential_preview,omitempty"`
	// Formats contains an entry for each offers~attach array entry, providing the the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
	// OffersAttach is a slice of attachments that further define the credential being offered.
	// This might be used to clarify which formats or format versions will be issued.
	OffersAttach []*types.Attachment `protobuf:"bytes,5,rep,name=offers_attach,json=offersAttach,proto3" json:"offers_attach,omitempty"` //offers~attach
	// V3
	Body *OfferCredentialV3Body `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

GenericOfferCredential combination of V2 and V3 swagger:model

func (*GenericOfferCredential) Descriptor deprecated

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

Deprecated: Use GenericOfferCredential.ProtoReflect.Descriptor instead.

func (*GenericOfferCredential) GetAttachments

func (x *GenericOfferCredential) GetAttachments() []*types.AttachmentV2

func (*GenericOfferCredential) GetBody

func (*GenericOfferCredential) GetComment

func (x *GenericOfferCredential) GetComment() string

func (*GenericOfferCredential) GetCredentialPreview

func (x *GenericOfferCredential) GetCredentialPreview() *PreviewCredential

func (*GenericOfferCredential) GetFormats

func (x *GenericOfferCredential) GetFormats() []*Format

func (*GenericOfferCredential) GetOffersAttach

func (x *GenericOfferCredential) GetOffersAttach() []*types.Attachment

func (*GenericOfferCredential) GetType

func (x *GenericOfferCredential) GetType() string

func (*GenericOfferCredential) ProtoMessage

func (*GenericOfferCredential) ProtoMessage()

func (*GenericOfferCredential) ProtoReflect

func (x *GenericOfferCredential) ProtoReflect() protoreflect.Message

func (*GenericOfferCredential) Reset

func (x *GenericOfferCredential) Reset()

func (*GenericOfferCredential) String

func (x *GenericOfferCredential) String() string

type GenericProposeCredential

type GenericProposeCredential struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// Should follow DIDComm conventions for l10n.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// CredentialProposal is an optional JSON-LD object that represents
	// the credential data that the Prover wants to receive.
	CredentialProposal *PreviewCredential `protobuf:"bytes,3,opt,name=credential_proposal,json=credentialProposal,proto3" json:"credential_proposal,omitempty"`
	// Formats contains an entry for each filters~attach array entry, providing the the value of the attachment @id
	// and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
	// FiltersAttach is an array of attachments that further define the credential being proposed.
	// This might be used to clarify which formats or format versions are wanted.
	FiltersAttach []*types.Attachment `protobuf:"bytes,5,rep,name=filters_attach,json=filtersAttach,proto3" json:"filters_attach,omitempty"` //filters~attach
	// Optional field containing ID of the invitation which initiated this protocol.
	InvitationID string `protobuf:"bytes,6,opt,name=invitationID,proto3" json:"invitationID,omitempty"`
	// V3
	Body *ProposeCredentialV3Body `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// Optional field containing ID of the invitation which initiated this protocol.
	Pthid string `protobuf:"bytes,9,opt,name=pthid,proto3" json:"pthid,omitempty"`
	// contains filtered or unexported fields
}

GenericProposeCredential combination of V2 and V3 swagger:model

func (*GenericProposeCredential) Descriptor deprecated

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

Deprecated: Use GenericProposeCredential.ProtoReflect.Descriptor instead.

func (*GenericProposeCredential) GetAttachments

func (x *GenericProposeCredential) GetAttachments() []*types.AttachmentV2

func (*GenericProposeCredential) GetBody

func (*GenericProposeCredential) GetComment

func (x *GenericProposeCredential) GetComment() string

func (*GenericProposeCredential) GetCredentialProposal

func (x *GenericProposeCredential) GetCredentialProposal() *PreviewCredential

func (*GenericProposeCredential) GetFiltersAttach

func (x *GenericProposeCredential) GetFiltersAttach() []*types.Attachment

func (*GenericProposeCredential) GetFormats

func (x *GenericProposeCredential) GetFormats() []*Format

func (*GenericProposeCredential) GetInvitationID

func (x *GenericProposeCredential) GetInvitationID() string

func (*GenericProposeCredential) GetPthid

func (x *GenericProposeCredential) GetPthid() string

func (*GenericProposeCredential) GetType

func (x *GenericProposeCredential) GetType() string

func (*GenericProposeCredential) ProtoMessage

func (*GenericProposeCredential) ProtoMessage()

func (*GenericProposeCredential) ProtoReflect

func (x *GenericProposeCredential) ProtoReflect() protoreflect.Message

func (*GenericProposeCredential) Reset

func (x *GenericProposeCredential) Reset()

func (*GenericProposeCredential) String

func (x *GenericProposeCredential) String() string

type GenericRequestCredential

type GenericRequestCredential struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Formats contains an entry for each requests~attach array entry, providing the the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,3,rep,name=formats,proto3" json:"formats,omitempty"`
	// RequestsAttach is a slice of attachments defining the requested formats for the credential
	RequestsAttach []*types.Attachment `protobuf:"bytes,4,rep,name=requests_attach,json=requestsAttach,proto3" json:"requests_attach,omitempty"` //requests~attach
	// V3
	Body *RequestCredentialV3Body `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,6,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

GenericRequestCredential combination of V2 and V3 swagger:model

func (*GenericRequestCredential) Descriptor deprecated

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

Deprecated: Use GenericRequestCredential.ProtoReflect.Descriptor instead.

func (*GenericRequestCredential) GetAttachments

func (x *GenericRequestCredential) GetAttachments() []*types.AttachmentV2

func (*GenericRequestCredential) GetBody

func (*GenericRequestCredential) GetComment

func (x *GenericRequestCredential) GetComment() string

func (*GenericRequestCredential) GetFormats

func (x *GenericRequestCredential) GetFormats() []*Format

func (*GenericRequestCredential) GetRequestsAttach

func (x *GenericRequestCredential) GetRequestsAttach() []*types.Attachment

func (*GenericRequestCredential) GetType

func (x *GenericRequestCredential) GetType() string

func (*GenericRequestCredential) ProtoMessage

func (*GenericRequestCredential) ProtoMessage()

func (*GenericRequestCredential) ProtoReflect

func (x *GenericRequestCredential) ProtoReflect() protoreflect.Message

func (*GenericRequestCredential) Reset

func (x *GenericRequestCredential) Reset()

func (*GenericRequestCredential) String

func (x *GenericRequestCredential) String() string

type IssueCredentialV2

type IssueCredentialV2 struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Formats contains an entry for each credentials~attach array entry, providing the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,3,rep,name=formats,proto3" json:"formats,omitempty"`
	// CredentialsAttach is a slice of attachments containing the issued credentials.
	CredentialsAttach []*types.Attachment `protobuf:"bytes,4,rep,name=credentials_attach,json=credentialsAttach,proto3" json:"credentials_attach,omitempty"` //credentials~attach
	// WebRedirect contains optional web redirect info to be sent to holder for redirect.
	WebRedirect *types.WebRedirect `protobuf:"bytes,5,opt,name=web_redirect,json=webRedirect,proto3" json:"web_redirect,omitempty"` // ~web-redirect
	// contains filtered or unexported fields
}

IssueCredentialV2 contains as attached payload the credentials being issued and is sent in response to a valid Invitation Credential message. TODO: Need to add ~please-ack decorator [Issue #1299]. swagger:model

func (*IssueCredentialV2) Descriptor deprecated

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

Deprecated: Use IssueCredentialV2.ProtoReflect.Descriptor instead.

func (*IssueCredentialV2) GetComment

func (x *IssueCredentialV2) GetComment() string

func (*IssueCredentialV2) GetCredentialsAttach

func (x *IssueCredentialV2) GetCredentialsAttach() []*types.Attachment

func (*IssueCredentialV2) GetFormats

func (x *IssueCredentialV2) GetFormats() []*Format

func (*IssueCredentialV2) GetType

func (x *IssueCredentialV2) GetType() string

func (*IssueCredentialV2) GetWebRedirect

func (x *IssueCredentialV2) GetWebRedirect() *types.WebRedirect

func (*IssueCredentialV2) ProtoMessage

func (*IssueCredentialV2) ProtoMessage()

func (*IssueCredentialV2) ProtoReflect

func (x *IssueCredentialV2) ProtoReflect() protoreflect.Message

func (*IssueCredentialV2) Reset

func (x *IssueCredentialV2) Reset()

func (*IssueCredentialV2) String

func (x *IssueCredentialV2) String() string

type IssueCredentialV3

type IssueCredentialV3 struct {
	Id   string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Body *IssueCredentialV3Body `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// WebRedirect contains optional web redirect info to be sent to holder for redirect.
	WebRedirect *types.WebRedirect `protobuf:"bytes,4,opt,name=web_redirect,json=webRedirect,proto3" json:"web_redirect,omitempty"` // ~web-redirect
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,5,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

IssueCredentialV3 contains as attached payload the credentials being issued and is sent in response to a valid Invitation Credential message. swagger:model

func (*IssueCredentialV3) Descriptor deprecated

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

Deprecated: Use IssueCredentialV3.ProtoReflect.Descriptor instead.

func (*IssueCredentialV3) GetAttachments

func (x *IssueCredentialV3) GetAttachments() []*types.AttachmentV2

func (*IssueCredentialV3) GetBody

func (*IssueCredentialV3) GetId

func (x *IssueCredentialV3) GetId() string

func (*IssueCredentialV3) GetType

func (x *IssueCredentialV3) GetType() string

func (*IssueCredentialV3) GetWebRedirect

func (x *IssueCredentialV3) GetWebRedirect() *types.WebRedirect

func (*IssueCredentialV3) ProtoMessage

func (*IssueCredentialV3) ProtoMessage()

func (*IssueCredentialV3) ProtoReflect

func (x *IssueCredentialV3) ProtoReflect() protoreflect.Message

func (*IssueCredentialV3) Reset

func (x *IssueCredentialV3) Reset()

func (*IssueCredentialV3) String

func (x *IssueCredentialV3) String() string

type IssueCredentialV3Body

type IssueCredentialV3Body struct {
	GoalCode      string `protobuf:"bytes,1,opt,name=goal_code,json=goalCode,proto3" json:"goal_code,omitempty"`
	ReplacementId string `protobuf:"bytes,2,opt,name=replacement_id,json=replacementId,proto3" json:"replacement_id,omitempty"`
	Comment       string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

IssueCredentialV3Body represents body for IssueCredentialV3.

func (*IssueCredentialV3Body) Descriptor deprecated

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

Deprecated: Use IssueCredentialV3Body.ProtoReflect.Descriptor instead.

func (*IssueCredentialV3Body) GetComment

func (x *IssueCredentialV3Body) GetComment() string

func (*IssueCredentialV3Body) GetGoalCode

func (x *IssueCredentialV3Body) GetGoalCode() string

func (*IssueCredentialV3Body) GetReplacementId

func (x *IssueCredentialV3Body) GetReplacementId() string

func (*IssueCredentialV3Body) ProtoMessage

func (*IssueCredentialV3Body) ProtoMessage()

func (*IssueCredentialV3Body) ProtoReflect

func (x *IssueCredentialV3Body) ProtoReflect() protoreflect.Message

func (*IssueCredentialV3Body) Reset

func (x *IssueCredentialV3Body) Reset()

func (*IssueCredentialV3Body) String

func (x *IssueCredentialV3Body) String() string

type OfferCredentialV2

type OfferCredentialV2 struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //@type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// CredentialPreview is a JSON-LD object that represents the credential data that Issuer is willing to issue.
	CredentialPreview *PreviewCredential `protobuf:"bytes,3,opt,name=credential_preview,json=credentialPreview,proto3" json:"credential_preview,omitempty"`
	// Formats contains an entry for each offers~attach array entry, providing the the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
	// OffersAttach is a slice of attachments that further define the credential being offered.
	// This might be used to clarify which formats or format versions will be issued.
	OffersAttach []*types.Attachment `protobuf:"bytes,5,rep,name=offers_attach,json=offersAttach,proto3" json:"offers_attach,omitempty"` //offers~attach
	// contains filtered or unexported fields
}

OfferCredentialV2 is a message sent by the Issuer to the potential Holder, describing the credential they intend to offer and possibly the price they expect to be paid. TODO: Need to add ~payment_request and ~timing.expires_time decorators [Issue #1297]. swagger:model

func (*OfferCredentialV2) Descriptor deprecated

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

Deprecated: Use OfferCredentialV2.ProtoReflect.Descriptor instead.

func (*OfferCredentialV2) GetComment

func (x *OfferCredentialV2) GetComment() string

func (*OfferCredentialV2) GetCredentialPreview

func (x *OfferCredentialV2) GetCredentialPreview() *PreviewCredential

func (*OfferCredentialV2) GetFormats

func (x *OfferCredentialV2) GetFormats() []*Format

func (*OfferCredentialV2) GetOffersAttach

func (x *OfferCredentialV2) GetOffersAttach() []*types.Attachment

func (*OfferCredentialV2) GetType

func (x *OfferCredentialV2) GetType() string

func (*OfferCredentialV2) ProtoMessage

func (*OfferCredentialV2) ProtoMessage()

func (*OfferCredentialV2) ProtoReflect

func (x *OfferCredentialV2) ProtoReflect() protoreflect.Message

func (*OfferCredentialV2) Reset

func (x *OfferCredentialV2) Reset()

func (*OfferCredentialV2) String

func (x *OfferCredentialV2) String() string

type OfferCredentialV3

type OfferCredentialV3 struct {
	Id   string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Body *OfferCredentialV3Body `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

OfferCredentialV3 is a message sent by the Issuer to the potential Holder, describing the credential they intend to offer and possibly the price they expect to be paid. swagger:model

func (*OfferCredentialV3) Descriptor deprecated

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

Deprecated: Use OfferCredentialV3.ProtoReflect.Descriptor instead.

func (*OfferCredentialV3) GetAttachments

func (x *OfferCredentialV3) GetAttachments() []*types.AttachmentV2

func (*OfferCredentialV3) GetBody

func (*OfferCredentialV3) GetId

func (x *OfferCredentialV3) GetId() string

func (*OfferCredentialV3) GetType

func (x *OfferCredentialV3) GetType() string

func (*OfferCredentialV3) ProtoMessage

func (*OfferCredentialV3) ProtoMessage()

func (*OfferCredentialV3) ProtoReflect

func (x *OfferCredentialV3) ProtoReflect() protoreflect.Message

func (*OfferCredentialV3) Reset

func (x *OfferCredentialV3) Reset()

func (*OfferCredentialV3) String

func (x *OfferCredentialV3) String() string

type OfferCredentialV3Body

type OfferCredentialV3Body struct {
	GoalCode      string `protobuf:"bytes,1,opt,name=goal_code,json=goalCode,proto3" json:"goal_code,omitempty"`
	Comment       string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	ReplacementId string `protobuf:"bytes,3,opt,name=replacement_id,json=replacementId,proto3" json:"replacement_id,omitempty"`
	// credentialPreview is an optional JSON-LD object that represents the credential data that Prover wants to receive.
	CredentialPreview *anypb.Any `protobuf:"bytes,4,opt,name=credential_preview,json=credentialPreview,proto3" json:"credential_preview,omitempty"`
	// contains filtered or unexported fields
}

OfferCredentialV3Body represents body for OfferCredentialV3.

func (*OfferCredentialV3Body) Descriptor deprecated

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

Deprecated: Use OfferCredentialV3Body.ProtoReflect.Descriptor instead.

func (*OfferCredentialV3Body) GetComment

func (x *OfferCredentialV3Body) GetComment() string

func (*OfferCredentialV3Body) GetCredentialPreview

func (x *OfferCredentialV3Body) GetCredentialPreview() *anypb.Any

func (*OfferCredentialV3Body) GetGoalCode

func (x *OfferCredentialV3Body) GetGoalCode() string

func (*OfferCredentialV3Body) GetReplacementId

func (x *OfferCredentialV3Body) GetReplacementId() string

func (*OfferCredentialV3Body) ProtoMessage

func (*OfferCredentialV3Body) ProtoMessage()

func (*OfferCredentialV3Body) ProtoReflect

func (x *OfferCredentialV3Body) ProtoReflect() protoreflect.Message

func (*OfferCredentialV3Body) Reset

func (x *OfferCredentialV3Body) Reset()

func (*OfferCredentialV3Body) String

func (x *OfferCredentialV3Body) String() string

type PreviewCredential

type PreviewCredential struct {
	Type       string       `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes []*Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

PreviewCredential is used to construct a preview of the data for the credential that is to be issued. swagger:model

func (*PreviewCredential) Descriptor deprecated

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

Deprecated: Use PreviewCredential.ProtoReflect.Descriptor instead.

func (*PreviewCredential) GetAttributes

func (x *PreviewCredential) GetAttributes() []*Attribute

func (*PreviewCredential) GetType

func (x *PreviewCredential) GetType() string

func (*PreviewCredential) ProtoMessage

func (*PreviewCredential) ProtoMessage()

func (*PreviewCredential) ProtoReflect

func (x *PreviewCredential) ProtoReflect() protoreflect.Message

func (*PreviewCredential) Reset

func (x *PreviewCredential) Reset()

func (*PreviewCredential) String

func (x *PreviewCredential) String() string

type PreviewCredentialV3

type PreviewCredentialV3 struct {
	Id   string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Body *IssueCredentialV3Body `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

PreviewCredentialV3 is used to construct a preview of the data for the credential that is to be issued. swagger:model

func (*PreviewCredentialV3) Descriptor deprecated

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

Deprecated: Use PreviewCredentialV3.ProtoReflect.Descriptor instead.

func (*PreviewCredentialV3) GetBody

func (*PreviewCredentialV3) GetId

func (x *PreviewCredentialV3) GetId() string

func (*PreviewCredentialV3) GetType

func (x *PreviewCredentialV3) GetType() string

func (*PreviewCredentialV3) ProtoMessage

func (*PreviewCredentialV3) ProtoMessage()

func (*PreviewCredentialV3) ProtoReflect

func (x *PreviewCredentialV3) ProtoReflect() protoreflect.Message

func (*PreviewCredentialV3) Reset

func (x *PreviewCredentialV3) Reset()

func (*PreviewCredentialV3) String

func (x *PreviewCredentialV3) String() string

type PreviewCredentialV3Body

type PreviewCredentialV3Body struct {
	Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

PreviewCredentialV3Body represents body for PreviewCredentialV3.

func (*PreviewCredentialV3Body) Descriptor deprecated

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

Deprecated: Use PreviewCredentialV3Body.ProtoReflect.Descriptor instead.

func (*PreviewCredentialV3Body) GetAttributes

func (x *PreviewCredentialV3Body) GetAttributes() []*Attribute

func (*PreviewCredentialV3Body) ProtoMessage

func (*PreviewCredentialV3Body) ProtoMessage()

func (*PreviewCredentialV3Body) ProtoReflect

func (x *PreviewCredentialV3Body) ProtoReflect() protoreflect.Message

func (*PreviewCredentialV3Body) Reset

func (x *PreviewCredentialV3Body) Reset()

func (*PreviewCredentialV3Body) String

func (x *PreviewCredentialV3Body) String() string

type ProposeCredentialV2

type ProposeCredentialV2 struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// Should follow DIDComm conventions for l10n.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// CredentialProposal is an optional JSON-LD object that represents
	// the credential data that the Prover wants to receive.
	CredentialProposal *PreviewCredential `protobuf:"bytes,3,opt,name=credential_proposal,json=credentialProposal,proto3" json:"credential_proposal,omitempty"`
	// Formats contains an entry for each filters~attach array entry, providing the the value of the attachment @id
	// and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
	// FiltersAttach is an array of attachments that further define the credential being proposed.
	// This might be used to clarify which formats or format versions are wanted.
	FiltersAttach []*types.Attachment `protobuf:"bytes,5,rep,name=filters_attach,json=filtersAttach,proto3" json:"filters_attach,omitempty"` //filters~attach
	// Optional field containing ID of the invitation which initiated this protocol.
	InvitationID string `protobuf:"bytes,6,opt,name=invitationID,proto3" json:"invitationID,omitempty"`
	// contains filtered or unexported fields
}

ProposeCredentialV2 is an optional message sent by the potential Holder to the Issuer to initiate the protocol or in response to a offer-credential message when the Holder wants some adjustments made to the credential data offered by Issuer. swagger:model

func (*ProposeCredentialV2) Descriptor deprecated

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

Deprecated: Use ProposeCredentialV2.ProtoReflect.Descriptor instead.

func (*ProposeCredentialV2) GetComment

func (x *ProposeCredentialV2) GetComment() string

func (*ProposeCredentialV2) GetCredentialProposal

func (x *ProposeCredentialV2) GetCredentialProposal() *PreviewCredential

func (*ProposeCredentialV2) GetFiltersAttach

func (x *ProposeCredentialV2) GetFiltersAttach() []*types.Attachment

func (*ProposeCredentialV2) GetFormats

func (x *ProposeCredentialV2) GetFormats() []*Format

func (*ProposeCredentialV2) GetInvitationID

func (x *ProposeCredentialV2) GetInvitationID() string

func (*ProposeCredentialV2) GetType

func (x *ProposeCredentialV2) GetType() string

func (*ProposeCredentialV2) ProtoMessage

func (*ProposeCredentialV2) ProtoMessage()

func (*ProposeCredentialV2) ProtoReflect

func (x *ProposeCredentialV2) ProtoReflect() protoreflect.Message

func (*ProposeCredentialV2) Reset

func (x *ProposeCredentialV2) Reset()

func (*ProposeCredentialV2) String

func (x *ProposeCredentialV2) String() string

type ProposeCredentialV3

type ProposeCredentialV3 struct {
	Id   string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string                   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Body *ProposeCredentialV3Body `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// Optional field containing ID of the invitation which initiated this protocol.
	Pthid string `protobuf:"bytes,5,opt,name=pthid,proto3" json:"pthid,omitempty"`
	// contains filtered or unexported fields
}

ProposeCredentialV3 is an optional message sent by the potential Holder to the Issuer to initiate the protocol or in response to a offer-credential message when the Holder wants some adjustments made to the credential data offered by Issuer. swagger:model

func (*ProposeCredentialV3) Descriptor deprecated

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

Deprecated: Use ProposeCredentialV3.ProtoReflect.Descriptor instead.

func (*ProposeCredentialV3) GetAttachments

func (x *ProposeCredentialV3) GetAttachments() []*types.AttachmentV2

func (*ProposeCredentialV3) GetBody

func (*ProposeCredentialV3) GetId

func (x *ProposeCredentialV3) GetId() string

func (*ProposeCredentialV3) GetPthid

func (x *ProposeCredentialV3) GetPthid() string

func (*ProposeCredentialV3) GetType

func (x *ProposeCredentialV3) GetType() string

func (*ProposeCredentialV3) ProtoMessage

func (*ProposeCredentialV3) ProtoMessage()

func (*ProposeCredentialV3) ProtoReflect

func (x *ProposeCredentialV3) ProtoReflect() protoreflect.Message

func (*ProposeCredentialV3) Reset

func (x *ProposeCredentialV3) Reset()

func (*ProposeCredentialV3) String

func (x *ProposeCredentialV3) String() string

type ProposeCredentialV3Body

type ProposeCredentialV3Body struct {
	GoalCode string `protobuf:"bytes,1,opt,name=goal_code,json=goalCode,proto3" json:"goal_code,omitempty"`
	Comment  string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// credentialPreview is an optional JSON-LD object that represents the credential data that Prover wants to receive.
	CredentialPreview *anypb.Any `protobuf:"bytes,3,opt,name=credential_preview,json=credentialPreview,proto3" json:"credential_preview,omitempty"`
	// contains filtered or unexported fields
}

ProposeCredentialV3Body represents body for ProposeCredentialV3.

func (*ProposeCredentialV3Body) Descriptor deprecated

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

Deprecated: Use ProposeCredentialV3Body.ProtoReflect.Descriptor instead.

func (*ProposeCredentialV3Body) GetComment

func (x *ProposeCredentialV3Body) GetComment() string

func (*ProposeCredentialV3Body) GetCredentialPreview

func (x *ProposeCredentialV3Body) GetCredentialPreview() *anypb.Any

func (*ProposeCredentialV3Body) GetGoalCode

func (x *ProposeCredentialV3Body) GetGoalCode() string

func (*ProposeCredentialV3Body) ProtoMessage

func (*ProposeCredentialV3Body) ProtoMessage()

func (*ProposeCredentialV3Body) ProtoReflect

func (x *ProposeCredentialV3Body) ProtoReflect() protoreflect.Message

func (*ProposeCredentialV3Body) Reset

func (x *ProposeCredentialV3Body) Reset()

func (*ProposeCredentialV3Body) String

func (x *ProposeCredentialV3Body) String() string

type RequestCredentialV2

type RequestCredentialV2 struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @type
	// Comment is an optional field that provides human readable information about this Credential Offer,
	// so the offer can be evaluated by human judgment.
	// TODO: Should follow DIDComm conventions for l10n. [Issue #1300].
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Formats contains an entry for each requests~attach array entry, providing the the value
	// of the attachment @id and the verifiable credential format and version of the attachment.
	Formats []*Format `protobuf:"bytes,3,rep,name=formats,proto3" json:"formats,omitempty"`
	// RequestsAttach is a slice of attachments defining the requested formats for the credential
	RequestsAttach []*types.Attachment `protobuf:"bytes,4,rep,name=requests_attach,json=requestsAttach,proto3" json:"requests_attach,omitempty"` //requests~attach
	// contains filtered or unexported fields
}

RequestCredentialV2 is a message sent by the potential Holder to the Issuer, to request the issuance of a credential. Where circumstances do not require a preceding Offer Credential message (e.g., there is no cost to issuance that the Issuer needs to explain in advance, and there is no need for cryptographic negotiation), this message initiates the protocol. TODO: Need to add ~payment-receipt decorator [Issue #1298]. swagger:model

func (*RequestCredentialV2) Descriptor deprecated

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

Deprecated: Use RequestCredentialV2.ProtoReflect.Descriptor instead.

func (*RequestCredentialV2) GetComment

func (x *RequestCredentialV2) GetComment() string

func (*RequestCredentialV2) GetFormats

func (x *RequestCredentialV2) GetFormats() []*Format

func (*RequestCredentialV2) GetRequestsAttach

func (x *RequestCredentialV2) GetRequestsAttach() []*types.Attachment

func (*RequestCredentialV2) GetType

func (x *RequestCredentialV2) GetType() string

func (*RequestCredentialV2) ProtoMessage

func (*RequestCredentialV2) ProtoMessage()

func (*RequestCredentialV2) ProtoReflect

func (x *RequestCredentialV2) ProtoReflect() protoreflect.Message

func (*RequestCredentialV2) Reset

func (x *RequestCredentialV2) Reset()

func (*RequestCredentialV2) String

func (x *RequestCredentialV2) String() string

type RequestCredentialV3

type RequestCredentialV3 struct {
	Id   string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string                   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Body *RequestCredentialV3Body `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// Attachments is an array of attachments containing the presentation in the requested format(s).
	// Accepted values for the format attribute of each attachment are provided in the per format Attachment
	// registry immediately below.
	Attachments []*types.AttachmentV2 `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

RequestCredentialV3 is a message sent by the potential Holder to the Issuer, to request the issuance of a credential. Where circumstances do not require a preceding Offer Credential message (e.g., there is no cost to issuance that the Issuer needs to explain in advance, and there is no need for cryptographic negotiation), this message initiates the protocol. swagger:model

func (*RequestCredentialV3) Descriptor deprecated

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

Deprecated: Use RequestCredentialV3.ProtoReflect.Descriptor instead.

func (*RequestCredentialV3) GetAttachments

func (x *RequestCredentialV3) GetAttachments() []*types.AttachmentV2

func (*RequestCredentialV3) GetBody

func (*RequestCredentialV3) GetId

func (x *RequestCredentialV3) GetId() string

func (*RequestCredentialV3) GetType

func (x *RequestCredentialV3) GetType() string

func (*RequestCredentialV3) ProtoMessage

func (*RequestCredentialV3) ProtoMessage()

func (*RequestCredentialV3) ProtoReflect

func (x *RequestCredentialV3) ProtoReflect() protoreflect.Message

func (*RequestCredentialV3) Reset

func (x *RequestCredentialV3) Reset()

func (*RequestCredentialV3) String

func (x *RequestCredentialV3) String() string

type RequestCredentialV3Body

type RequestCredentialV3Body struct {
	GoalCode string `protobuf:"bytes,1,opt,name=goal_code,json=goalCode,proto3" json:"goal_code,omitempty"`
	Comment  string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

RequestCredentialV3Body represents body for RequestCredentialV3.

func (*RequestCredentialV3Body) Descriptor deprecated

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

Deprecated: Use RequestCredentialV3Body.ProtoReflect.Descriptor instead.

func (*RequestCredentialV3Body) GetComment

func (x *RequestCredentialV3Body) GetComment() string

func (*RequestCredentialV3Body) GetGoalCode

func (x *RequestCredentialV3Body) GetGoalCode() string

func (*RequestCredentialV3Body) ProtoMessage

func (*RequestCredentialV3Body) ProtoMessage()

func (*RequestCredentialV3Body) ProtoReflect

func (x *RequestCredentialV3Body) ProtoReflect() protoreflect.Message

func (*RequestCredentialV3Body) Reset

func (x *RequestCredentialV3Body) Reset()

func (*RequestCredentialV3Body) String

func (x *RequestCredentialV3Body) String() string

Jump to

Keyboard shortcuts

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