-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f6abf80
Showing
163 changed files
with
170,504 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
dist/config/app.json | ||
dist/config/config.json | ||
|
||
node_modules/* | ||
|
||
# Elastic Beanstalk Files | ||
.elasticbeanstalk/* | ||
!.elasticbeanstalk/*.cfg.yml | ||
!.elasticbeanstalk/*.global.yml | ||
|
||
.pgpass | ||
.vscode | ||
.DS_Store | ||
|
||
public/uploads/* | ||
!public/uploads/.gitkeep | ||
|
||
sqlite/sphinx.db | ||
sqlite/sphinxpg.sql | ||
sqlite/sphinxlite.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM node:8 | ||
RUN apt-get update | ||
RUN apt-get install -f sqlite3 | ||
USER node | ||
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global | ||
ENV PATH=$PATH:/home/node/.npm-global/bin | ||
WORKDIR /home/node | ||
COPY package.json . | ||
RUN npm install | ||
RUN npm install -g nodemon --save-dev | ||
RUN npm install -g express --save-dev | ||
RUN npm install -g webpack webpack-cli --save-dev | ||
RUN npm install -g sqlite3 --build-from-source --save-dev | ||
RUN npm install -g --save-dev sequelize | ||
RUN npm rebuild | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 stakwork | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Relay | ||
|
||
**Relay** is a Node.js wrapper around [LND](https://github.com/lightningnetwork/lnd), handling connectivity and storage for [**Sphinx**](https://github.com/stakwork/sphinx). Communication between Relay nodes takes place entirely on the Lightning Network, so is decentralized, untraceable, and encrypted. Message content is also end-to-end encrypted using client public keys, on the **Sphinx** app itself. | ||
|
||
![Relay](https://github.com/stakwork/sphinx-node/raw/master/public/relay.jpg) | ||
|
||
Relay stores: | ||
- Aliases | ||
- Messages | ||
- Recurring payment configurations | ||
- Invites (so you can add your friends) | ||
- Media Keys: keys for decrypting media files, asymetrically encrypted for each contact in a chat | ||
|
||
# run your own sphinx node | ||
|
||
You can run your own Sphinx node in order to have full ownership over your communication! | ||
|
||
### download | ||
|
||
`git clone https://github.com/stakwork/sphinx-node` | ||
|
||
`cd sphinx-node` | ||
|
||
`npm install` | ||
|
||
### dependencies | ||
|
||
sqlite3: `apt-get install sqlite3` | ||
|
||
### configure | ||
|
||
Edit the "production" section of config/app.json: | ||
- Change `macaroon_location` to the location of your LND admin macaroon | ||
- Change `tls_location` to the location of your LND cert | ||
|
||
### run | ||
|
||
`npm run prod` | ||
|
||
# Roadmap | ||
|
||
- linking recurring payments to files, to enable use cases such as subscribing to podcasts with BTC! |
Oops, something went wrong.