manifest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DenialResponse is an error response corresponding to a credential denial
	DenialResponse errresp.Type = "DenialResponse"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialManifestContainer

type CredentialManifestContainer struct {
	Manifest manifest.CredentialManifest `json:"credential_manifest"`
}

CredentialManifestContainer represents what is signed over and return for a credential manifest

type CredentialResponseContainer

type CredentialResponseContainer struct {
	Response    manifest.CredentialResponse `json:"credential_response"`
	Credentials []any                       `json:"verifiableCredentials,omitempty"`
}

CredentialResponseContainer represents what is signed over and return for a credential response

type Service

type Service struct {
	Clock clock.Clock
	// contains filtered or unexported fields
}

func NewManifestService

func NewManifestService(config config.ManifestServiceConfig, s storage.ServiceStorage, keyStore *keystore.Service, didResolver resolution.Resolver, credential *credential.Service, presentationSvc *presentation.Service) (*Service, error)

func (Service) Config

func (Service) CreateManifest

func (Service) CreateRequest

func (s Service) CreateRequest(ctx context.Context, req model.CreateRequestRequest) (*model.Request, error)

func (Service) DeleteApplication

func (s Service) DeleteApplication(ctx context.Context, request model.DeleteApplicationRequest) error

func (Service) DeleteManifest

func (s Service) DeleteManifest(ctx context.Context, request model.DeleteManifestRequest) error

func (Service) DeleteRequest

func (s Service) DeleteRequest(ctx context.Context, request model.DeleteRequestRequest) error

func (Service) DeleteResponse

func (s Service) DeleteResponse(ctx context.Context, request model.DeleteResponseRequest) error

func (Service) GetApplication

func (Service) GetManifest

func (Service) GetRequest

func (s Service) GetRequest(ctx context.Context, request *model.GetRequestRequest) (*model.Request, error)

func (Service) GetResponse

func (Service) ListApplications

func (s Service) ListApplications(ctx context.Context) (*model.ListApplicationsResponse, error)

func (Service) ListManifests

func (s Service) ListManifests(ctx context.Context) (*model.ListManifestsResponse, error)

func (Service) ListRequests

func (s Service) ListRequests(ctx context.Context) (*model.ListRequestsResponse, error)

func (Service) ListResponses

func (s Service) ListResponses(ctx context.Context) (*model.ListResponsesResponse, error)

func (Service) ProcessApplicationSubmission

func (s Service) ProcessApplicationSubmission(ctx context.Context, request model.SubmitApplicationRequest) (*operation.Operation, error)

ProcessApplicationSubmission stores the application in a pending state, along with an operation. When there is an issuance template related to this manifest, the operation is done immediately. Once the operation is done, the Operation.Response field will be of type model.SubmitApplicationResponse. Invalid applications return an operation marked as done, with Response that represents denial. The state of the application can be updated by calling CancelOperation, or by calling ReviewApplicationSubmission. When the state is updated, the operation is marked as done.

func (Service) ReviewApplication

ReviewApplication moves an application state and marks the operation associated with it as done. A credential response is stored.

func (Service) Status

func (s Service) Status() framework.Status

func (Service) Type

func (s Service) Type() framework.Type

func (Service) VerifyManifest

VerifyManifest verifies a manifest's signature and makes sure the manifest is compliant with the specification

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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