Skip to content

Instantly share code, notes, and snippets.

View kingassune's full-sized avatar
🀄
Focusing

Dontrail Cotlage kingassune

🀄
Focusing
  • Assune Think Tank
  • San Diego, CA
  • X @cotlage
View GitHub Profile
0xbC9656aDaa38D3e376c9E162352a6FbE9fB45A1c
https://gist.github.com/kingassune/28014719f24877b073a338930124f060
0x56082dA1902c68625DD8b3EF8B37413815F6Fe63
0xbC9656aDaa38D3e376c9E162352a6FbE9fB45A1c
0xAcA4078413d11286f9045a41b45b648217fa0Cc6
pragma solidity ^0.4.6;
// Written By Dontrail Cotlage
//
contract SafeMath{
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
[program:geth]
command=/usr/bin/geth --fast --cache=512 --testnet --rpc --rpcvhosts=* --rpcaddr 0.0.0.0
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/geth.err.log
stdout_logfile=/var/log/supervisor/geth.out.log
port = 8800
using_proxy = false
access_control_allow_origin_header = "*"
[bitcoin]
master_public_key = "tpubDB4vUNLtdgrbGFezLmu2xj3jpeGMXTZ1NRCVrZH38DbmiSqkj1WrSUPq9sa3uzu1PAurfZsVqgMh4s8gmqc2gUxFoHwJmikxCwjZEez2jkx"
rpc_server = "172.31.91.46:18332"
rpc_user = "ternio"
rpc_pass = "iamgod"
testnet = true
ubuntu@ip-172-31-91-46:~/.bitcoin/testnet3$ cat bitcoin.conf
testnet=1
server=1
rpcuser=ternio
rpcpassword=iamgod
rpcallowip=172.31.22.9
rpcallowip=127.0.0.1
rpcbind=127.0.0.1:18332
ubuntu@ip-172-31-91-46:~/.bitcoin/testnet3$
ubuntu@ip-172-31-91-46:~$ cat bifrost.sql
CREATE TYPE chain AS ENUM ('bitcoin', 'ethereum');
CREATE TABLE address_association (
chain chain NOT NULL,
address_index bigint NOT NULL,
/* bitcoin 34 characters */
/* ethereum 42 characters */
address varchar(42) NOT NULL UNIQUE,
stellar_public_key varchar(56) NOT NULL UNIQUE,