dbluhm / libsovtoken

This is a payment handler library to work with libindy. It may one day be merged into libindy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img

Table of Contents

  1. LibSovToken
    1. Requirements
      1. Installing Indy-SDK
    2. Running Indy Pool
      1. Build the pool
      2. run the poool
      3. Compiling libsovtoken and running tests
    3. How To Contribute

Hex.pm GitHub version

LibSovToken

Adds Sovrin's token functionality to HyperLedger's Indy-SDK.

Requirements

  • Rust Lang (Stable)
  • LibIndy (Stable)
  • Indy Pool (Provided)

Installing Indy-SDK

  1. Ubuntu

    sudo 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>=1.6.0
    
  2. macOS

    git clone https://github.com/hyperledger/indy-sdk.git
    cd indy-sdk
    git checkout stable 
    cd libindy
    cargo clean 
    cargo update
    cargo build
    

    Libsovtoken build needs to know how to find Indy-SDK. This is done through the environment variable LIBINDY_DIR.

    Create an environment variable LIBINDY_DIR. Have it point the directory containing indy-sdk binaries.

    Use pwd to get path to current directory

    Add this to your bash profile:

    # EXAMPLE 
    export LIBINDY_DIR='/my/path/to/indy-sdk/libindy/target/debug/'
    

    Note anytime you get latest for indy-sdk, you must rebuild the libraries before building libsovtoken, as the libsovtoken build does not compile indy-sdk.

Running Indy Pool

Build the pool

cd devops/indy-pool/ && docker build -t indy_pool . 

run the poool

docker run -itd -p 9701-9708:9701-9708 indy_pool

Compiling libsovtoken and running tests

  1. Make sure you meet the requirements above, including building the projects, if you elect to use source code.

  2. Get latest for libsovtoken at https://github.com/sovrin-foundation/libsovtoken.git

  3. The source code is in a sub-directory called libsovtoken

  4. Run the following commands from the libsovtoken subdirectory

    1. cargo update
    2. cargo build
  5. Run the tests to ensure everything is in good order.

    1. cargo test

How To Contribute

Please follow the guide here.

About

This is a payment handler library to work with libindy. It may one day be merged into libindy.

License:Apache License 2.0


Languages

Language:Rust 82.5%Language:Shell 8.7%Language:Groovy 3.5%Language:Dockerfile 2.7%Language:Makefile 2.6%