Esteban Ordano
de4d2884c7
Modify Transaction to use Multisig
* Allow `Script#add` to add a Script causing concatenation of opcodes
* Add `Script#equals` to compare scripts
* Add `Script#fromAddress`
* Drop `_payTo` methods
* Add `Script.buildP2SHMultisigIn`
Greatly simplifying the internal transaction object
10 years ago
Braydon Fuller
c86f6d68a9
ECDSA: Remove console.log
10 years ago
Esteban Ordano
4e9e89cdbf
Move license notes to LICENSE
10 years ago
Esteban Ordano
736bcd6bd4
Backport changes to ecdsa from fullnode
10 years ago
Manuel Araoz
1f3d7d9872
move Signature to crypto/
10 years ago
Braydon Fuller
2a2dc8196d
Crypto: Update ECDSA with to use PrivateKey and PublicKey
10 years ago
Braydon Fuller
8c4301cb0a
Tests: Updated tests to run from sub-directories and fixed crypto and encoding related missing updates.
10 years ago
Braydon Fuller
85ce140aeb
Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey
10 years ago
Braydon Fuller
23c1ed3599
Keys: Refactored to use Pubkey and Privkey and removed Keypair
10 years ago
Manuel Araoz
f0a4aebdfb
reorder tests
10 years ago
Manuel Araoz
2bf1ed8f34
use strict to crypto
10 years ago
Manuel Araoz
cebd3aaa18
move files
10 years ago
Ryan X. Charles
6c42969d01
improve error message
10 years ago
Ryan X. Charles
6e9755b009
sign, verify convenience functions
10 years ago
Ryan X. Charles
ed335f35f7
throw error if hashbuf is not 32 bytes
10 years ago
Ryan X. Charles
3daeabaf30
"undefined"s are unnecessary
10 years ago
Ryan X. Charles
74549a53ec
key -> keypair
Since the class has been renamed Key -> Keypair, instances should be renamed
key -> keypair.
10 years ago
Ryan X. Charles
32fabd0c0f
Key -> Keypair
"Keypair" is a more explanatory name, and also should be less confused with
other kinds of keys (particularly "cipher keys", which are the keys used in
symmetric block ciphers, especially AES).
11 years ago
Ryan X. Charles
40e8dfec06
compressed by default with fromRandom
11 years ago
Ryan X. Charles
e2824035bb
Pubkey.prototype.set
11 years ago
Ryan X. Charles
109f31cfdb
Privkey.prototype.set
11 years ago
Ryan X. Charles
a5f79c7651
Signature.prototype.set
11 years ago
Ryan X. Charles
75c1503a92
ECDSA.prototype.set
11 years ago
Ryan X. Charles
ea0ee1b687
add info on public key recovery
11 years ago
Ryan X. Charles
e6a88118ae
fix error message
11 years ago
Ryan X. Charles
bc94a5cb59
sign/verify with uncompressed pubkeys
11 years ago
Ryan X. Charles
3b3ebb0458
sign convenience function
11 years ago
Ryan X. Charles
15f9a99e65
message signing
11 years ago
Ryan X. Charles
4cff6a41f4
remove "(classname): " from tests
...to reduce the burden on writing new code
11 years ago
Ryan X. Charles
3e82c57e19
"hashbuf" indicates type is a buffer
11 years ago
Ryan X. Charles
ca7fdd77c1
recover public key from signature
11 years ago
Ryan X. Charles
f6f7a870fb
allow creating objects without using "new"
11 years ago
Ryan X. Charles
a2e471ae9e
more consistency: n -> bn, p -> point
11 years ago
Ryan X. Charles
304210c132
add tests for all ecdsa functions
11 years ago
Ryan X. Charles
c4064cc6e1
ecdsa
11 years ago