I am not actively updating this gist and it is already out of date. Please see http://altheamesh.com/documents/universal-payment-channels.pdf
Jehan Tremback
Zackary Hess
I am not actively updating this gist and it is already out of date. Please see http://altheamesh.com/documents/universal-payment-channels.pdf
Jehan Tremback
Zackary Hess
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
I hereby claim:
To claim this, I am signing this object:
# In this example we're sending some test bitcoins from an address we control to a brand new test | |
# address. We'll be sending the coins using the following address, public and private keys (please | |
# don't abuse). | |
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov | |
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f | |
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2 | |
# 1. generate a one-shot dummy address we're going to send money to | |
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs | |
{ |
Name | Link | Whitepaper title | |
---|---|---|---|
Achain (previously thinkyoung) | https://www.achain.com/Achain%20Whitepaper%202.0_EN.pdf | Achain Blockchain Whitepaper: build to be boundless | |
Aergo (by blocko) | https://www.aergo.io/paper/ | multiple | |
Aion | https://aion.network/media/en-aion-network-technical-introduction.pdf | Aion: enabling the decentralized Internet | |
Ark | https://ark.io/Whitepaper.pdf | A Platform for Consumer Adoption | |
Avalanche | https://ipfs.io/ipfs/QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV | Snowflake to Avalanche: a novel metastable consensus protocol family for cryptocurrencies | |
Blink | https://blink.network/media/blink-protocol.pdf | Proof-of-stake distrbuted consensus protocol | |
Byteball | https://byteball.org/Byteball.pdf | A Decentralized System for Storage and Transfer of Value | |
Cardano | https://whitepaperdatabase.com/cardano-ada-whitepaper/ | Ouroboros: A provably secure proof-of-stake blockchain protocol | |
Celer Network | https://www.celer.network/doc/CelerNetwork-Whitepaper.pdf | Celer Network: Bring Internet Scale to Every Blockchai |
// from: https://stackoverflow.com/questions/29963449/golang-like-defer-in-rust | |
// | |
struct ScopeCall<F: FnOnce()> { | |
c: Option<F> | |
} | |
impl<F: FnOnce()> Drop for ScopeCall<F> { | |
fn drop(&mut self) { | |
self.c.take().unwrap()() | |
} | |
} |
% Spiderweb Diagram | |
% | |
% Author: Dominik Renzel | |
% Date; 2009-11-11 | |
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes} | |
\begin{document} |
% A complete graph | |
% Author: Quintin Jean-Noël | |
% <http://moais.imag.fr/membres/jean-noel.quintin/> | |
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary[topaths] | |
% A counter, since TikZ is not clever enough (yet) to handle | |
% arbitrary angle systems. | |
\newcount\mycount | |
\begin{document} |
use std::net::TcpListener; | |
fn create_app_lock(port: u16) -> TcpListener { | |
match TcpListener::bind(("0.0.0.0", port)) { | |
Ok(socket) => { | |
socket | |
}, | |
Err(_) => { | |
panic!("Couldn't lock port {}: another instance already running?", port); | |
} |
func applicationDidFinishLaunching(aNotification: NSNotification) { | |
/* Check if another instance of this app is running. */ | |
let bundleID = Bundle.main.bundleIdentifier! | |
if NSRunningApplication.runningApplications(withBundleIdentifier: bundleID).count > 1 { | |
/* Show alert. */ | |
let alert = NSAlert() | |
alert.addButton(withTitle: "OK") | |
let appName = Bundle.main.object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String | |
alert.messageText = "Another copy of \(appName) is already running." | |
alert.informativeText = "This copy will now quit." |