Documentation ¶
Index ¶
Constants ¶
View Source
const AddrLen = ripemd160.Size
AddrLen ...
View Source
const HashLen = sha256.Size
HashLen ...
Variables ¶
This section is empty.
Functions ¶
func Checksum ¶
Checksum Create checksum of [length] bytes from the 256 bit hash of the byte slice.
Returns the lower [length] bytes of the hash Errors if length > 32.
func ComputeHash160 ¶
ComputeHash160 Compute a cryptographically strong 160 bit hash of the input
byte slice.
func ComputeHash256 ¶
ComputeHash256 Compute a cryptographically strong 256 bit hash of the input
byte slice.
func ComputeHash256Ranges ¶
ComputeHash256Ranges Compute a cryptographically strong 256 bit hash of the input
byte slice in the ranges specified.
Example: ComputeHash256Ranges({1, 2, 4, 8, 16}, {{1, 2},
{3, 5}}) is equivalent to ComputeHash256({2, 8, 16}).
Types ¶
type Hash160 ¶
Hash160 A 160 bit long hash value.
func ComputeHash160Array ¶
ComputeHash160Array Compute a cryptographically strong 160 bit hash of the
input byte slice.
type Hash256 ¶
Hash256 A 256 bit long hash value.
func ComputeHash256Array ¶
ComputeHash256Array Compute a cryptographically strong 256 bit hash of the
input byte slice.
Click to show internal directories.
Click to hide internal directories.