Documentation ¶
Index ¶
- func DeleteAccount(accDid string) error
- func FetchCredential(keyDid string) (servicetypes.Credential, error)
- func GetAccount(accDid string) (models.Account, error)
- func GetKeyshare(keyDid string) (models.KeyShare, error)
- func InsertAccount(acc models.Account) error
- func InsertKeyshare(ks models.KeyShare) error
- func ReadInbox(accDid string) ([]*models.InboxMessage, error)
- func StoreCredential(cred servicetypes.Credential) error
- func WriteInbox(toDid string, msg *models.InboxMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAccount ¶
func FetchCredential ¶
func FetchCredential(keyDid string) (servicetypes.Credential, error)
func GetAccount ¶
The function retrieves an account from a key store table using the account's DID and returns it as a model.
func GetKeyshare ¶
The function retrieves a keyshare from a vault based on a given key DID.
func InsertAccount ¶
The function inserts an account and its associated key shares into a vault.
func InsertKeyshare ¶
The function inserts a keyshare into a table and returns an error if there is one.
func ReadInbox ¶
func ReadInbox(accDid string) ([]*models.InboxMessage, error)
ReadInbox reads the inbox for the account
func StoreCredential ¶
func StoreCredential(cred servicetypes.Credential) error
func WriteInbox ¶
func WriteInbox(toDid string, msg *models.InboxMessage) error
WriteInbox writes a message to the inbox for the account
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.