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 ¶
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.
Click to show internal directories.
Click to hide internal directories.