# Packages
No description provided by the author
No description provided by the author
Copyright (c) 2017-2018 The qitmeer developers.
No description provided by the author
Package math provides integer math utilities.
Package mclock is a wrapper for a monotonic clock source.
No description provided by the author
No description provided by the author
No description provided by the author
Copyright (c) 2017-2018 The qitmeer developers.
# Functions
BigPow returns a ** b as a big integer.
Bytes2Hex returns the hexadecimal encoding of d.
CopyBytes returns an exact copy of the provided bytes.
FromHex returns the bytes represented by the hexadecimal string s.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
LeftPadBytes zero-pads slice to the left up to length l.
Compute x^n by using the binary powering algorithm (aka.
only for showing algorithm compare to use BigPow 1000000 1621 ns/op BigPow 300000 4200 ns/op PowBig.
Compute x^n mod m by using the binary powering algorithm panic when m == 0.
ReadBits encodes the absolute value of bigint as big-endian bytes.
RightPadBytes zero-pads slice to the right up to length l.
No description provided by the author
ToHex returns the hex representation of b, prefixed with '0x'.
ToHexArray creates a array of hex-string based on []byte.
TrimLeftZeroes returns a subslice of s without leading zeroes.
TrimRightZeroes returns a subslice of s without trailing zeroes.
# Type aliases
StorageSize is a wrapper around a float value that supports user friendly formatting.