verifier

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

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	// contains filtered or unexported fields
}

Profile db operation.

func New

func New(provider ariesstorage.Provider) (*Profile, error)

New returns new credential recorder instance.

func (*Profile) DeleteProfile

func (c *Profile) DeleteProfile(name string) error

DeleteProfile deletes the verifier profile from underlying store.

func (*Profile) GetProfile

func (c *Profile) GetProfile(id string) (*ProfileData, error)

GetProfile retrieves the profile data based on id.

func (*Profile) SaveProfile

func (c *Profile) SaveProfile(data *ProfileData) error

SaveProfile saves the profile data.

type ProfileData

type ProfileData struct {
	// profile id - avoid using special characters or whitespaces
	// required: true
	ID string `json:"id,omitempty"`
	// verifier name
	// required: true
	Name string `json:"name"`
	// credential verification checks - supported options : proof and status.
	CredentialChecks []string `json:"credentialChecks,omitempty"`
	// presentation verification checks - supported options : proof.
	PresentationChecks []string `json:"presentationChecks,omitempty"`
}

ProfileData verifier profile data.

Jump to

Keyboard shortcuts

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