Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WebOfTrustInfo/btcr-tx-playground.github.io
https://github.com/WebOfTrustInfo/btcr-tx-playground.github.io
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/WebOfTrustInfo/btcr-tx-playground.github.io
- Owner: WebOfTrustInfo
- License: mit
- Created: 2017-07-13T17:47:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T13:46:21.000Z (almost 5 years ago)
- Last Synced: 2024-06-10T19:13:03.322Z (4 months ago)
- Language: JavaScript
- Homepage: https://weboftrustinfo.github.io/btcr-tx-playground.github.io/
- Size: 1.54 MB
- Stars: 4
- Watchers: 23
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btcr-tx-playground.github.io
## Pre-requisites
In order to build btcr-did-tools-js for use in the browser we need to use browserify to convert the nodejs javascript.```bash
sudo apt-get install xsltproc nodejs-dev node-gyp libssl1.0-dev
sudo apt-get install npm
sudo npm install -g browserify babelify jsonld jsonld-signatures commander bitcoinjs-lib babel-preset-es2015
```## Installation
The playground is build ontop of the [coinbin](https://github.com/OutCast3k/coinbin/) wallet and utilises [btcr-did-tools-js](https://github.com/WebOfTrustInfo/btcr-did-tools-js), which in turn utilises [txref-conversion-js](https://github.com/WebOfTrustInfo/txref-conversion-js).The dependencies have been added as submodules so when you first clone this reposiroty there will be file placeholders for the external repositories in the 'external' folder. These will need to be imported using the `git submodule init` and `git submodule update` commands.
Some files need to be built so we use browserify to create build/btcrDidUtils.js and xsltproc to build the ./index.html file from external/coinbin/index.html. The xsltproc step is configured in Make.
```bash
git clone https://github.com/WebOfTrustInfo/btcr-tx-playground.github.io.git
cd btcr-tx-playground.github.io
make deps
make
```## Making changes this code
The following dependencies are
The core functionality is implemented by [btcr-did-tools-js](https://github.com/WebOfTrustInfo/btcr-did-tools-js) and [txref-conversion-js](https://github.com/WebOfTrustInfo/txref-conversion-js).
Do not update the `btcrDidUtils.js` file directly. Instead, update those libraries and generate `btcrDidUtils.js` by following the instructions in [browserifying btcr-did-tools-js](https://github.com/WebOfTrustInfo/btcr-did-tools-js#browserify-this-library).That tedious process can be improved! Please feel free to fix it for us!