Software engineer interested in free software development process.
Most recently tested Pieter Hintjens' Collective Code Construction Contract with https://magicstone.dev
Minimal Bitcoin address generator in Python
Software engineer interested in free software development process.
Most recently tested Pieter Hintjens' Collective Code Construction Contract with https://magicstone.dev
"Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)" is the error I get running linux.
The OSX patch doesn't work either, the command "arch -i386" fails.
Already changed default to compressed=False but now need to figure out the flaw in generating compressed keys.
Hi there,
would it be possible to implement the generation of addresses other than Bitcoin via passphrases?
Cheers.
Hi @weex, I know this is a very noob question since I've started with Python (v2.7.10) just yesterday and ctypes is unable to find the ssl library on this line:
ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl') or 'libeay32')
Having exhausted my google skills, could you please tell me what I'm missing here? I do see the following:
Thanks for this code, it is really helpful!
Out of the box I have an issue though:
On OSX when I do a simple python addrgen.py I get a segmentation fault: 11
Has anyone else had success running this on OSX? I'm assuming it has to do with either a) I have multiple python versions b) cytpes doesn't work as expected on osx c) ?
Any advice would be appreciated! I am just trying to generate a deterministic bitcoin address from a secret.
Traceback (most recent call last):
File "/Users/dsterry/code/addrgen/addrgen.py", line 199, in <module>
test(int(options.otherversion))
File "/Users/dsterry/code/addrgen/addrgen.py", line 176, in test
print(get_addr(gen_eckey(compressed=True,version=otherversion),version=otherversion))
File "/Users/dsterry/code/addrgen/addrgen.py", line 158, in get_addr
secret = k.get_secret()
File "/Users/dsterry/code/addrgen/addrgen.py", line 67, in get_secret
mb = ctypes.create_string_buffer(bytes)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 66, in create_string_buffer
raise TypeError(init)
TypeError: 32.75
From reading other comments about ctypes and MacOS I worked out the problem is due to pointer types getting resolved down to integers. The suggested fix is to create a type derived from ctypes.c_void_p and use that as restype. Indeed this fixes the problem, patch is attached.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.