wallet

package
v0.16.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	Accounts  []*modulev1.Account
	Address   string
	PublicKey []byte
}

Wallet is a local temp file system which spawns shares as proto actors

func New

func New(ctx context.Context) (files.Directory, *Wallet, error)

New takes request context and root directory and returns a new Keychain 1. It requires an initial credential id to be passed as a value within the accumulator object

func (*Wallet) Decrypt

func (kc *Wallet) Decrypt(dir files.Directory, associatedData []byte) (files.Directory, error)

Decrypt takes a keyset handle and uses DAED to decrypt a message

func (*Wallet) Encrypt

func (kc *Wallet) Encrypt(dir files.Directory, associatedData []byte) (files.Directory, error)

Encrypt takes a keyset handle and uses DAED to encrypt a message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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