Coder Social home page Coder Social logo

xdb-digitalbits-base's Introduction

JS DigitalBits Base

The xdb-digitalbits-base library is the lowest-level digitalbits helper library. It consists of classes to read, write, hash, and sign the xdr structures that are used in digitalbits-core. This is an implementation in JavaScript that can be used on either Node.js or web browsers.

Warning! Node version of this package is using sodium-native package, a native implementation of Ed25519 in Node.js, as an optional dependency. This means that if for any reason installation of this package fails, xdb-digitalbits-base will fallback to the much slower implementation contained in tweetnacl.

If you are using xdb-digitalbits-base in a browser you can ignore this. However, for production backend deployments you should definitely be using sodium-native. If sodium-native is successfully installed and working DigitalBitsBase.FastSigning variable will be equal true. Otherwise it will be false.

Quick start

  1. Install Bundler
  2. Use node version >= 12.

Clone repository, install dependencie, compile libs and link directory

git clone https://github.com/xdbfoundation/xdb-digitalbits-base
cd xdb-digitalbits-base
bundle install
yarn
yarn gulp
yarn link

Use yarn to include xdb-digitalbits-base in your own project. Execute in root directory of your project

yarn link xdb-digitalbits-base

Then require/import it in your JavaScript:

var DigitalBitsBase = require('xdb-digitalbits-base');

Usage

For information on how to use xdb-digitalbits-base, take a look at the docs in the docs folder.

Testing

To run all tests:

yarn gulp test

To run a specific set of tests:

yarn gulp test:node
yarn gulp test:browser

You can also run yarn test for a simpler subset of the test cases.

Documentation

Documentation for this repo lives inside the docs folder.

License

xdb-digitalbits-base is licensed under an Apache-2.0 license. See the LICENSE file for details.

xdb-digitalbits-base's People

Contributors

alex-tabachuk avatar andywer avatar bartekn avatar brianebert avatar cmmcgarry avatar dievri avatar dydt avatar fracek avatar fredericheem avatar irisli avatar ivandepivan avatar jedmccaleb avatar johansten avatar nullstyle avatar strogonoff avatar thejollyrogers avatar tmadej avatar vpohyla avatar

Watchers

 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.