Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bridge): important details on DRT #19

Merged
merged 2 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/technical/bitcoin-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,20 @@ who sends 10[^fees] BTC to a P2TR address, where:
1. The script path spend has two paths:
1. "Deposit path", an $N$-of-$N$ multisig path,
where $N$ is the number of operators in the bridge.
Note that this uses Schnorr key aggregation,
hence the signature is aggregated into a single signature that
validates all $N$ operators' signatures.
john-light marked this conversation as resolved.
Show resolved Hide resolved
1. "Take back" path,
which allows the user to take back their funds if the bridge fails to
move funds from the Deposit Request Transaction (DRT)
into the bridge address within approximately 8.5 hours,
i.e. it is time-locked and the user can spend it by providing a signature.

This transaction has some metadata attached to it, in the form of an `OP_RETURN`
output, that can be up to 80 bytes long (according to bitcoin standardness policy),
output, that must be the **second** output of the transaction in order for the
sequencer to be able to detect the transaction.
The `OP_RETURN` output can be up to 80 bytes long
(according to bitcoin standardness policy),
and is composed of the following data:

1. Magic bytes.
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spell-check:
spell-add *WORDS:
@echo "Adding {{ WORDS }} to the dictionary"
for word in {{ WORDS }}; do echo $word >> project-words.txt; done
@just spell-sort

# Sort the dictionary
spell-sort:
Expand Down
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NUMS
PUSHBYTES
Rollkit
Schnorr
Taproot
Tapscript
Taptree
Expand Down