types

package
v0.0.0-...-521dfd6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedProtocol  = errors.New("unsupported presentation protocol")
	ErrInvalidEndpoint      = errors.New("invalid presentation endpoint")
	ErrInvalidPresentation  = errors.New("invalid presentation data")
	ErrInvalidSubmission    = errors.New("invalid presentation submission")
	ErrPresentationFailed   = errors.New("presentation submission failed")
	ErrNetworkFailed        = errors.New("network request failed")
	ErrInvalidResponse      = errors.New("invalid response from verifier")
	ErrTimeoutExpired       = errors.New("presentation request timeout expired")
	ErrAuthenticationFailed = errors.New("authentication failed")
	ErrInvalidDescriptorMap = errors.New("invalid descriptor map")
	ErrPluginNotFound       = errors.New("presenter plugin not found")
	ErrNilPlugin            = errors.New("presenter plugin cannot be nil")
)

Sentinel errors for presentation operations

Functions

This section is empty.

Types

type DescriptorMapItem

type DescriptorMapItem struct {
	ID         string             `json:"id"`
	Format     string             `json:"format"`
	Path       string             `json:"path"`
	PathNested *DescriptorMapItem `json:"path_nested,omitempty"`
}

type PresentationRequest

type PresentationRequest struct {
	State                         string
	ClientMetadata                interface{}
	AuthorizationEncryptedRespAlg string
	AuthorizationEncryptedRespEnc string
}

PresentationRequest contains the information needed to present a credential

type PresentationSubmission

type PresentationSubmission struct {
	ID            string              `json:"id"`
	DefinitionID  string              `json:"definition_id"`
	DescriptorMap []DescriptorMapItem `json:"descriptor_map"`
}

type Presenter

type Presenter interface {
	Present(protocol SupportedPresentationProtocol, endpoint url.URL, serializedPresentation []byte, presentationSubmission PresentationSubmission, request *PresentationRequest) error
}

type PresenterError

type PresenterError struct {
	Protocol SupportedPresentationProtocol `json:"protocol"`
	Endpoint string                        `json:"endpoint,omitempty"`
	Op       string                        `json:"operation"`
	Err      error                         `json:"error"`
}

PresenterError represents an error during presentation operations

func NewPresenterError

func NewPresenterError(protocol SupportedPresentationProtocol, endpoint, op string, err error) *PresenterError

NewPresenterError creates a new PresenterError

func (*PresenterError) Error

func (e *PresenterError) Error() string

func (*PresenterError) Unwrap

func (e *PresenterError) Unwrap() error

type SupportedPresentationProtocol

type SupportedPresentationProtocol int
const (
	Oid4vp SupportedPresentationProtocol = iota
)

Jump to

Keyboard shortcuts

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