Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.23 KB

crypto.md

File metadata and controls

17 lines (12 loc) · 1.23 KB

Dash Crypto

The cryptographic primitives (ECDSA and HMAC) implementations in this package have been reviewed on the upstream repository, no changes have been done since then, however, more audits and reviews are welcomed.

Random

The dashcore.crypto.Random namespace contains a single function, named getRandomBuffer(size) that returns a Buffer instance with random bytes. It may not work depending on the engine that Dashcore is running on (doesn't work with IE versions lesser than 11).

BN

The dashcore.crypto.BN class contains a wrapper around bn.js, the bignum library used internally in Dashcore.

Point

The dashcore.crypto.Point class contains a wrapper around the class Point of elliptic.js, the elliptic curve library used internally in Dashcore.

Hash

The dashcore.crypto.Hash namespace contains a set of hashes and utilities. These are either the native crypto hash functions from node.js or their respective browser shims as provided by the browserify library.

ECDSA

dashcore.crypto.ECDSA contains a pure JavaScript implementation of the elliptic curve DSA signature scheme based on elliptic.js.