Author

Topic: Need some help on a py-script <SOLVED> (Read 686 times)

full member
Activity: 169
Merit: 100
August 01, 2016, 03:47:46 PM
#5
YES!

Send me PM for the bounty!!!
staff
Activity: 3458
Merit: 6793
Just writing some code
August 01, 2016, 03:39:49 PM
#4
This script generates uncompressed addresses, but i want i to create compressed addresses.
Adding
Code:
pubkey_point = compress(pubkey_point)
The line before
Code:
address = pubkey_to_address(pubkey_point)

should work.
full member
Activity: 169
Merit: 100
August 01, 2016, 03:14:38 PM
#3
This script generates uncompressed addresses, but i want i to create compressed addresses.
staff
Activity: 3458
Merit: 6793
Just writing some code
August 01, 2016, 03:13:33 PM
#2
Does anyone know how this script has to look for compressed addresses?
Your question is not quite clear. What are you asking?
full member
Activity: 169
Merit: 100
August 01, 2016, 02:50:34 PM
#1
Does anyone know how this script has to look for compressed addresses?
Code:
# -*- coding: utf-8 -*-
#
#    coineva vanitygen.py
#    Copyright (C) 2016 February
#    1200 Web Development
#    http://1200wd.com/
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see .
#

from bitcoin import *
import timeit
import random


def main():
    privkey = random.randrange(2**256)
    search_for = '12oo'
    address = ''
    count = 0
    start = timeit.default_timer()
    pubkey_point = ''

    print "Searching for %s" % search_for

    while not search_for in address:
        privkey += 1
        pubkey_point = fast_multiply(G, privkey)
        address = pubkey_to_address(pubkey_point)
        count += 1
        if not count % 1000:
            print "Searched %d in %d seconds" % (count, timeit.default_timer()-start)

    print "Found address %s" % address
    print "Private key HEX %s" % encode_privkey(privkey,'hex')


if __name__ == '__main__':
main()



EDIT: Will pay a small bounty, if somebody could help me!
Jump to: