secp256k1
Crystal bindings for the Bitcoin Core implementation of secp256k1 library.
Prerequisites
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.
Installation
-
Add the dependency to your
shard.yml
:dependencies: secp256k1: github: qualterz/secp256k1.cr
-
Run
shards install
Usage
require "secp256k1"
- Native bindings. See native examples.
- Crystal wrapper. See wrapper examples.
Documentation
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.
Development
The bindings are generated automatically by executing make generate_lib
shell command.
The libgen is used as a bindings generator.
Contributing
- 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
Contributors
- qualterz - creator and maintainer