LayerTwo-Labs / bip300301_enforcer

CUSF software enforcing BIP300 and BIP301 rules.
1 stars 4 forks source link

validator: add function + test for creating sidechain proposal #28

Closed torkelrogstad closed 3 weeks ago

torkelrogstad commented 3 weeks ago

This partially implements the solution sketched out here: https://github.com/LayerTwo-Labs/cusf_sidechain_proto/pull/5#discussion_r1793646099

After https://github.com/LayerTwo-Labs/cusf_sidechain_proto/pull/5 is landed, the idea is to add an endpoint that exposes this functionality.

~One issue: this is not behaving precisely as expected... I'm unsure if this is due do a bug in one of the upstream bip300 libraries, or due to me misunderstanding things. See https://github.com/LayerTwo-Labs/bip300301_enforcer/pull/28/files#diff-a8412c4f5f378292029d100f76c5941c636af5cc429f504e82a636f1946fc3d2R1026-R1030~

The above was a misunderstanding on my part! Cleared up after talking with @Ash-L2L in private.