- Install FFMPEG
- Setup rtmp application for restream
- Test
I hereby claim:
- I am caffeinum on github.
- I am caffeinum (https://keybase.io/caffeinum) on keybase.
- I have a public key ASBvoq7v8fAoze8SlVQuWhuYEG2niXFWG3IdSD8o7J7NlQo
To claim this, I am signing this object:
This file contains hidden or 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
| const bitcoin = require('bitcoinjs-lib') // version @3.3.2, ver4 won't work | |
| const request = require('request-promise-native') | |
| const net = process.env.NETWORK === 'testnet' | |
| ? bitcoin.networks.testnet | |
| : bitcoin.networks.bitcoin | |
| const API = net === bitcoin.networks.testnet | |
| ? `https://test-insight.swap.online/insight-api` | |
| : `https://insight.bitpay.com/api` |
This file contains hidden or 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
| pragma solidity ^0.4.23; | |
| contract AtomicSwap { | |
| uint256 SafeTime = 3 hours; // atomic swap timeOut | |
| struct Swap { | |
| bytes32 secret; | |
| bytes32 secretHash; |
This file contains hidden or 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
| pragma solidity ^0.4.23; | |
| // ---------------------------------------------------------------------------- | |
| // Safe maths from OpenZeppelin | |
| // ---------------------------------------------------------------------------- | |
| library SafeMath { | |
| function mul(uint256 a, uint256 b) internal pure returns(uint256) { | |
| uint256 c = a * b; | |
| assert(a == 0 || c / a == b); | |
| return c; |
This file contains hidden or 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
| pragma solidity ^0.4.23; | |
| import './SafeMath.sol'; | |
| contract EthToSmthSwaps { | |
| using SafeMath for uint; | |
| address public owner; | |
| address public ratingContractAddress; |
NewerOlder