Giter Site home page Giter Site logo

brentzundel / libsovtoken Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sovrin-foundation/libsovtoken

0.0 1.0 0.0 426.43 MB

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

Makefile 2.74% Groovy 3.58% Dockerfile 3.11% Shell 9.02% Rust 81.55%

libsovtoken's Introduction

LibSovToken

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

Requirements

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

Installing Indy-SDK

Ubuntu
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb stable"
sudo apt-get update
sudo apt-get install -y libindy>=1.6.0
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 from master at https://github.com/evernym/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

Please keep in mind (at the time this document was written) some of the cargo crates are github repositories. If you update libsovtoken code from github you need to re-build libsovtoken as follows:

  1. cargo clean
  2. cargo update
  3. cargo build

The cargo update command is necessary to make sure you get latest from the cargo crates in github

How To Contribute

Please follow the guide here.

libsovtoken's People

Contributors

mac-arrap avatar mattraffel avatar andkononykhin avatar brentzundel avatar mikelodder7 avatar lovesh avatar faisal00813 avatar jerrysims07 avatar kdenhartog avatar steptan avatar kithat avatar sergeykupryushin avatar felippeb avatar jerrysen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.