Manuel Araoz
e331c4ea49
allow addresses to have surrounding whitespace in validation
10 years ago
Braydon Fuller
f034a71929
Network Fixes
- Fixed Address classification for a custom network
- Added ability to remove a custom network
- Increased test coverage for Address
10 years ago
Manuel Araoz
e0b1ca0e10
move some script logic from Address to Script
10 years ago
Manuel Araoz
a9328d76ff
add extra test
10 years ago
Manuel Araoz
62ea45a524
refactor Address<->Script relation
10 years ago
eordano
575993967c
Standardize optional parameters to Closure syntax
10 years ago
eordano
fcc9081ddd
Fix JSDocs from String to string
10 years ago
Trevin Hofmann
374e43bed2
Properly capitalize Base58Check and Base58
10 years ago
Braydon Fuller
904df59493
Added docs link to InvalidArgument message for preconditions.
- Error messages will appear as: "Invalid Argument: First argument is required, please include address data. Documentation: http://bitcore.io/guide/address.html "
10 years ago
Esteban Ordano
41191a285f
Add alternative to create an Address
* When by error one has two instances of an address, an address
can't be instantiated from the other
10 years ago
Esteban Ordano
fe86abc093
Add `change` when serializing transaction
10 years ago
Yemel Jardi
e57d02c03c
Use define immutable helper
10 years ago
Braydon Fuller
8b505f0cfa
Fixed tests to handle a `defaultNetwork` change
- Updated tests to work for both 'testnet' and 'livenet' as the default network.
- Fixed a bug in Address where the network property was being set as a string.
- Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
10 years ago
Braydon Fuller
ff4a6f549d
Fixed bugs in IE11
10 years ago
Braydon Fuller
a801663c6d
Fixed bug in Safari for PublicKey and Script instance checking in Address
10 years ago
Esteban Ordano
5ef9975ac5
Honor publicKey.network on create multisig address
Closes #870
10 years ago
Esteban Ordano
d688222769
Add toAddress(network) functionality to scripts
10 years ago
Manuel Araoz
0914624860
fix releaser script
10 years ago
Esteban Ordano
1ec4c7f512
Minor improvements on Address
* Update JSDocs
* Branch coverage 100%
* Removed duplicated test
* Updated names of tests
10 years ago
Braydon Fuller
6d42e01718
Fix formatting issue with examples
10 years ago
Esteban Ordano
5f5cf15241
Add capability to instantiate an Address from public keys and a threshold
10 years ago
Esteban Ordano
4433bd422b
Refactor gulpfile
10 years ago
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
354c03987a
Address: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
93502d1523
Fix naming
10 years ago
Braydon Fuller
32ac9bb63e
Change utility naming
10 years ago
Braydon Fuller
1858766627
Standardized toJSON, fromJSON, toString and fromString interfaces
10 years ago
Braydon Fuller
56161676c3
Address: Change discoverMeta to classifyVersion and add a general address validation example
10 years ago
Braydon Fuller
3b061b057f
Address: Added documentation and refactored to accept both a string and network object.
10 years ago
Esteban Ordano
1816ba197f
Add check functions to Address
10 years ago
Manuel Araoz
4a6755d0d1
add Script#prepend()
10 years ago
Braydon Fuller
d5d88287cd
Networks: Consistency of network reference for 'livenet', and removed hardcoded value.
10 years ago
Esteban Ordano
3dbb35a708
Fixes build, add "mainnet" again and fixes uri
10 years ago
Braydon Fuller
eb72310a62
Address: Use defaultNetwork if network is not specified
10 years ago
Braydon Fuller
4adf1fcb14
Network: Replaced all instances of mainnet with livenet for consistency
10 years ago
Yemel Jardi
db4561f834
Add documentation
10 years ago
Yemel Jardi
80937362be
Address constructor allows an address instance
10 years ago
Braydon Fuller
3298a01498
Immutable Address, PublicKey and PrivateKey
10 years ago
Braydon Fuller
95b489c306
JSDoc: Update Address, PublicKey and PrivateKey so that they are documented.
10 years ago
Braydon Fuller
85ce140aeb
Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey
10 years ago
Braydon Fuller
deb54c5a20
Address: Return new instance if `this` isn't already instantiated.
10 years ago
Braydon Fuller
9863b123c0
Address: Increase test coverage
10 years ago
Braydon Fuller
3c9cc23501
Address: Improved error messages and type, and added inspect prototype for console output.
10 years ago
Braydon Fuller
5ff349758c
Address: Fix Buffer data recognition in browsers
10 years ago
Braydon Fuller
0df97a42fe
Address: Fix indentation, typos and simplify isValid
10 years ago
Braydon Fuller
8f32063375
Address: Add missing semicolons
10 years ago
Braydon Fuller
90341f2ab6
Address: Modified interface so that any instance of Address can be assumed to be valid.
10 years ago
Manuel Araoz
4508fb6765
fix references to encoding
10 years ago
Manuel Araoz
ca9b8d8f7b
use strict to protocol
10 years ago
Manuel Araoz
2bf1ed8f34
use strict to crypto
10 years ago