Skip to content

Go service for converting between address formats

License

Notifications You must be signed in to change notification settings

zquestz/cashaddr-converter

 
 

Repository files navigation

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

About

Go service for converting between address formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 55.9%
  • JavaScript 23.8%
  • CSS 13.7%
  • HTML 5.3%
  • Other 1.3%