PiRK / ecashaddr-converter

Go service for converting between address formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 55.8%Language:JavaScript 24.3%Language:CSS 13.8%Language:HTML 4.8%Language:Dockerfile 0.6%Language:Makefile 0.6%