-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update to bitcoin 0.30 ecosystem #41
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks, this is repetitive work hehe! I think just one real proposed change of the todo!
to exit!
and all the rest are nits or questions.
} | ||
|
||
pub fn addr_unchecked(addr: Address) -> Address<NetworkUnchecked> { | ||
Address::new(addr.network, addr.payload) |
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.
Uff this is a bit annoying..
}; | ||
} | ||
_ => { | ||
info.type_ = Some("unknown payload".to_owned()); |
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.
Is this because of non-exhaustive?
psbt.sign(&key_map, &SECP).expect("ecdsa psbt signing error"); | ||
}, | ||
PsbtSighashMsg::TapSighash(_tap_sighash) => { | ||
todo!("Signing taproot transactions not yet supported") |
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 think we can use our own exit!()
macro here that does a more graceful exit. Maybe accompanied with a todo comment?
program: p.to_vec(), | ||
}, | ||
p.to_vec(), | ||
).expect("invalid segwit program")), |
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.
Hmm, unfortunate that we don't have .need()
available here outside of the binary. I think it's fine, though.
No description provided.