tools

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKeyStore

func LoadKeyStore(keyfile, passfile string) (*keystore.Key, error)

LoadKeyStore load keystore from keyfile and passfile

func SafeReadFile added in v3.2.0

func SafeReadFile(file string) ([]byte, error)

SafeReadFile check permissions is '0400' and read file

Types

type WeightedString

type WeightedString struct {
	Content string
	Weight  uint64
}

WeightedString weighted string

type WeightedStringSlice

type WeightedStringSlice []*WeightedString

WeightedStringSlice weighted string slice

func (WeightedStringSlice) Add

func (s WeightedStringSlice) Add(content string, weight uint64) WeightedStringSlice

Add add item

func (WeightedStringSlice) GetStrings

func (s WeightedStringSlice) GetStrings() (result []string)

GetStrings get strings (commonly sort at first)

func (WeightedStringSlice) Len

func (s WeightedStringSlice) Len() int

Len impl Sortable

func (WeightedStringSlice) Less

func (s WeightedStringSlice) Less(i, j int) bool

Less impl Sortable

func (WeightedStringSlice) Reverse

func (s WeightedStringSlice) Reverse()

Reverse reverse items

func (WeightedStringSlice) Sort

Sort sort items

func (WeightedStringSlice) String

func (s WeightedStringSlice) String() (result string)

func (WeightedStringSlice) Swap

func (s WeightedStringSlice) Swap(i, j int)

Swap impl Sortable

Directories

Path Synopsis
Package crypto provides facilities for ecdsa encryption and decryption.
Package crypto provides facilities for ecdsa encryption and decryption.
Package keystore encrypt private key and save on disk uses JSON encoding.
Package keystore encrypt private key and save on disk uses JSON encoding.
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

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