crypto

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash160

func Hash160(b []byte) []byte

Hash160 computes the sha256 + ripemd160 of b.

func Hash256

func Hash256(b []byte) []byte

Hash256 computes the sha256^2 hash of b.

func SHA1

func SHA1(b []byte) []byte

SHA1 computes the sha1 hash of b.

func SHA256

func SHA256(b []byte) []byte

SHA256 computes the sha256 hash of b.

func VerifySignature added in v0.72.0

func VerifySignature(msg []byte, sig []byte, pub []byte) bool

VerifySignature checks that sig is msg's signature with pub.

Types

This section is empty.

Jump to

Keyboard shortcuts

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