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.
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
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.
addrconv
is a basic command line tool for converting between address formats.
svc
is a small microservice which will convert a provided address into all
three currently used Bitcoin Cash address formats.
Allows for encoding and decoding cashaddresses
Allows for encoding and decoding legacy addresses (including copay).
Provides a generic struct which allows decoding and encoding into cashaddress, legacy, and copay formats.
Static HTML assets required by the cmd/svc's optional main page. The javascript interacts with the provided api.