SkillAgentSearch skills...

Atomicswaps

Atomic Swaps for criptocurrencies

Install / Use

/learn @3s3s/Atomicswaps
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Atomic swap client and server in node.js

Step-by-step install instructions:

  1. Install nvm

For Linux:

[sudo] apt-get update
[sudo] apt-get install build-essential libssl-dev curl -y
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh
bash install_nvm.sh
[sudo] reboot

nvm install 16.13.0

For Windows:

You can use terminal in Visual Studio Code https://code.visualstudio.com/download or in c9sdk https://cloud9-sdk.readme.io/docs/running-the-sdk

  1. Clone repository and install modules (and submodules)
git clone https://github.com/3s3s/atomicswaps.git
cd atomicswaps
git submodule update --init 
npm install
npm install -g forever
npm install -g browserify
  1. Start P2P server
npm run server

Instead of running the server, you can compile the code for browser:

npm run compile

Or you can compile the code for the browser with a source map (for debug)

npm run compile_debug

The atomicswaps/browser directory will contain the code for the browser extension. It is compatible with Firefox and Chrome browsers.

Also you can run server as a background process (daemon)

npm run daemon

To stop the daemon jus type:

npm run daemon_stop

Life version: https://3s3s.github.io/atomicswaps/browser/html/popup.html

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2y ago
Forks5

Languages

JavaScript

Security Score

55/100

Audited on Aug 19, 2023

No findings