Giter VIP home page Giter VIP logo

anyswap-mpcnode's Introduction

Introduction

MPC wallet service is a distributed key generation and distributed signature service that can serve as a distributed custodial solution.

Note : mpc is considered beta software. We make no warranties or guarantees of its security or stability.

Install the Docker version

1. Install Docker. This depends on your platform, on Ubuntu this works:

sudo apt update
sudo apt install docker.io

2. Download the Docker image and create and run the container:

  • bootnode
docker run -d --name bootnode --network host --restart always -v /var/lib/docker/bootnode:/bootnode anyswap/bootnode --addr :48447
  • mpcnode
docker run -d --name mpcnode --network host --restart always -v /var/lib/docker/mpcnode:/mpcnode anyswap/anympcnode

default: rpcport 8449, port 8441 bootnodes enode://cdefe85532587f6ee0bbc29790aca7d54bf633b9fc19c991fe9af1b67284460d586928003a6af69c210fba8a1cce9f009a37d695382e34034b10d05b3df3ac8f@47.88.26.170:48447

  • mpcnode-client
docker exec mpcnode mpcnode-client --cmd ACCEPTREQADDR --url http://127.0.0.1:8449 --keystore keystore --passwd "123456" --key 0x...

Install the Source version

Prerequisites

  1. VPS server with 1 CPU and 2G mem
  2. Static public IP
  3. Golang ^1.12

Setting Up

Clone The Repository

To get started, launch your terminal and download the latest version of the SDK.

mkdir -p $GOPATH/src/github.com/fsn-dev

cd $GOPATH/src/github.com/fsn-dev

git clone https://github.com/fsn-dev/dcrm-walletService.git

Build

Next compile the code. Make sure you are in dcrm-walletService directory.

cd dcrm-walletService && make

Run

First generate the node key:

./bin/cmd/gdcrm --genkey node1.key

then run the dcrm node 7x24 in the background:

nohup ./bin/cmd/gdcrm --nodekey node1.key &

The gdcrm will provide rpc service, the default RPC port is port 4449.

Note: Before use walletService RPC API, please wait at least 5 minutes after running the node which need to prepare dcrm env.

Front-end

After running the dcrm wallet rpc service and get the rpc IP:port, we can use SMPCWallet to connect the rpc service. This front-end can create distributed custodial account which support BTC/ETH/FSN.

anyswap-mpcnode's People

Contributors

cross-chain avatar haijuncai avatar jowenshaw avatar weijun-sh avatar zhaojun-sh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.