base58

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package base58, form from https://github.com/itchyny/base58-go

Index

Constants

This section is empty.

Variables

View Source
var (
	// FlickrEncoding -
	FlickrEncoding = newEncoding(encodeFlickr)
	// RippleEncoding -
	RippleEncoding = newEncoding(encodeRipple)
	// BitcoinEncoding -
	BitcoinEncoding = newEncoding(encodeBitcoin)
)

Functions

This section is empty.

Types

type Encoding

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

Encoding -

func (*Encoding) Decode

func (enc *Encoding) Decode(dst, src []byte) (int, error)

Decode decodes src using the encoding enc.

func (*Encoding) DecodeString

func (enc *Encoding) DecodeString(s string) ([]byte, error)

DecodeString returns the bytes represented by the base58 string s.

func (*Encoding) Encode

func (enc *Encoding) Encode(dst, src []byte)

Encode -

func (*Encoding) EncodeToString

func (enc *Encoding) EncodeToString(src []byte) string

EncodeToString returns the base58 encoding of src.

Jump to

Keyboard shortcuts

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