-
Notifications
You must be signed in to change notification settings - Fork 100
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
internal: Add libsecp256k1 c library. #2810
base: master
Are you sure you want to change the base?
Conversation
dex/libsecp256k1/libsecp256k1.go
Outdated
copy(nonce[:], encode.RandomBytes(32)) | ||
key := [32]byte{} | ||
copy(key[:], privKey.Serialize()) | ||
n := (*C.uchar)(unsafe.Pointer(&nonce)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I supposed to use C.free
on these?
6448f91
to
8e7f104
Compare
I guess this doesn't work as an external package as is because the c code must be built. Was there a way to ensure it is built? Also doesn't currently work on windows and maybe osx. Maybe best to move to internal anyway for now? |
8e7f104
to
be12d55
Compare
Moved to internal which should mean it cannot be imported by other projects. |
If this becomes part of the build we'll need to remove it from our https://github.com/decred/release release builder. The cross compilation depends on the project being pure go. |
This will only be used by a separate monero proof of concept app. We are going to develop something in go for the client/server later, in a different proposal. We intend for this to be temporary. |
be12d55
to
4c89d42
Compare
4c89d42
to
490ec36
Compare
Added four more methods. |
5a31ba1
to
b1564c3
Compare
f1ef19b
to
fcb1ff6
Compare
fcb1ff6
to
e67b1dc
Compare
ba9a320
to
c3463b3
Compare
c3463b3
to
fb4fafc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
Add a c library that has some primitive cryptographic functions needed for working with adaptor signatures.
fb4fafc
to
654e79a
Compare
Add a c library that has some primitive cryptographic functions needed for working with adaptor signatures.
part of #2754