GithubHelp home page GithubHelp logo

mrazauskas / dashcore-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dashpay/dashcore-lib

0.0 0.0 0.0 22.68 MB

A pure and powerful JavaScript Dash library.

License: Other

JavaScript 99.85% TypeScript 0.06% HTML 0.10%

dashcore-lib's Introduction

Dashcore Library

NPM Version Build Status Release Date standard-readme compliant

A pure and powerful JavaScript Dash library.

Dash is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Dash network allows for highly resilient Dash infrastructure, and the developer community needs reliable, open-source tools to implement Dash apps and services.

Table of Contents

Install

NodeJS

npm install @dashevo/dashcore-lib

Browser

CDN Standalone

<script src="https://unpkg.com/@dashevo/dashcore-lib"></script>
<script>
  const { PrivateKey } = dashcore;
  const privateKey = new PrivateKey();
  const address = privateKey.toAddress().toString();
  ...
</script>

Building the Browser Bundle

To build a dashcore-lib full bundle for the browser:

npm run build

This will generate a file named dashcore-lib.min.js in the dist/ folder.

Usage

Browser

<script src='./dist/dashcore-lib.min.js' type="text/javascript"></script>
<script>
  const PrivateKey = dashcore.PrivateKey;
  const privateKey = new PrivateKey();
  const address = privateKey.toAddress().toString();
</script>

Modules

Some functionality is implemented as a module that can be installed separately:

Development & Tests

git clone https://github.com/dashevo/dashcore-lib
cd dashcore-lib
npm install

Run all the tests:

npm test

You can also run just the Node.js tests with npm run test:node, just the browser tests with npm run test:browser or run a test coverage report with npm run coverage.

Documentation

Concepts

How To Use

Use Case Examples

Some examples can be found here, below is a list of direct links for some of them.

Contributing

Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our CONTRIBUTING file.

License

Code released under the MIT license.

Copyright 2013-2017 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
Copyright 2016-2017 The Dash Foundation, Inc.
Copyright 2017-2020 Dash Core Group, Inc.

dashcore-lib's People

Contributors

maraoz avatar eordano avatar antouhou avatar matiu avatar chjj avatar alex-werner avatar yemel avatar cofresi avatar gasteve avatar shumkov avatar ryanxcharles avatar martindale avatar olalonde avatar kamuelafranco avatar pnagurny avatar braydonf avatar snogcel avatar dskloet avatar nmarley avatar markin-io avatar gabegattis avatar rubensayshi avatar jawid-h avatar throughnothing avatar fanatid avatar bitjson avatar trevinhofmann avatar udjinm6 avatar schinzelh avatar thephez 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.