nervosnetwork / fiber

15 stars 8 forks source link

feat: allow sha256 for HTLC #105

Closed doitian closed 2 months ago

doitian commented 2 months ago

Allow use sha256 in TLC.

See contract PR https://github.com/nervosnetwork/cfn-scripts/pull/6

The sha256 TLC is covered in the e2e test case 3-nodes-transfer with extra args --env-var HASH_ALGORITHM=sha256

doitian commented 2 months ago

Need time to add tests to cover SHA256 HTLC, but the code is ready for review.