A Clojure(Script) Cryptography Library
Simply include in your project.clj
file:
:repositories [["jitpack" "https://jitpack.io"]]
:dependencies [[com.github.Sepia-Officinalis/secp256k1 "1.0.3"]]
Note that only Java 8+ is support.
This is a library implements elliptic curve cryptography for secp256k1, the elliptic curve used by BitCoin.
The goals of this project are as follows:
✅ Isomorphic Clojure ⇔ ClojureScript compatibility testing
✅ Advanced compilation under ClojureScript
✅ Deterministic ECDSA signatures via RFC 6979
✅ Public Key recovery via BitCoin's recovery id scheme
½ Access to browser native cryptographic primitives in crypto.subtle
❌ Wrap the libsecp256k1 JNI provided by BitCoin Core
❌ Diffie-Helman shared secrets
Testing is carried out at the command line
Clojure:
lein test
ClojureScript:
lein test-advanced