utils

package
v0.0.0-...-31eb2eb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base58Encode

func Base58Encode(input []byte) []byte

* Ecoding Algorithm * Till quotient is not zero: * q = input mod base * use remainder to get string of base to be converted to * ex: if remainder 1 and base 2, resulting value is 1 * ex: if remainder 2 and base 58, resulting value is 2 (check string above) * * Once reulting string found: * Reverse string (mod returns remainder, i.e. last character first) * Account for any leading zeros

func ConvertToHex

func ConvertToHex(value interface{}) []byte

func ReverseBytes

func ReverseBytes(data []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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