This file contains 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
Homebrew build logs for python3 on Mac OS X 10.11.6 | |
Build date: 2016-08-31 16:54:27 |
This file contains 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA256 | |
Hello World! | |
This message is both signed with pgp and timestamped with OpenTimestamps. | |
Even if my key will be compromised, the attacker cannot forge this message backward. | |
Have a nice day. |
This file contains 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
from ethereum import trie, db, utils | |
import rlp | |
# Block number 233481 | |
# hash 0xccc6da94c2f8d222ef723db7c0469fb54790d30c31c4c176837570953a11d4b5 | |
# tx hash root 0x94855872b7fee469b12577beb875a3ad65b479a216cbbaf9f23ab1277393b084 | |
# contain one tx with hash 0x0d3789c1341c2edb92429f8e8f669f057be5bad2b5dba9ac52069e5b2535e696 | |
# whose content is 0xf86f824ed5850ba43b740083015f90941df99e975f2e6c2e6945cda3a377552cb582caf688477a615df3b28800801ca09e43bb22f0458d7f3025dfa01e9f223743f8dae2c7b11070529dc2733358f0fba07bfe8c286d21839d153733328d8f48e7e7b3fe79c2f31fd2bf992b2381980f48 | |
tx = 'f86f824ed5850ba43b740083015f90941df99e975f2e6c2e6945cda3a377552cb582caf688477a615df3b28800801ca09e43bb22f0458d7f3025dfa01e9f223743f8dae2c7b11070529dc2733358f0fba07bfe8c286d21839d153733328d8f48e7e7b3fe79c2f31fd2bf992b2381980f48'.decode('hex') |
This file contains 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
File sha256 hash: 62c8b090faa21ee5f2e75399d4909e1e27a00ade7dca8f219c6fd34f54de3494 | |
Timestamp: | |
append c237d4ddbf2f14816956503d0d5a766b | |
sha256 | |
-> append 4e1e40b3ca59836ba67eefe04bbab6d4 | |
sha256 | |
prepend 58b93f93 | |
append 2035d407feee535c | |
verify PendingAttestation('https://eth.ots.eternitywall.com') | |
sha256 |
This file contains 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
SHA256 digest of some data. | |
Starting digest: 8bd5a5f07b4451c29756df5eb51d194fb5b20c7e89812d877bbad30d871c582f | |
execute Append(b63d8f213d047298b8ab4595acd8e5d0) | |
result 8bd5a5f07b4451c29756df5eb51d194fb5b20c7e89812d877bbad30d871c582fb63d8f213d047298b8ab4595acd8e5d0 | |
execute SHA256() | |
result 9f42984ccdb96addb79884e714cc6b6b059c68f2ac3a2e07c5198c22d904de14 | |
execute Prepend(ae59d2c0d2f5efa97df8f3cca7e85845880c102237f1a6a1b0b4c6a5ab77f494) | |
result ae59d2c0d2f5efa97df8f3cca7e85845880c102237f1a6a1b0b4c6a5ab77f4949f42984ccdb96addb79884e714cc6b6b059c68f2ac3a2e07c5198c22d904de14 | |
execute SHA256() | |
result 0bca1ed1718c71929130a639f0a7b82eeb91a8fa45b16510c9ee15fec4a0bf15 |
This file contains 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
$ ./ots -v info examples/hello-world.txt.ots | |
File sha256 hash: 03ba204e50d126e4674c005e04d82e84c21366780af1f43bd54a37816b6ab340 | |
Timestamp: | |
ripemd160 == 1df8859e60bc679503d16dcb870e6ce91a57e9df | |
prepend 0100000001e482f9d32ecc3ba657b69d898010857b54457a90497982ff56f97c4ec58e6f98010000006b483045022100b253add1d1cf90844338a475a04ff13fc9e7bd242b07762dea07f5608b2de367022000b268ca9c3342b3769cdd062891317cdcef87aac310b6855e9d93898ebbe8ec0121020d8e4d107d2b339b0050efdd4b4a09245aa056048f125396374ea6a2ab0709c6ffffffff026533e605000000001976a9140bf057d40fbba6744862515f5b55a2310de5772f88aca0860100000000001976a914 == 0100000001e482f9d32ecc3ba657b69d898010857b54457a90497982ff56f97c4ec58e6f98010000006b483045022100b253add1d1cf90844338a475a04ff13fc9e7bd242b07762dea07f5608b2de367022000b268ca9c3342b3769cdd062891317cdcef87aac310b6855e9d93898ebbe8ec0121020d8e4d107d2b339b0050efdd4b4a09245aa056048f125396374ea6a2ab0709c6ffffffff026533e605000000001976a9140bf057d40fbba6744862515f5b55a2310de5772f88aca0860100000000001976a9141df8859e60bc679503 |
This file contains 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
Compiling bitcoin v0.3.10 | |
error: `$r:expr` may be followed by `copy`, which is not allowed for `expr` fragments | |
--> /Users/casatta/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin-0.3.10/src/blockdata/script.rs:1690:16 | |
| | |
1690 | $(copy $c:expr);* | |
| ^^^^ | |
error: `$r:expr` may be followed by `swap`, which is not allowed for `expr` fragments | |
--> /Users/casatta/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin-0.3.10/src/blockdata/script.rs:1691:16 | |
| |
This file contains 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
#!/usr/bin/env python | |
''' Run from "electrum/lib" directory. | |
ThomaxV started a discussion on https://bitcointalk.org/index.php?topic=274182.msg2939599#msg2939599 | |
about changing the HD derivation logic in electrum 2. The below post: | |
http://bitcoin.stackexchange.com/questions/37013/how-to-import-a-hd-wallet-from-an-extended-private-key | |
confirms that the format is actually m/c/i (and not m/44'/0'/a'/c/i) | |
so I have altered https://gist.github.com/romanz/4b32782bfc0ff4984713 accordingly: | |
tested to work with keys/addresses exported from electrum 2.7.0 | |
note Electrum has a "gap limit" of 20, so loop @ level "c" to get the next 20 addresses | |
''' |
This file contains 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 fs = require('fs'); | |
function saveOts(otsFilename, buffer) { | |
fs.exists(otsFilename, fileExist => { | |
if (fileExist) { | |
console.log('The timestamp proof \'' + otsFilename + '\' already exists'); | |
} else { | |
fs.writeFile(otsFilename, buffer, 'binary', err => { | |
if (err) { | |
return console.log(err); |
This file contains 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
package com.eternitywall; | |
import javax.xml.bind.DatatypeConverter; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Random; | |
public class Main { | |