Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Include testcases for constructing the HTLCs in the RFCs #94

@thomaseizinger

Description

@thomaseizinger

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:

  • the HTLC hex
  • concrete parameters
  • the correct hex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions