Daniel Cousens
aca565239a
ECKey: remove unnecessary slice
2014-05-24 00:51:56 +10:00
Daniel Cousens
bcfd62fdb5
ecdsa: remove implicit ecparams
2014-05-24 00:48:31 +10:00
Daniel Cousens
10fe4474d1
ECKey: remove *Buffer/*Hex functions
...
An ECKey is a composition of a private key (D), a public key (Q) and its
compression flag.
These functions gave the impression of serialization of this
composition, when really they only serialized `D`.
They have therefore been removed in favour of always using a sane
serialization format (WIF) that matches the needed behaviour.
If a user needs the previous functionality, simply use `privKey.D.*`
instead of `privKey.*`, as BigInteger supports `*Buffer/*Hex` functions
as expected.
2014-05-18 17:50:10 +10:00
Daniel Cousens
e27c97a791
ECPubKey/ECKey: separate to two files
2014-05-13 16:51:06 +10:00
Daniel Cousens
57b8afbdab
Network: rename Network to Networks
...
This change removes the most common ambiguities.
As the network module is not representative of a class, the lower case
has been used.
2014-05-08 10:59:58 +10:00
Wei Lu
af1f121fd4
upgrade bigi & remove monkey patching
2014-05-03 10:04:54 +08:00
Daniel Cousens
df6ea8aea2
Removes toPaddedBuffer and extends toBuffer
2014-04-25 00:18:13 +10:00
Daniel Cousens
d8883e8d32
Adds BI.toPaddedBuffer and toBuffer
2014-04-24 07:22:23 +10:00
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
2014-04-22 02:19:30 +10:00
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
2014-04-20 04:38:33 +10:00
Daniel Cousens
682ec133bb
Migrates Address to stricter API subset
2014-04-18 17:12:29 +10:00
Daniel Cousens
ca4ba91d9c
Cleans up ECKey error handling
2014-04-18 06:36:34 +10:00
Daniel Cousens
b4f70dcdde
Migrates ECKey to stricter API
2014-04-18 06:36:27 +10:00
Daniel Cousens
bc05828fbc
Adds Buffers as input parameters
2014-04-17 06:07:06 +10:00
Daniel Cousens
f047afef2d
Updates network.js constant names
2014-04-17 05:50:59 +10:00
Daniel Cousens
1f0fb90213
Pads zeros in toBytes output, fixes #121
2014-04-09 18:06:50 +10:00
Daniel Cousens
c99a576fbd
Migrates all usage of crypto-js/sha256 to ./crypto
2014-04-08 23:07:46 +10:00
Daniel Cousens
81d9c8e759
Renames util.js to crypto.js
2014-04-08 22:00:28 +10:00
Daniel Cousens
6fa0c07763
Changes existing code to use new base58 API
2014-04-04 05:10:12 +11:00
Wei Lu
93fe1b4c78
cosmetic standardization
...
[closes #56 ]
2014-03-31 11:47:47 +08:00
Wei Lu
06b6112d58
Merge branch 'dangerpriv' of github.com:dcousens/bitcoinjs-lib into dcousens-dangerpriv
2014-03-29 21:56:44 +08:00
Daniel Cousens
8fd06681ef
Adds fail fast assertions for invalid input
2014-03-29 19:41:05 +11:00
Daniel Cousens
3fa43b83b6
Comma consistency
2014-03-29 19:25:04 +11:00
Daniel Cousens
626c31911b
Removes dangerous private key throwaway
2014-03-29 19:25:04 +11:00
Daniel Cousens
8f7f50d555
Removes deprecated ECKey.export function
2014-03-29 18:12:02 +11:00
Kyle Drake
a74c878b59
merge eckeyoutput
2014-03-24 15:11:34 -07:00
Daniel Cousens
f1414b0d2f
Adds verify to ECPubKey
2014-03-25 03:42:10 +11:00
Daniel Cousens
a96dfea1f4
Adds compression flag to toHex/toBin and tests
2014-03-25 03:41:44 +11:00
Daniel Cousens
87453f1828
Fixes variable redeclarations
2014-03-24 06:22:26 +11:00
Wei Lu
9358a40500
tabs -> spaces
2014-03-24 03:19:39 +08:00
Daniel Cousens
e9fdfecfea
Changes default EC*Key.toString behaviour to Hex
2014-03-23 18:42:52 +11:00
Daniel Cousens
b40374e332
Changes to new version-less ECKey API
2014-03-22 19:12:26 +11:00
Daniel Cousens
a1be488d1b
Fixes #78
2014-03-22 16:27:10 +11:00
Wei Lu
3d6b66e811
move convert methods from util to convert
2014-03-11 09:52:48 +08:00
Wei Lu
a281a5ab53
migrate crypto-js to 3.1.2
2014-03-09 09:49:24 +08:00
Wei Lu
bde9b13b15
remove isArray shim
...
[closes #40 ]
2014-03-03 11:27:19 +08:00
Wei Lu
eaf84c4283
move address versions into network
...
Also change address type name:
address_types -> addressVersion
p2sh_types -> p2shVersion
prod -> mainnet
2014-02-28 16:58:14 +08:00
Michael Gooden
b8215dea60
Add testnet support to Address and ECKey, more tests.
...
Signed-off-by: Michael Gooden <me@michaelgooden.net>
2014-02-24 18:31:18 +02:00
Michael Gooden
b3e3f806cb
Fix parsing of base58 compressed private keys. Add base64 parse support.
...
Signed-off-by: Michael Gooden <me@michaelgooden.net>
2014-02-20 18:01:21 +02:00
Kyle Drake
cb3653105a
Merge vbuterin/master
2014-02-02 11:33:46 -08:00
Vitalik Buterin
c8732e5d38
Fixed ECKey constructor
2014-01-22 08:46:46 -05:00
Andreas Brekken
a68b0910af
Fix wrong bitcoin address from priv key.
2014-01-22 16:29:09 +07:00
Andreas Brekken
8ccb8ad70a
Add toBase58, toWif to ECPubKey
2014-01-16 14:02:21 +07:00
Andreas Brekken
ecbb6f81ee
Allow specifying whether to compress key in ECKey.toBytes
2014-01-16 14:01:57 +07:00
Andreas Brekken
56bb0a0c6d
Improve naming of ECKey/ECPubKey formatters. close vbuterin/bitcoinjs-lib#13
2014-01-11 15:52:29 +07:00
Andreas Brekken
29ebd4edc5
Fix ECKey.verify
2014-01-11 14:26:12 +07:00
Andreas Brekken
bc3136802c
Minor formatting
2014-01-11 13:56:23 +07:00
Andreas Brekken
20aa4a0e8a
Fix compressed check to avoid setting it to undefined
2014-01-11 13:55:53 +07:00
Vitalik Buterin
ff3679a3fe
Added 'wif' as an export format
2014-01-08 18:51:33 -05:00
Vitalik Buterin
1f33b7a291
fixed getBitcoinAddress
2014-01-08 18:41:36 -05:00