bitcore-lib-zcash/docs/Crypto.md

24 lines
1.1 KiB
Markdown
Raw Normal View History

2014-11-22 12:29:10 -08:00
# Crypto
2014-11-24 08:52:53 -08:00
2014-12-15 21:45:23 -08:00
The cryptographic primitives (ECDSA and HMAC) implementations in this package have been audited bythe BitPay engineering team. More review and certifications are always welcomed.
2014-11-24 08:52:53 -08:00
## random
2014-12-15 21:45:23 -08:00
The `bitcore.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 bitcore is running on (doesn't work with IE versions lesser than 11).
2014-11-24 08:52:53 -08:00
## bn
2014-12-15 21:45:23 -08:00
The `bitcore.Crypto.BN` class contains a wrapper around [bn.js](https://github.com/indutny/bn.js), the bignum library used internally in bitcore.
2014-11-24 08:52:53 -08:00
## point
2014-12-15 21:45:23 -08:00
The `bitcore.Crypto.Point` class contains a wrapper around the class Point of [elliptic.js](https://github.com/indutny/elliptic.js), the elliptic curve library used internally in bitcore.
2014-11-24 08:52:53 -08:00
## hash
2014-12-15 21:45:23 -08:00
The `bitcore.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.
2014-11-24 08:52:53 -08:00
## ecdsa
2014-12-15 21:45:23 -08:00
`bitcore.Crypto.ECDSA` contains a pure javascript implementation of the elliptic curve DSA signature scheme.