vimmerru / indy-crypto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Before you Continue

If you haven't done so already, please visit the main resource for all things "Indy" to get acquainted with the code base, helpful resources, and up-to-date information: Hyperledger Wiki-Indy.

Indy Crypto

This is the shared crypto libirary for Hyperledger Indy components.

Hyperledger Indy provides a distributed-ledger-based foundation for self-sovereign identity.

The major artifacts of the Indy Crypto are:

  • С-callable library interface
  • Rust сrate
  • Python wrapper

All bugs, stories, and backlog for this project are managed through Hyperledger's Jira in project IS (note that regular Indy tickets are in the INDY project instead...). Also, join us on Jira's Rocket.Chat at #indy-sdk to discuss.

Building Indy Crypto

  1. Install Rust and rustup (https://www.rust-lang.org/install.html).

  2. Checkout and build the library:

    git clone https://github.com/hyperledger/indy-crypto.git
    cd ./indy-crypto/libindy-crypto
    cargo build
    cd ..
    
  3. Run tests

    cd libindy-crypto
    cargo test
    

Windows build dependency

System OpenSSL library is required.

  • Download the prebuilt dependencies here
  • Extract them into the folder C:\BIN\x64

It really doesn't matter where you put these as long as you remember where so you can set the environment variables to this path

  • Point path to this directory using environment variables:
    • set INDY_CRYPTO_PREBUILT_DEPS_DIR=C:\BIN\x64
    • set OPENSSL_DIR=C:\BIN\x64

API Documentation

API documentation is now available as rust doc in code. See:

Wrappers documentation

Binaries

Note: Binaries creation is in progress now!!!

Builded binaries can be downloaded from https://repo.sovrin.org:

  • sdk/lib/apt/xenial/{master,stable,rc} - Ubuntu deb packages
  • windows/libindy_crypto/{master,stable,rc} - Windows zip-archive with all required DLLs (include libindy itself) and headers
  • ios/libindy_crypto/stable/ - Pods for iOS
  • rhel/libindy_crypto/{master,stable,rc} - RHEL rpms

Also Ubundu deb packages can be installed from APT repository:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable"
sudo apt-get update
sudo apt-get install -y libindy-crypto

About

License:Apache License 2.0


Languages

Language:Rust 95.8%Language:Python 2.0%Language:Groovy 1.7%Language:Shell 0.3%Language:C 0.2%Language:Makefile 0.0%