airgapped

package
v0.0.0-...-ee95d54 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var N = int(math.Pow(2, 16))

Functions

This section is empty.

Types

type Machine

type Machine struct {
	sync.Mutex

	ResultFolder string
	// contains filtered or unexported fields
}

func NewMachine

func NewMachine(dbPath string) (*Machine, error)

func (*Machine) DropOperationsLog

func (am *Machine) DropOperationsLog(dkgIdentifier string) error

func (*Machine) DropSensitiveData

func (am *Machine) DropSensitiveData()

DropSensitiveData remove sensitive data from memory

func (*Machine) GenerateKeys

func (am *Machine) GenerateKeys() error

func (*Machine) GetBLSKeyrings

func (am *Machine) GetBLSKeyrings() (map[string]*dkg.BLSKeyring, error)

func (*Machine) GetOperationResult

func (am *Machine) GetOperationResult(operation client.Operation) (client.Operation, error)

func (*Machine) GetPubKey

func (am *Machine) GetPubKey() kyber.Point

func (*Machine) InitKeys

func (am *Machine) InitKeys() error

InitKeys load keys public and private keys for DKG from LevelDB. If keys do not exist, it creates them.

func (*Machine) LoadKeysFromDB

func (am *Machine) LoadKeysFromDB() error

LoadKeysFromDB load DKG keys from LevelDB

func (*Machine) ProcessOperation

func (am *Machine) ProcessOperation(operation client.Operation, storeOperation bool) (string, error)

func (*Machine) ReplayOperationsLog

func (am *Machine) ReplayOperationsLog(dkgIdentifier string) error

func (*Machine) SaveKeysToDB

func (am *Machine) SaveKeysToDB() error

SaveKeysToDB save DKG keys to LevelDB

func (*Machine) SensitiveDataRemoved

func (am *Machine) SensitiveDataRemoved() bool

SensitiveDataRemoved indicates whether sensitive information has been cleared

func (*Machine) SetBaseSeed

func (am *Machine) SetBaseSeed(mnemonic string) error

func (*Machine) SetEncryptionKey

func (am *Machine) SetEncryptionKey(key []byte)

SetEncryptionKey set a key to encrypt and decrypt sensitive data.

func (*Machine) SetResultFolder

func (am *Machine) SetResultFolder(resultFolder string)

func (*Machine) VerifySign

func (am *Machine) VerifySign(msg []byte, fullSignature []byte, dkgIdentifier string) error

VerifySign verifies a signature of a message

type RoundOperationLog

type RoundOperationLog map[string][]client.Operation

type SignData

type SignData struct {
	ID   string
	Data []byte
}

Jump to

Keyboard shortcuts

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