internal

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileStore

func NewFileStore(p string, pwd []byte, accCfg *vaultv1.AccountConfig) (wallet.Store, error)

func NewIPFSStore

func NewIPFSStore(node common.IPFSNode, accCfg *vaultv1.AccountConfig) (wallet.Store, error)

func NewMemoryStore

func NewMemoryStore(accCfg *vaultv1.AccountConfig) (wallet.Store, error)

Types

type FileStore

type FileStore struct {
	// contains filtered or unexported fields
}

func (*FileStore) GetAccount

func (ds *FileStore) GetAccount(name string) (wallet.Account, error)

func (*FileStore) JWKClaims

func (ds *FileStore) JWKClaims(acc wallet.Account) (string, error)

JWKClaims returns the JWKClaims for the store to be signed by the identity

func (*FileStore) PutAccount

func (ds *FileStore) PutAccount(w wallet.Account, name string) error

func (*FileStore) VerifyJWKClaims

func (ds *FileStore) VerifyJWKClaims(claims string, acc wallet.Account) error

VerifyJWKClaims verifies the JWKClaims for the store

type IPFSStore

type IPFSStore struct {
	// contains filtered or unexported fields
}

func (*IPFSStore) GetAccount

func (ds *IPFSStore) GetAccount(name string) (wallet.Account, error)

func (*IPFSStore) JWKClaims

func (ds *IPFSStore) JWKClaims(acc wallet.Account) (string, error)

JWKClaims returns the JWKClaims for the store to be signed by the identity

func (*IPFSStore) PutAccount

func (ds *IPFSStore) PutAccount(sc wallet.Account, name string) error

func (*IPFSStore) VerifyJWKClaims

func (ds *IPFSStore) VerifyJWKClaims(claims string, acc wallet.Account) error

VerifyJWKClaims verifies the JWKClaims for the store

type MemoryStore

type MemoryStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*MemoryStore) GetAccount

func (ds *MemoryStore) GetAccount(name string) (wallet.Account, error)

func (*MemoryStore) JWKClaims

func (ds *MemoryStore) JWKClaims(acc wallet.Account) (string, error)

JWKClaims returns the JWKClaims for the store to be signed by the identity

func (*MemoryStore) PutAccount

func (ds *MemoryStore) PutAccount(sc wallet.Account, name string) error

func (*MemoryStore) VerifyJWKClaims

func (ds *MemoryStore) VerifyJWKClaims(claims string, acc wallet.Account) error

VerifyJWKClaims verifies the JWKClaims for the store

Jump to

Keyboard shortcuts

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