Crystal bindings for the Bitcoin Core implementation of secp256k1 library.
Applications that using these bindings must have access to the installed libsecp256k1
library.
Since these bindings are designed for the Bitcoin Core implementation, there is no guarantee of working with others.
-
Add the dependency to your
shard.yml
:dependencies: secp256k1: github: qualterz/secp256k1.cr
-
Run
shards install
require "secp256k1"
- Native bindings. See native examples.
- Crystal wrapper. See wrapper examples.
In case of using native bindings, original examples and documentation can be used for reference.
Deprecated library functions will not be wrapped, so if there is need to use them, they can be used natively.
The bindings are generated automatically by executing make generate_lib
shell command.
The libgen is used as a bindings generator.
- Fork it (https://github.com/qualterz/secp256k1.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- qualterz - creator and maintainer