state

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyState

type KeyState interface {
	SaveSeed(seed, salt, mnemonic string) error
	GetSeed() (string, string, error)
	GetMnemonic() (string, string, error)
	GetLastSeedIndex(id uint32) (uint32, error)
	GetLastChildIndex(child int64) (uint32, error)
	AddChild(childIndex uint32, parentChildId int64) (int64, error)
	GetChild(childId int64) (index uint32, parentId int64, rootDerivation int64, err error)
	GetChildrenKeys(parentId int64) ([]KeyType, error)
	GetAllParentRootKeys() ([]KeyType, error)
}

func InitKeyState

func InitKeyState(db state.DBManager) (KeyState, error)

type KeyType

type KeyType struct {
	Id             int64
	Index          uint32
	ParentId       int64
	RootDerivation int64
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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