The doc is now part of C-lightning at https://lightning.readthedocs.io/PLUGINS.html#bitcoin-backend
View SNICKER_BIP_draft.mediawiki
BIP: ?? Layer: Applications Title: SNICKER - Simple Non-Interactive Coinjoin with Keys for Encryption Reused Author: Adam Gibson <AdamISZ@protonmail.com> Comments-Summary: No comments yet. Comments-URI: - Status: Proposed Type: Informational Created: -
View schnorr_signature.js
const ecurve = require('ecurve'); | |
let secp256k1 = ecurve.getCurveByName('secp256k1'); | |
const BigInteger = require('bigi'); | |
const crypto = require('crypto'); | |
const calculateHash = (R, P, message) => { | |
const hashPreimage = Buffer.concat([R.getEncoded(true), P.getEncoded(true), Buffer.from(message, 'utf-8')]); | |
return BigInteger.fromHex(crypto.createHash('sha256').update(hashPreimage).digest('hex')).mod(secp256k1.n); | |
}; |
View improved-lnd-bitcoind-install.md
2018-03-18: Updating of this guide is taking a backseat to the mainnet version at
Intro
This guide is specific to getting LND and bitcoind running on ubuntu 16.04 LTS for testnet.
It does not address mainnet, or using btcd, or neutrino.
Original installation guide:
View README.md
collapsible markdown?
CLICK ME
yes, even hidden code blocks!
print("hello world!")
View Fallible.swift
/** | |
FIXME: Box exists to prevent the "Unimplemented IR generation feature non-fixed multi-payload enum layout" error. */ | |
final class Box<T> { | |
let value: T | |
init(_ value: T) { | |
self.value = value | |
} | |
} |
View gist:292435381bb2e0d31402
- You can find the article published here: http://www.javiersoto.me/post/106875422394
- For questions, it's also available on Github: https://github.com/JaviSoto/Blog-Posts/blob/master/Functor%20and%20Monad%20in%20Swift/FunctorAndMonad.md
View Keychain.swift
import UIKit | |
import Security | |
class Keychain { | |
class func save(key: String, data: NSData) -> Bool { | |
let query = [ | |
kSecClass as String : kSecClassGenericPassword as String, | |
kSecAttrAccount as String : key, | |
kSecValueData as String : data ] |
View delay.swift
func delay(delay:Double, closure:()->()) { | |
dispatch_after( | |
dispatch_time( | |
DISPATCH_TIME_NOW, | |
Int64(delay * Double(NSEC_PER_SEC)) | |
), | |
dispatch_get_main_queue(), closure) | |
} |
View Timer.swift
/** | |
Copyright (c) 2014 Julian Asamer | |
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: |
NewerOlder