bech32

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

README

bech32

ISC License

Package bech32 provides a Go implementation of the bech32 format.

Examples

Demonstrates how to decode a bech32 encoded string.

Demonstrates how to encode data into a bech32 string.

Documentation

Overview

Package bech32 provides a Go implementation of the bech32 format.

Bech32 strings consist of a prefix, followed by the separator :, then a checksummed data part encoded using the 32 characters "qpzry9x8gf2tvdw0s3jn54khce6mua7l".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded string) (string, []byte, int, error)

Decode decodes a string that was encoded with Encode.

func Encode

func Encode(prefix string, payload []byte, version []byte) string

Encode prepends the version byte, converts to uint5, and encodes to Bech32.

Types

This section is empty.

Jump to

Keyboard shortcuts

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