-
Notifications
You must be signed in to change notification settings - Fork 5
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
STR 754: Support Address
es and OP_RETURN
s as withdrawal destinations
#600
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #600 +/- ##
==========================================
- Coverage 56.85% 56.82% -0.04%
==========================================
Files 308 308
Lines 32372 32379 +7
==========================================
- Hits 18405 18398 -7
- Misses 13967 13981 +14
|
Commit: 44cccc7 SP1 Performance Test Results
|
a9e7fce
to
5471b8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tweaks to representation.
// FIXME: How to make this work with a BOSD Descriptor. | ||
destination, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still probably pass it around as plain bytes instead of the encoded representation. Once we've validated it we don't have to introspect it again until the operator gets it. (Although we'd probably validate it once more when we have a cleaner break between the EVM EE and the Strata chain, still keeping it as bytes though.)
crates/reth/primitives/src/lib.rs
Outdated
// FIXME: How do I use a BOSD Descriptor here? | ||
bytes32 destination, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytes
, unfortunately
This kinda still is messy, we shouldn't be using logs for this imo.
crates/reth/primitives/src/lib.rs
Outdated
// FIXME: How do I use a BOSD Descriptor here? | ||
pub destination: B256, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vec<u8>
still, we can avoid validating it until we actually use it and take advantage of the simpler representation elsewhere.
6bc6c21
to
5e25a11
Compare
Description
Right now the bridge supports withdraws only to P2TR. The user passes an X-only PK to the bridge withdrawal precompile address.
However we need to support any arbitrary address, along with
OP_RETURN
s as valid withdrawal destinations.TODO
bitcoin-bosd
to a version in crates.io.Type of Change
Notes to Reviewers
Checklist
Related Issues
STR-754