Documentation ¶
Overview ¶
Package sha256truncated provides a sha256 hash.Hash whose output is truncated to 20 bytes (160 bits).
This is the default hashing algorithm used by IAVL+ trees.
s256 := sha256.New() // crypto/sha256 s256Truncated := New() // this package // Use like any other hash.Hash ... // Contract: s256Trunc.Sum(nil) == s256.Sum(nil)[:20]
Index ¶
Constants ¶
View Source
const Size = 20
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.