Twilight
  • Twilight
  • What is a Twilight Pool?
  • Architecture
  • Validators
    • Testnet Usage Estimates
  • 🪃Boomerang
    • Abstract
    • Motivation
    • Design Properties
    • What is a Bitcoin Fragment?
    • Bitcoin Fragment Address
    • Bitcoin Fragment Sweep
    • Clearing
    • Refund Snapshot
    • Deposit Satoshi Test
      • Why Satoshi Test?
      • Deposit Confirmation
    • Withdrawal
    • Inscription Estimates
  • 🕒Validity Gadget
    • Abstract
    • Motivation
    • Design Properties
    • Chaintip Attestation
Powered by GitBook
On this page
  1. Boomerang

Clearing

Clearing is the source of truth for all the intermediary state of a fragment. All transfers are recorded in clearing.

message ClearingAccount {
    string TwilightAddress = 1;
    string BtcDepositAddress = 2;
    uint32 BtcDepositAddressIdentifier = 3; 
    string BtcWithdrawAddress = 4;
    uint32 BtcWithdrawAddressIdentifier = 5;
    repeated IndividualTwilightReserveAccountBalance ReserveAccountBalances = 6

Individual accounts have a separate mapping

message IndividualTwilightReserveAccountBalance {
    uint64 ReserveId = 1;
    uint64 Amount = 2;
PreviousBitcoin Fragment SweepNextRefund Snapshot

Last updated 1 year ago

🪃