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 | |
import hmac | |
import hashlib | |
from sys import argv, exit, stderr | |
def hmac_sha512(key, message): | |
return hmac.new(key, message, hashlib.sha512).hexdigest() | |
def roll(server_seed, client_seed, nonce): | |
# Generate key and message strings. |
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
// g++ UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o libcryptopp.a -o bootstrap.out -Icryptopp -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS -lpthread bootstrap.cpp | |
#include "BlockUtils.h" | |
int main(void) | |
{ | |
string btcdir("/home/chris/.bitcoin"); | |
string bootstrap(btcdir + "/" + "bootstrap.dat"); | |
BlockDataManager_FileRefs::GetInstance().SelectNetwork("Main"); | |
BlockDataManager_FileRefs & bdm = BlockDataManager_FileRefs::GetInstance(); |
NewerOlder