address

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

base85 → bytes and decode the address version substitute for broken decoder in bitgoin/address

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 (
	BtcLivenet       Version = 0
	BtcLivenetScript Version = 5
	BtcTestnet       Version = 111
	BtcTestnetScript Version = 196

	LtcLivenet Version = 48
	//LtcLivenetScript  Version = 5
	LtcLivenetScript2 Version = 50
	//LtcTestnet        Version = 111
	//LtcTestnetScript  Version = 196
	LtcTestnetScript2 Version = 58
)

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