Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-ed25519 MemoryError #2

Open
Kevin-Chen0 opened this issue Jan 23, 2019 · 2 comments
Open

python-ed25519 MemoryError #2

Kevin-Chen0 opened this issue Jan 23, 2019 · 2 comments

Comments

@Kevin-Chen0
Copy link

I have ran this code:

prikey, pubkey = Ed25519Cipher.generate_keys()

Generated this error:

  File "C:\<>\Python\Python36\lib\site-packages\ed25519\keys.py", line 85, in __init__
    vk_s, sk_s = _ed25519.publickey(sk_s)

MemoryError

Apparently, this is a common issue for ed25519. Also I am using Python 3.6.7.

@stkubr
Copy link
Owner

stkubr commented Jan 24, 2019

hm... i cant reproduce it, neither in Linux environment nor in Windows.
There is a way around - to replace ed25519 package with PyNaCl https://pynacl.readthedocs.io/en/stable/signing/#ed25519. But first the ciphers need proper interface class - so MAML class would be independent from sig scheme as it should. I can write specs and open the issue and you can contribute. You wanted to contribute to the code after all, right? ;)

@acyuta108
Copy link

I do want to contribute. Can you push the branch with the specs so I can work on it?
Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants