Commit Graph

4 Commits (ff59f38ba74dddbfa14b7c80079a924860e1c864)

Author SHA1 Message Date
Nelson R. Perez 9057121146 Properly implemented the JsonSerializable interface methods of the CreateHtlcOperation class & included that in tests
- This is required in order to communicate the operation to the full node.
2019-07-26 17:16:16 -05:00
Nelson R. Perez ca30338af6 Implemented a serialization test for a tx containing a CreateHtlcOperation 2019-07-12 00:00:46 -05:00
Nelson R. Perez bb4fd5ce5d Implementing test of the CreateHtlcOperation class byte serialization 2019-07-11 16:42:37 -05:00
Nelson R. Perez bf346f25bf Introducing the CreateHtlcOperation & supporting classes
- HtlcHashType class enumerates all supported HTLC hash functions.
- The HtlcHash class is used to represent all possible HTLC hash results.
- The CreateHtlcOperation class itself is used to represent the operation that creates an HTLC
- A simple test class was introduced in order to test hash functions and subsequently also test the HTLC operation serialization
2019-07-11 13:25:38 -05:00