Skip to content

mighty-gerbils/gerbil-crypto

Repository files navigation

Gerbil-Crypto

Gerbil-crypto is collection of cryptographic primitives that complement those included in Gerbil itself (as interfaced from OpenSSL).

Current primitives are sufficient to interface with Ethereum: keccak256 and secp256k1.

More primitives may be added in the future.

Copyright and License

Copyright 2020 Mutual Knowledge Systems, Inc. All rights reserved. Gerbil-crypto is distributed under the Apache License, version 2.0. See the file LICENSE.

Installation instructions

Dependencies

You need to first install the Gerbil Scheme compiler. Gerbil depends on openssl so you'll have it installed.

Then you must install the Gerbil Clan utilities and the Gerbil-POO object system, which gxpkg may automatically download for you.

Finally, you also need to install the libsecp256k1 library. The nix recipe for gerbil-crypto does it for you. On Debian or Ubuntu, you may use to apt install libsecp256k1-dev and YMMV on other Linux distributions.

Building

Once all dependencies are installed, you may build with:

./build.ss

Test with:

./unit-tests.ss