Documentation ¶
Index ¶
- type Credentials
- func (c *Credentials) NewCredential(contexts []string, subjectID string, subject map[string]interface{}, ...) (*verifiable.Credential, error)
- func (c *Credentials) NewPresentation(contexts []string, vc ...*verifiable.Credential) (*verifiable.Presentation, error)
- func (c *Credentials) ParsePresentation(vpBytes []byte) (*verifiable.Presentation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
func (*Credentials) NewCredential ¶
func (c *Credentials) NewCredential(contexts []string, subjectID string, subject map[string]interface{}, proof bool) (*verifiable.Credential, error)
NewCredential creates a Verifiable Credential without proofs.
func (*Credentials) NewPresentation ¶
func (c *Credentials) NewPresentation(contexts []string, vc ...*verifiable.Credential) (*verifiable.Presentation, error)
NewPresentation creates a Verifiable Presentation without proofs.
func (*Credentials) ParsePresentation ¶
func (c *Credentials) ParsePresentation(vpBytes []byte) (*verifiable.Presentation, error)
ParsePresentation without verifying VP proofs.
Click to show internal directories.
Click to hide internal directories.