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
Verifying my Blockstack ID is secured with the address 1D8DSmawKaaSSHs3r5Hu8k4nLw6A5pcQQR https://explorer.blockstack.org/address/1D8DSmawKaaSSHs3r5Hu8k4nLw6A5pcQQR |
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
Verifying my Blockstack ID is secured with the address 19bLgFyGasSj9jmPoLR4LQRuYRYjKZnekT https://explorer.blockstack.org/address/19bLgFyGasSj9jmPoLR4LQRuYRYjKZnekT |
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 Crypto.Hash import SHA256 | |
from Crypto.Signature import PKCS1_v1_5 | |
from Crypto.PublicKey import RSA | |
def sign (digest, privatekeyfile): | |
private_key = False | |
with open(privatekeyfile, "r") as private_key_file: # Read private key from file | |
private_key = RSA.importKey(private_key_file.read()) | |
signer = PKCS1_v1_5.new(private_key) # Load private key and sign message | |
return signer.sign(digest) |
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
-----Alfreds-private-key.pem----- | |
-----BEGIN RSA PRIVATE KEY----- | |
MIIBOQIBAAJAXWRPQyGlEY+SXz8Uslhe+MLjTgWd8lf/nA0hgCm9JFKC1tq1S73c | |
Q9naClNXsMqY7pwPt1bSY8jYRqHHbdoUvwIDAQABAkAfJkz1pCwtfkig8iZSEf2j | |
VUWBiYgUA9vizdJlsAZBLceLrdk8RZF2YOYCWHrpUtZVea37dzZJe99Dr53K0UZx | |
AiEAtyHQBGoCVHfzPM//a+4tv2ba3tx9at+3uzGR86YNMzcCIQCCjWHcLW/+sQTW | |
OXeXRrtxqHPp28ir8AVYuNX0nT1+uQIgJm158PMtufvRlpkux78a6mby1oD98Ecx | |
jp5AOhhF/NECICyHsQN69CJ5mt6/R01wMOt5u9/eubn76rbyhPgk0h7xAiEAjn6m | |
EmLwkIYD9VnZfp9+2UoWSh0qZiTIHyNwFpJH78o= | |
-----END RSA PRIVATE KEY----- |
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
{ | |
"hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f", | |
"ver": 1, | |
"prev_block": "0000000000000000000000000000000000000000000000000000000000000000", | |
"mrkl_root": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b", | |
"time": 1231006505, | |
"bits": 486604799, | |
"nonce": 2083236893, | |
"n_tx": 1, | |
"size": 285, |
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/python | |
from binascii import unhexlify | |
from hashlib import sha256 | |
import json | |
import urllib2 | |
import sys | |
#convert into little endian format | |
def littleEndian(string): |
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
Verifying my Blockstack ID is secured with the address 12CouEA6yuXd4ARNgwvJ53VWoxvUbEvzTD https://explorer.blockstack.org/address/12CouEA6yuXd4ARNgwvJ53VWoxvUbEvzTD |