package
1.5.0
Repository: https://github.com/meshplus/gosdk.git
Documentation: pkg.go.dev

# Packages

Package bitutil implements fast bitwise operations.
No description provided by the author
Copyright 2015 The go-ethereum Authors This file is part of the go-ethereum library.
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
Package math provides integer math utilities.
No description provided by the author

# Functions

AbsolutePath returns datadir + filename, or filename if it is absolute.
No description provided by the author
BigToAddress returns Address with byte values of b.
BigToBytes returns the bytes of a big integer with the size specified by **base**.
BigToHash sets byte representation of b to hash.
No description provided by the author
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
No description provided by the author
BytesToHash sets b to hash.
BytesToInt32 converts bytes of hex string to int32.
No description provided by the author
No description provided by the author
CopyBytes returns an exact copy of the provided bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecodeUint32 decode the bytes to the uint32.
DecodeUint32 decode the bytes to the uint32.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FileExist checks if a file exists at filePath.
FromHex returns the bytes represented by the hexadecimal string s.
GetGoPath gets the GOPATH in this environment.
No description provided by the author
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
No description provided by the author
No description provided by the author
IntToBytes2 convert int to [2]byte NOTE: i should less than 2^15.
IntToBytes4 convert int to [4]byte NOTE: i should less than 2^31.
No description provided by the author
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
Padding char char at the begin of the string.
LeftPadBytes zero-pads slice to the left up to length l.
Padding 0 char at the begin of the string.
Padding 0 char at the begin of the string.
LoadJSON reads the given file and unmarshals its content.
MakeName creates a node name that follows the ethereum convention for such names.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Return a random choice with specific ratio, true of false.
Return a random int in the specific range.
No description provided by the author
Random utils */ Generate random string with specific length.
No description provided by the author
No description provided by the author
No description provided by the author
RightPadBytes zero-pads slice to the right up to length l.
Padding 0 char at the end of the string.
Padding 0 char at the end of the string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Strip returns a slice of the byte s with all leading and trailing Unicode code points contained in cutset removed.
ToHex returns the hex representation of b, prefixed with '0x'.
No description provided by the author

# Constants

Lengths of hashes and addresses in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Lengths of hashes and addresses in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.

# Structs

MixedcaseAddress retains the original string, which may or may not be correctly checksummed.
No description provided by the author

# Type aliases

Address represents the 20 byte address of an Ethereum account.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
StorageSize is a wrapper around a float value that supports user friendly formatting.
UnprefixedAddress allows marshaling an Address without 0x prefix.
UnprefixedHash allows marshaling a Hash without 0x prefix.