hash

package
v0.0.0-...-942cd0b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package hash implements various hashing algorithms used in bitcoin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash160

func Hash160(data []byte) [20]byte

Hash160 applies sha256 followed by ripemd160.

func Hash256

func Hash256(data []byte) [32]byte

Hash256 applies two rounds of sha256 as in bitcoin.

func Murmur3

func Murmur3(key []byte, seed uint32) (hash uint32)

Murmur3 returns a hash from the provided key using the specified seed.

func Ripemd160

func Ripemd160(data []byte) [20]byte

func Sha256

func Sha256(data []byte) [32]byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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