The Lightning Network consists of two contracts, RSMC(revocable sequence maturity contract) and HTLC. Now I need to implement the RSMC part.
I understand the specific steps in the theory of the RSMC contract, but the implementation process encountered many difficulties. Is there a step-by-step tutorial using existing libraries to implement the Lightning Network (mainly RSMC part)?