Braydon Fuller
a50fccef4d
Changes behavior of `toJSON` to work as expected with `JSON.stringify`
- see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior
- Updates CONTRIBUTING with changes to Stardard Methods
- Aliases toJSON for toObject
- Removes all `fromJSON` methods, and many cases replaces with `fromObject`
- Constructors expect an object parsed via `JSON.parse` for JSON input
10 years ago
Braydon Fuller
458abe069e
Fixed issue with handling invalid output scripts
- Changed toObject serialization to always use a hexa string for a script
- Updated inspect method to handle a null script
- Roundtrip toObject/fromObject with an invalid script
- Additional test coverage for Output
10 years ago
Patrick Nagurny
de078a40d3
If output.script is InvalidBuffer, return null instead of throwing error
10 years ago
Braydon Fuller
3d447ded79
Update bn.js to 2.0.4 to handle 53 bit precision number input.
10 years ago
Braydon Fuller
bcd4efb724
Added `checkState` for positive integer in Output satoshis
10 years ago
Manuel Araoz
b685b5d28a
add inputAmount and outputAmount to docs
10 years ago
Manuel Araoz
b92fd915eb
increase coverage for Input and Output, fix some bugs
10 years ago
Esteban Ordano
bdeac4e67d
Add inspect method to output
10 years ago