libswarm-ng

C implementation of BMT hasher, Swarmhash and Single Owner Chunk for swarm
git clone git://git.defalsify.org/libswarm-ng.git
Info | Log | Files | Refs | Submodules | README

README (743B)


      1 SETUP
      2 
      3 OS environment requires some provisions to build the deps (these are debian package names):
      4 
      5 - clang
      6 - gcc
      7 - autoconf
      8 - libtool
      9 - git
     10 - pkg-config
     11 - texinfo
     12 
     13 A bash script is provided to fetch and build the dependencies
     14 
     15 $ bash prepare.sh
     16 
     17 
     18 TESTS
     19 
     20 Running tests will build deps and libraries:
     21 
     22 $ make -f Makefile.dev check
     23 
     24 
     25 WASM
     26 
     27 Has a wasm target too. To build with wasi-libc (to adjust the path use var 'wasi_libcdir' in the makefile):
     28 
     29 $ make wasm_libc
     30 
     31 Or to build with a simple local malloc hack:
     32 
     33 $ make wasm_native
     34 
     35 A couple of example scripts in:
     36 
     37 $ cd scripts/wasm
     38 $ node keccak.js
     39 $ node bmt.js
     40 
     41 
     42 This project has been sponsered by a [Swarm grant](https://www.ethswarm.org/#section-ecosystem).
     43 
     44 It is licensed under GPLv3.