base58

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package base58 handles encoding/decoding of base58. This package provides functions that work constant-time, as well as their variable-time counterparts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded string, output []byte)

Decode writes into output.

If the resulting integer doesn't fit in output, the higher part will be truncated.

This function runs in constant time.

func Encode

func Encode(a []byte, resultLength int) string

Encode encodes a byte slice into a base58 string with length resultLength.

This function runs in constant time.

func VartimeDecode

func VartimeDecode(encoded string, output []byte)

VartimeDecode writes into output.

If the resulting integer doesn't fit in output, the higher part will be truncated.

This function does not have a constant-time guarantee.

func VartimeEncode

func VartimeEncode(a []byte, resultLength int) string

VartimeEncode encodes a byte slice into a base58 string with length resultLength.

This function does not have a constant-time guarantee.

Types

This section is empty.

Jump to

Keyboard shortcuts

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