-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add OP_RETURN into ord wallet send
#3067
base: master
Are you sure you want to change the base?
Conversation
Could you expand a bit on the use cases for this? |
The use-case is when transferring the inscription between addresses, create some possibility to add some metadata/info to the transfer itself. Concrete example:
Marked it as a draft for now, hopefully, I will have time to finish it soon. Thanks :) |
|
||
if let Some(op_return) = self.op_return { | ||
// TODO: improve the check for checking byte-length | ||
assert!(op_return.len() <= 80); |
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.
assert!(op_return.len() <= 80); | |
assert!(op_return.len() <= 82); |
use bitcoin::blockdata::script::PushBytesBuf; | ||
|
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.
Inline with the other imports
Fixes #3007:
op-return
flag toord wallet send
that allows for sending some smaller data inOP_RETURN
Next steps/improvements:
Possible next steps:
OP_RETURN
s in one transaction (if possible)OP_RETURN
possibility even to the minting transaction