base58

package
v0.0.0-...-4359d65 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0, LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

base58 is a binary-to-text codec that encodes into a ASCII/ANSI-string (single bytes) and decodes back to the original data in binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDecode

func CheckDecode(encoded []byte) ([]byte, error)

Decodes the Base58-content then checks the checksum. Returns content without the checksum.

func CheckEncode

func CheckEncode(dataWithChecksum []byte) ([]byte, error)

CheckEncode checks the concatenated 4-byte checksum then encodes the data to Base58.

func ChecksumEncode

func ChecksumEncode(data []byte) []byte

ChecksumEncode calculates the 4-byte checksum, concatenates the checksum, then encodes the content into Base58.

func Decode

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

Decode decodes the Base58-encoded content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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