vault

package
v0.6.25-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAccount

func DeleteAccount(accDid string) error

func FetchCredential

func FetchCredential(keyDid string) (servicetypes.Credential, error)

func GetAccount

func GetAccount(accDid string) (models.Account, error)

The function retrieves an account from a key store table using the account's DID and returns it as a model.

func GetKeyshare

func GetKeyshare(keyDid string) (models.KeyShare, error)

The function retrieves a keyshare from a vault based on a given key DID.

func InsertAccount

func InsertAccount(acc models.Account) error

The function inserts an account and its associated key shares into a vault.

func InsertKeyshare

func InsertKeyshare(ks models.KeyShare) error

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.

Jump to

Keyboard shortcuts

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