Documentation ¶
Index ¶
- Variables
- type Machine
- func (am *Machine) DropOperationsLog(dkgIdentifier string) error
- func (am *Machine) DropSensitiveData()
- func (am *Machine) GenerateKeys() error
- func (am *Machine) GetBLSKeyrings() (map[string]*dkg.BLSKeyring, error)
- func (am *Machine) GetOperationResult(operation client.Operation) (client.Operation, error)
- func (am *Machine) GetPubKey() kyber.Point
- func (am *Machine) InitKeys() error
- func (am *Machine) LoadKeysFromDB() error
- func (am *Machine) ProcessOperation(operation client.Operation, storeOperation bool) (string, error)
- func (am *Machine) ReplayOperationsLog(dkgIdentifier string) error
- func (am *Machine) SaveKeysToDB() error
- func (am *Machine) SensitiveDataRemoved() bool
- func (am *Machine) SetBaseSeed(mnemonic string) error
- func (am *Machine) SetEncryptionKey(key []byte)
- func (am *Machine) SetResultFolder(resultFolder string)
- func (am *Machine) VerifySign(msg []byte, fullSignature []byte, dkgIdentifier string) error
- type RoundOperationLog
- type SignData
Constants ¶
This section is empty.
Variables ¶
View Source
var N = int(math.Pow(2, 16))
Functions ¶
This section is empty.
Types ¶
type Machine ¶
func NewMachine ¶
func (*Machine) DropOperationsLog ¶
func (*Machine) DropSensitiveData ¶
func (am *Machine) DropSensitiveData()
DropSensitiveData remove sensitive data from memory
func (*Machine) GenerateKeys ¶
func (*Machine) GetBLSKeyrings ¶
func (am *Machine) GetBLSKeyrings() (map[string]*dkg.BLSKeyring, error)
func (*Machine) GetOperationResult ¶
func (*Machine) InitKeys ¶
InitKeys load keys public and private keys for DKG from LevelDB. If keys do not exist, it creates them.
func (*Machine) LoadKeysFromDB ¶
LoadKeysFromDB load DKG keys from LevelDB
func (*Machine) ProcessOperation ¶
func (*Machine) ReplayOperationsLog ¶
func (*Machine) SaveKeysToDB ¶
SaveKeysToDB save DKG keys to LevelDB
func (*Machine) SensitiveDataRemoved ¶
SensitiveDataRemoved indicates whether sensitive information has been cleared
func (*Machine) SetBaseSeed ¶
func (*Machine) SetEncryptionKey ¶
SetEncryptionKey set a key to encrypt and decrypt sensitive data.
func (*Machine) SetResultFolder ¶
type RoundOperationLog ¶
Click to show internal directories.
Click to hide internal directories.