herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
452 stars 152 forks source link

struct ecdsaPrecomputedPublicKey not defined. #25

Closed fionser closed 5 years ago

fionser commented 5 years ago

I am trying to call mcl/ecdsa.h from go, but I found that the struct ecdsaPrecomputedPublicKey is not defined anywhere.

herumi commented 5 years ago

The contents of ecdsaPrecomputedPublicKey is private, so keep the pointer generated by ecdsaPrecomputedPublicKeyCreate in cgo and delete it by ecdsaPrecomputedPublicKeyDestroy after it is not used. But it is better to use other implementation of ecdsa because I made it for test and it is not optimized.

fionser commented 5 years ago

@herumi Thanks !