Go service for converting between address formats
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
address Fix generation of Copay testnet addresses. Dec 28, 2017
baseconv Add a bounds check to avoid panicking Feb 5, 2018
cashaddress Enforce a lowercase prefix on decoded cashaddresses Jan 13, 2018
cmd Initial commit of a functioning address conversion service Dec 25, 2017
legacy Update Godoc comments for better clarity Dec 25, 2017
static Validate input length and blacklist known test addresses Nov 11, 2018
vendor/github.com
.gitignore Add basic Makefile, Dockerfile, and update .gitignore Dec 25, 2017
Dockerfile
Gopkg.lock Initial commit of a functioning address conversion service Dec 25, 2017
Gopkg.toml Implement CashAddr support Dec 22, 2017
LICENSE Initial commit Dec 20, 2017
Makefile Reindent HTML, and add a page title Dec 25, 2017
README.md Add cashaddrjs to README. Jan 2, 2018

README.md

CashAddr Converter

This repository is a go implementation of the cashaddr and copay Bitcoin Cash address formats. The intent is to provide a command line tool, a reference implementation, and a microservice for use by the Bitcoin Cash community.

Prerequisites

The following are only required for make image and make run.

Install docker: https://docs.docker.com/engine/installation/linux/docker-ce/

Add your user to the docker group: sudo usermod -aG docker ${USER} and reload the group: newgrp docker

Building

Run make to obtain addrconv and svc binaries. Run make image to obtain a docker image of the service which listens on port 3000. Run make run to run the service.

Packages

cmd/addrconv

addrconv is a basic command line tool for converting between address formats.

cmd/svc

svc is a small microservice which will convert a provided address into all three currently used Bitcoin Cash address formats.

cashaddress

Allows for encoding and decoding cashaddresses

legacy

Allows for encoding and decoding legacy addresses (including copay).

address

Provides a generic struct which allows decoding and encoding into cashaddress, legacy, and copay formats.

static

Static HTML assets required by the cmd/svc's optional main page. The javascript interacts with the provided api.

References