helpers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bech32mEncode

func Bech32mEncode(hrp string, data []byte) (string, error)

func Encode

func Encode(hrp string, data []byte) (string, error)

func GetChecksum

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

Calculate checksum (double SHA-256)

func GetEccKeyPair

func GetEccKeyPair() ecies.PrivateKey

func GetHash160

func GetHash160(data []byte) ([]byte, error)

Hash160 = ripemd160(sha256(data))

func TaggedHash

func TaggedHash(tag string, data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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