Documentation ¶
Index ¶
- Constants
- Variables
- func GetPort(addr string) (string, error)
- func GetStorageByAddressKey(address ethcmn.Address, key []byte) ethcmn.Hash
- func GetTransactionHash(tx []byte) []byte
- func Hash(result []byte) []byte
- func HashToBigInt(s string) *big.Int
- func PadZero(s string) string
- func PrefixAddress(in string) string
- func PrefixHex(in string) string
- func PrintStringMap(dict map[string]interface{}, msg string, sorted bool)
- func RecoverPlain(sighash common.Hash, R, S, Vb *big.Int, homestead bool) (*ecdsa.PublicKey, error)
- func RlpHash(x interface{}) (h common.Hash)
- func SHA2(data []byte) []byte
- func ToUncompressedSig(R, S, Vb *big.Int) []byte
- func TrimAddress(in string) string
- func TrimHex(in string) string
- type PriorityQueue
- type Queued
Constants ¶
View Source
const ( AddrPrefix = "0lt" HexPrefix = "0x" )
Hex prefix
Variables ¶
View Source
var ErrParsingAddress = errors.New("failed to parse network address")
Functions ¶
func GetStorageByAddressKey ¶ added in v0.18.15
func GetTransactionHash ¶ added in v0.18.15
func HashToBigInt ¶ added in v0.18.15
hashToBigInt used to convert mostly chain id which is a string
func PrefixAddress ¶ added in v0.14.0
func PrintStringMap ¶ added in v0.18.15
func RecoverPlain ¶ added in v0.18.15
func ToUncompressedSig ¶ added in v0.18.15
func TrimAddress ¶ added in v0.14.0
Types ¶
type PriorityQueue ¶ added in v0.10.4
type PriorityQueue []*Queued
A PriorityQueue implements heap.Interface and holds Items.
func (PriorityQueue) Len ¶ added in v0.10.4
func (vq PriorityQueue) Len() int
func (PriorityQueue) Less ¶ added in v0.10.4
func (vq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶ added in v0.10.4
func (vq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶ added in v0.10.4
func (vq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶ added in v0.10.4
func (vq PriorityQueue) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.