Skip to content

Go service for converting between address formats

License

Notifications You must be signed in to change notification settings

molepool/ecashaddr-converter

 
 

Repository files navigation

CashAddr Converter

This repository is a go implementation of the cashaddr and copay address formats. The intent is to provide a command line tool, a reference implementation, and a microservice for use by the eCash 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 cashaddr 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

Releases

No releases published

Packages

No packages published

Languages

  • Go 55.9%
  • JavaScript 24.3%
  • CSS 13.8%
  • HTML 4.8%
  • Other 1.2%