Skip to content

NilFoundation/crypto3-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto3 Template

This repository scaffolds the required dependencies for =nil;Foundation's crypto3 library and presents an examples of modules:

  • pubkey
    • BLS signature
    • BLS weighted threshold signatures

Dependencies

On *nix systems, the following dependencies need to be present & can be installed using the following command

 sudo apt install build-essential libssl-dev libboost-all-dev cmake clang git

Installation

  • Clone the repo
git clone https://github.com/NilFoundation/crypto3-template.git
cd crypto3-template
  • Clone all submodules recursively
git submodule update --init --recursive
  • Build
mkdir build && cd build
cmake .. && make
  • Run executable
./src/bls/bls_sig
./src/bls_weighted_threshold_sig/bls_weighted_threshold_sig

Common issues

Compilation Errors

If you have more than one compiler installed i.e g++ & clang++. The make system might pick up the former. You can explicitly force usage of clang++ by finding the path and passing it in the variable below.

`which clang++`  
cmake .. -DCMAKE_CXX_COMPILER=<path to clang++ from above>

Submodule management

Git maintains a few places where submodule details are cached. Sometimes updates do not come through. ex: Deletion , updating a url of a previously checked out submodule.It is advisable to check these locations for remains or try a new checkout.

  • .gitmodules
  • .git/config
  • .git/modules/*

About

Crypto3 library template to explore and hack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published