Skip to content

Instantly share code, notes, and snippets.

View cvasqxz's full-sized avatar
💣
perro bomba

César cvasqxz

💣
perro bomba
View GitHub Profile
@cvasqxz
cvasqxz / privtoaddr.py
Last active December 12, 2018 04:20
Script para generar una direcciones BTC en Python3
from hashlib import new
from binascii import a2b_hex
from collections import deque
# https://bitcoin.stackexchange.com/a/59806
def secp256k1(s):
G = (55066263022277343669578718895168534326250603453777594175500187360389116729240,
32670510020758816978083085130507043184471273380659243275938904335757337482424)
N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
P = 2**256 - 2**32 - 2**9 - 2**8 - 2**7 - 2**6 - 2**4 - 1
@cvasqxz
cvasqxz / op_sha256.py
Last active December 12, 2018 04:37
Generación de transaction puzzle
# https://en.bitcoin.it/wiki/Script#Transaction_puzzle
from argparse import ArgumentParser
from binascii import b2a_hex
from hashlib import new
# Opcodes
OP_HASH256 = 'aa'
OP_EQUAL = '87'

Keybase proof

I hereby claim:

  • I am cvasqxz on github.
  • I am x80 (https://keybase.io/x80) on keybase.
  • I have a public key ASCPVg3ZVQQL1iX-7Ulb-haNQ6BK6i2BFWMBNigwcFfNYAo

To claim this, I am signing this object: