HAP-python icon indicating copy to clipboard operation
HAP-python copied to clipboard

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

Open PlanetaryGear opened this issue 4 years ago • 1 comments

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?

PlanetaryGear avatar May 19 '21 16:05 PlanetaryGear

@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

bdraco avatar Jul 20 '21 21:07 bdraco