manifest

package
v0.0.0-...-89805ac Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 26 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 {
	// contains filtered or unexported fields
}

func NewManifestService

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

func (Service) Config

func (Service) CreateManifest

func (s Service) CreateManifest(request model.CreateManifestRequest) (*model.CreateManifestResponse, error)

func (Service) DeleteApplication

func (s Service) DeleteApplication(request model.DeleteApplicationRequest) error

func (Service) DeleteManifest

func (s Service) DeleteManifest(request model.DeleteManifestRequest) error

func (Service) DeleteResponse

func (s Service) DeleteResponse(request model.DeleteResponseRequest) error

func (Service) GetApplication

func (s Service) GetApplication(request model.GetApplicationRequest) (*model.GetApplicationResponse, error)

func (Service) GetApplications

func (s Service) GetApplications() (*model.GetApplicationsResponse, error)

func (Service) GetManifest

func (s Service) GetManifest(request model.GetManifestRequest) (*model.GetManifestResponse, error)

func (Service) GetManifests

func (s Service) GetManifests() (*model.GetManifestsResponse, error)

func (Service) GetResponse

func (s Service) GetResponse(request model.GetResponseRequest) (*model.GetResponseResponse, error)

func (Service) GetResponses

func (s Service) GetResponses() (*model.GetResponsesResponse, error)

func (Service) ProcessApplicationSubmission

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

func (Service) Status

func (s Service) Status() framework.Status

func (Service) Type

func (s Service) Type() framework.Type

func (Service) VerifyManifest

func (s Service) VerifyManifest(request model.VerifyManifestRequest) (*model.VerifyManifestResponse, error)

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