Skip to content

Instantly share code, notes, and snippets.

View DesWurstes's full-sized avatar

DesWurstes

View GitHub Profile
@DesWurstes
DesWurstes / dumpwallet.html
Created February 1, 2021 09:44
Extract WIF private keys from dumpwallet output
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dumpwallet reader</title>
<link rel="stylesheet" href="css/styles.css?v=1.0">
@DesWurstes
DesWurstes / rscanwithprinthash.py
Last active October 29, 2022 02:35
Improved github.com/ca333/rng-scanner For instructions https://github.com/ca333/rng-scanner/pull/1#issuecomment-706505224
#!/usr/bin/python3
#################################################################################
# #
#.______ _______. ______ ___ .__ __. #
#| _ \ / | / | / \ | \ | | #
#| |_) | ______ | (----`| ,----' / ^ \ | \| | #
#| / |______| \ \ | | / /_\ \ | . ` | #
#| |\ \----. .----) | | `----./ _____ \ | |\ | #
@DesWurstes
DesWurstes / list.txt
Created March 28, 2019 13:57
Bitcoin Cash APIs
https://api.blockchair.com/bitcoin/outputs?limit=10&transaction_id(15646662)&fields=block_id
https://api.blockchair.com/bitcoin-cash/blocks?u=3743ddc6-01b6-4001-80ff-07e9c08ab6e9&fields=id&export=tsv
https://bitcoincash.blockexplorer.com/api/rawtx/<txid>
https://blockdozer.com/insight-api/rawtx/<txid>
https://tbch.blockdozer.com/insight-api/rawtx/<txid>
https://bch-insight.bitpay.com/api/addrs/<addr>
https://test-bch-insight.bitpay.com/api/addrs/<addr>
https://bch.coin.space/api/rawtx/<tx>
@DesWurstes
DesWurstes / html
Last active November 29, 2020 11:04
MathJax Latex Quick Start
<script>
MathJax = {
tex: {
inlineMath: [['$', '$']],
displayMath: [['$$','$$']],
},
svg: {
fontCache: 'global',
},
options: {

The new Bitcoin Cash address format ("Cash Address")

On ~January 14, the Bitcoin Cash clients will (we expect huge adoption) switch to the new Cash Address address format.

Related to Bech32?

Bech32 is the name of the address format proposed by Core developers (for SegWit addresses,BIP 173. It consists of 32 different characters, and "Bech" sounds like "Base" while keeping the error-correction algorithm "BCH" (or Bitcoin Cash ticker!) in mind. Bitcoin Cash will use a slightly different Bech32 address format, which is called "Cash Address".

So what?

//puzzling.stackexchange.com/posts/54652/
struct Square {
var up: UInt8 = 0
var left: UInt8 = 0
var down: UInt8 = 0
var right: UInt8 = 0
var rotation: Int = 0
}
var n = 0
var shouldBreak = false
$\cos{5a} = \cos{(3a+2a)}$
$=\cos 3a \cos 2a -\sin 3a \sin 2a$
$=\cos{(2a+a)}\cos 2a -\sin{(2a+a)} \sin 2a$
$=(\cos 2a\cos a-\sin2a\sin a)\cos 2a -(\sin2a \cos a + \cos 2a \sin a) \sin 2a$
$=(\cos 2a\cos a-\sin2a\sin a)\cos 2a -(\sin2a \cos a + \cos 2a \sin a) \sin 2a$
// http://swift.sandbox.bluemix.net/#/repl/59383be0a250154040b8fdaf
// http://alphabetizer.flap.tv // The sorter
import Foundation
var nOfRemoved: UInt16 = 0
var maximumChars: Int = 0
var minimumChars: Int = Int.max