Code Monkey home page Code Monkey logo

jmcontrolcenter's Introduction

Jmcontrolcenter

Currently a very bare bones prototype demonstrating the following functionality:

  • Run a daemon for joinmarket in python, and connect to it via this Angular app.
  • Unlock a wallet and display its contents.

This is one of the initial steps in trying to realise something like what is described here.

Required steps to test this demo:

Either: Running the electron app.

One of the main reasons for using a Javascript framework like Angular is that either browser or cross platform desktop clients using Electron are possible. Hence the first test release (0.0.1dev is the tag) offers an Electron desktop app for Windows, Linux and MacOS. Verify the signature, then unzip and run the executable inside it. To actually see the app in action, you'll need to do the below.

(Note that to enable testing, certificate verification is disabled inside this test app; obviously this is not safe and will be replaced with a mechanism to import the cert that the user is using for the backend.)

Or: Run in the browser.

This project was generated with Angular CLI version 10.0.5. For this second mode of running, in browser, you will need Angular and its dependencies installed, so this is mainly for developers. There are many guides on the Web.

(Development server)

Run ng serve for a dev server. Navigate to http://localhost:4200/. As above, you will need to do the below to test the functionality.

Run jmwalletd

Check out the rpc-api-1 branch on Joinmarket-clientserver. Go into the virtualenv as for any Joinmarket script. Get a backend regtest instance running; use (from the root directory of Joinmarket):

pytest --btcconf=/some/dir/bitcoin.conf --btcroot=/some/dir/bitcoin-0.19.0.1/bin/ --btcpwd=123456abcdef --nirc=2 test/ygrunner.py -s -p no:warnings

Generate a test key and certificate named key.pem and cert.pem respectively and drop them in the scripts/ folder of Joinmarket. Run the new daemon with : python jmwalletd.py in that scripts/ folder and in the Joinmarket jmvenv as usual.

===============

Once frontend and backend are running:

Only one functionality has been implemented: load and display a wallet.

You can click "Unlock wallet", fill in wallet file name and password, and the wallet contents will be displayed automatically.

You will probably want to first generate a regtest wallet with a filename and then fund it from the test wallets provided by ygrunner.py (but an empty wallet will be a start).

jmcontrolcenter's People

Contributors

adamisz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

qpc-github

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.