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

AttributeError: module 'curve25519' has no attribute 'Private' #344

Open
PlanetaryGear opened this issue May 19, 2021 · 1 comment
Open

Comments

@PlanetaryGear
Copy link

Not on a Pi but on a Mac running the code I cannot get past a pairing due to the above error. This is when running the busy home example or any other. I do have curve25519 library installed via pip and it is included without difficulty. But there is no “Private()” attribute in it. When doing a dir( curve25519) after including it on Python3.9 I get the following:

['doc', 'file', 'loader', 'name', 'package', 'spec', 'calculateAgreement', 'calculateSignature', 'generatePrivateKey', 'generatePublicKey', 'verifySignature’]

So I could call generatePrivateKey instead? Or is there some special implementation of the curve25519 that contains a different class structure?

@bdraco
Copy link
Contributor

bdraco commented Jul 20, 2021

@PlanetaryGear You'll need curve25519-donna unless you are using upstream/master which doesn't require it anymore and should be in the 3.5.2 release

cc @ikalchev

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

2 participants