Git Product home page Git Product logo

addrgen's Introduction

Software engineer interested in free software development process.

Most recently tested Pieter Hintjens' Collective Code Construction Contract with https://magicstone.dev

addrgen's People

Contributors

jensbjorgensen avatar weex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

addrgen's Issues

SIGSEGV code 139

"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.

The specified module could not be found (ssl or libeay32)

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:
image

Running on OSX

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.

Problem: Fails on Mac OSX 11.4

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

Crashes in MacOS (fixed)

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.

patch.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.