litecoin

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: ISC Imports: 5 Imported by: 0

Documentation

Overview

to validate litecoin addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBitcoin

func FromBitcoin(address string) (string, error)

check the address and return its version

func IsTestnet

func IsTestnet(version Version) bool

detect if version is a testnet value

func ValidateAddress

func ValidateAddress(address string) (Version, AddressBytes, error)

check the address and return its version

Types

type AddressBytes

type AddressBytes [20]byte

to hold thefixed-length address bytes

type Version

type Version byte

to hold the type of the address

const (
	Livenet        Version = 48
	LivenetScript  Version = 5
	LivenetScript2 Version = 50
	Testnet        Version = 111
	TestnetScript  Version = 196
)

from: https://en.bitcoin.it/wiki/List_of_address_prefixes

Jump to

Keyboard shortcuts

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