credentials

package
v0.0.0-...-b2c4e65 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIssuerCredential

func AddIssuerCredential(conn *alaTypes.Connection, signedJWT string, entityDid *alaTypes.Did) (*types.Transaction, string, error)

func AddIssuerCredentials

func AddIssuerCredentials(client *alaTypes.Connection, credentials []string, entityDid *alaTypes.Did) ([]string, []string, error)

func AddSubjectCredential

func AddSubjectCredential(conn *alaTypes.Connection, signedCredential string, subjectDid *alaTypes.Did, URI string) (*types.Transaction, string, error)

func AddSubjectCredentials

func AddSubjectCredentials(client *alaTypes.Connection, signedCredentials []string, subjectDid *alaTypes.Did, URI string) ([]string, []string, error)

TODO: URI right now is just one string, users might want to one URI for each credentials

func GetCredentialStatus

func GetCredentialStatus(conn *alaTypes.Connection, signedCredential string, subject *alaTypes.Did) (*alaTypes.PSMHashStatuses, error)

func GetCredentialsStatus

func GetCredentialsStatus(conn *alaTypes.Connection, signedCredentials []string, subject *alaTypes.Did) ([]*alaTypes.PSMHashStatuses, error)

func GetIssuerCredentialStatus

func GetIssuerCredentialStatus(conn *alaTypes.Connection, signedCredential string) (*alaTypes.PSMHashStatus, error)

func GetSubjectCredentialList

func GetSubjectCredentialList(conn *alaTypes.Connection, subject common.Address) ([]string, error)

func GetSubjectCredentialStatus

func GetSubjectCredentialStatus(conn *alaTypes.Connection, subjectDid *alaTypes.Did, signedCredential string) (*alaTypes.PSMHashStatus, error)

func GetSubjectCredentialsStatus

func GetSubjectCredentialsStatus(conn *alaTypes.Connection, subjectDid *alaTypes.Did, signedCredentials []string) ([]*alaTypes.PSMHashStatus, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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