 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( HashLen = sha256.Size AddrLen = ripemd160.Size )
Variables ¶
      View Source
      
  
var ErrInvalidHashLen = errors.New("invalid hash length")
    Functions ¶
func Checksum ¶
Checksum creates a checksum of [length] bytes from the 256 bit hash of the byte slice.
Returns: the lower [length] bytes of the hash Panics if length > 32.
func ComputeHash160 ¶
ComputeHash160 computes a cryptographically strong 160 bit hash of the input byte slice.
func ComputeHash256 ¶
ComputeHash256 computes a cryptographically strong 256 bit hash of the input byte slice.
func PubkeyBytesToAddress ¶
Types ¶
type Hash160 ¶
Hash160 A 160 bit long hash value.
func ComputeHash160Array ¶
ComputeHash160Array computes a cryptographically strong 160 bit hash of the input byte slice.
type Hash256 ¶
Hash256 A 256 bit long hash value.
func ComputeHash256Array ¶
ComputeHash256Array computes a cryptographically strong 256 bit hash of the input byte slice.
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| Package hashingmock is a generated GoMock package. | Package hashingmock is a generated GoMock package. | 
 Click to show internal directories. 
   Click to hide internal directories.