base58

package
v0.0.0-...-e1d1ae0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdEncoding = MustNewEncoder("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")

StdEncoding is Base58 Encoder.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

An Encoder implements indigo.Encoder interface by Base58.

func MustNewEncoder

func MustNewEncoder(source string) *Encoder

MustNewEncoder returns new base58.Encoder.

func NewEncoder

func NewEncoder(source string) (*Encoder, error)

NewEncoder returns new base58.Encoder.

func (*Encoder) Decode

func (enc *Encoder) Decode(id string) (uint64, error)

Decode returns decoded unsigned int64 by Base58.

func (*Encoder) Encode

func (enc *Encoder) Encode(id uint64) string

Encode returns encoded string by Base58.

Jump to

Keyboard shortcuts

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