Very nice!
Tried running it. Changed bob key to "ababbaab".repeat( 8 ) and alice key to "baababab".repeat( 8 ) and used different amounts. However when closing the channel, the total funding amount was transfered to one address
if Alice started with 10k sats, sent some money to Bob, and then closed, she tries to close with the prior state (where she still has all 10k sats), because she can't close with the latest state, due to only having 1 signature where 2 are needed. But that is why she has to wait 5 blocks (which should be more in production): during that time, Bob can set things right by running hedgehog.bob_penalize(). If Alice merely tried to finalize state X-1, nothing bad happens to her, Bob can only create the latest state (X). But if she broadcasted X-2, or any other state, Bob can take everything
reply
134 sats \ 1 reply \ @anon 26 Mar
tried it again with differet keys and amounts, and I get this error when trying to push the clsoing transaction from alice: mandatory-script-verify-flag-failed (Invalid Schnorr signature)
reply
can you be a bit more detailed about the steps you took that led to this error? I'd like to try to reproduce it and then fix it. Were the steps this?
  • Fund the multisig with 150k sats
  • Alice sends 2k sats to Bob
  • Alice closes
  • Invalid Schnorr signature
Or something else?
reply