Commit graph

23 commits

Author SHA1 Message Date
Daniel Cousens f3d918a2cb tests: use privateKey 0x000...0001 for examples 2019-01-01 23:49:59 +11:00
Daniel Cousens 49be171583 rm usage of unsafeDeterministicRng 2019-01-01 23:24:26 +11:00
Daniel Cousens e5781d97b9 testing: extra warnings 2019-01-01 11:41:00 +11:00
Daniel Cousens 7d8dd860d1 testing: use NODE_ENV instead of mocha constants 2019-01-01 11:32:27 +11:00
Jonathan Underwood 1d73823a84
Merge pull request #1239 from ak1103dev/patch-1
Add example for using in production
2018-12-31 15:53:49 +09:00
Jonathan Underwood f8490b6c0d
Update rng function
In case someone copy pastes, instead of getting a dangerous key, they will get a random key, and a console error.
2018-12-31 15:17:00 +09:00
Daniel Cousens aac228011f README: rm bad sha256 hash example 2018-11-29 15:31:45 +11:00
Apichan Chaiyutthasat b93d9d99cc
Update addresses.js 2018-10-06 13:13:40 +07:00
Daniel Cousens 16195cc6ce explicitly import mocha variables 2018-07-23 17:45:01 +10:00
Daniel Cousens 256656f766 use payments in integration tests 2018-06-27 14:34:05 +10:00
Daniel Cousens a5db0a4e44 sed -i 's/ var / const /', with const->let fixes 2018-06-25 18:26:23 +10:00
Daniel Cousens 93b1ae4303 sed -i 's/^let /const /' 2018-06-25 16:24:37 +10:00
Daniel Cousens bc7ca710ed use blockchain.info for 3PBP address example 2018-06-21 13:31:40 +10:00
Daniel Cousens d934e543d8 rm Litecoin 2018-06-05 17:22:39 +10:00
Daniel Cousens 2fe220517f transition ECPair to properties over getters 2018-05-30 15:52:03 +10:00
Daniel Cousens fba0699dd3 rm ecdsa, add new ECPair using secp256k1 2018-05-30 15:52:03 +10:00
Daniel Cousens c2a5d9dc1a rm getAddress 2018-05-30 11:09:07 +10:00
Prahalad Belavadi b177050069
add warning for generating addresses from sha256 hash example 2018-04-21 16:52:27 +05:30
Daniel Cousens 4ca6bf4e81 use https://api.dcousens.cloud reg-test server instead of testnet 2018-02-01 12:56:33 +11:00
Pavel 'PK' Kaminsky f46ae7d731
crypto.sha256 should receive a Buffer as an input rather than a string
checked and it works with buffers.

if you wanted to use string implicitly, the function parameter should be renamed  from buffer to string.
f4caaf42e7/src/crypto.js (L11)
2017-12-29 00:55:16 +02:00
Daniel Cousens 8bd95bd498
redeemScript, not witnessScript 2017-12-18 10:18:12 +11:00
Daniel Cousens 5b1d443bf1 README/tests: add BIP173/BIP16 SegWit address examples 2017-08-21 19:13:24 +10:00
Daniel Cousens a4fe3d3139 testing/integration/examples: isolate to addresses/transactions
examples, use public broadcast endpoints
2017-08-10 14:20:42 +10:00