bitcoin

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

to validate bitcoin addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version byte

to hold the type of the address

const (
	Livenet       Version = 0
	LivenetScript Version = 5
	Testnet       Version = 111
	TestnetScript Version = 196
)

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

func ValidateAddress

func ValidateAddress(address string) (Version, error)

check the address ad return its version

Jump to

Keyboard shortcuts

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