You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
In order to build a 2nd implementation of COMIT that is compatible with the reference implementation, we specify the HTLCs as HEX codes in the RFCs and document the byte ranges which have to be replaced with the respective parameters.
In order to make sure that OUR implementation does the correct thing and to allow other implementors to have the same confidence, we should add test cases to all of these RFCs that can be taken and directly converted to unit tests:
Given the HTLC hex and concrete parameters, when the HTLC is constructed, should yield the correct hex.
In order to build a 2nd implementation of COMIT that is compatible with the reference implementation, we specify the HTLCs as HEX codes in the RFCs and document the byte ranges which have to be replaced with the respective parameters.
In order to make sure that OUR implementation does the correct thing and to allow other implementors to have the same confidence, we should add test cases to all of these RFCs that can be taken and directly converted to unit tests:
Given the HTLC hex and concrete parameters, when the HTLC is constructed, should yield the correct hex.
Our test cases will need to provide: