secstore

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: LGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecStore

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

func NewSecStore

func NewSecStore() *SecStore

func (*SecStore) AddKey

func (s *SecStore) AddKey(secret []byte)

func (*SecStore) DecryptMessage

func (s *SecStore) DecryptMessage(data []byte) ([]byte, error)

func (*SecStore) Destroy

func (s *SecStore) Destroy()

func (*SecStore) ExportKey

func (s *SecStore) ExportKey(password string) (string, error)

func (*SecStore) GetAddress

func (s *SecStore) GetAddress() common.Address

func (*SecStore) GetPubKey

func (s *SecStore) GetPubKey() []byte

func (*SecStore) Sign

func (s *SecStore) Sign(data []byte) []byte

func (*SecStore) SignFlipKey

func (s *SecStore) SignFlipKey(fk *types.PublicFlipKey) (*types.PublicFlipKey, error)

func (*SecStore) SignFlipKeysPackage

func (s *SecStore) SignFlipKeysPackage(fk *types.PrivateFlipKeysPackage) (*types.PrivateFlipKeysPackage, error)

func (*SecStore) SignTx

func (s *SecStore) SignTx(tx *types.Transaction) (*types.Transaction, error)

func (*SecStore) VrfEvaluate

func (s *SecStore) VrfEvaluate(data []byte) (index [32]byte, proof []byte)

Jump to

Keyboard shortcuts

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