has160

package
v1.0.2019 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 64

The blocksize of HAS-160 in bytes.

View Source
const Size = 20

The size of a HAS-160 checksum in bytes.

Variables

This section is empty.

Functions

func GETU32 added in v1.0.2011

func GETU32(ptr []byte) uint32

func New

func New() hash.Hash

New returns a new hash.Hash computing the HAS-160 checksum.

func PUTU32 added in v1.0.2011

func PUTU32(ptr []byte, a uint32)

func PUTU64 added in v1.0.2011

func PUTU64(ptr []byte, a uint64)

func Sum

func Sum(data []byte) (sum [Size]byte)

Sum returns the HAS-160 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL