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

Update to bitcoin 0.30 ecosystem #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanket1729
Copy link
Contributor

No description provided.

Copy link
Owner

@stevenroose stevenroose left a 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)
Copy link
Owner

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());
Copy link
Owner

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")
Copy link
Owner

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")),
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants