Skip to content

refactor: replace specialized types, which used in APIs, with primitive rust types #4

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

Merged

Conversation

chaoticlonghair
Copy link
Contributor

@chaoticlonghair chaoticlonghair commented Mar 7, 2024

To simplify the APIs, so users don't have to import types from the bitcoin crate.

    pub fn verify_transaction(
        &self,
-       txid: &core::Txid,
+       txid: &[u8; 32],
        tx_proof: packed::TransactionProofReader,
        confirmations: u32,
    ) -> Result<core::Header, VerifyTxError> {

@chaoticlonghair chaoticlonghair marked this pull request as ready for review March 7, 2024 08:43
@chaoticlonghair chaoticlonghair requested review from Flouse and jjyr March 7, 2024 08:43
@chaoticlonghair chaoticlonghair added this pull request to the merge queue Mar 7, 2024
Merged via the queue into utxostack:master with commit 8789a5d Mar 7, 2024
5 checks passed
@chaoticlonghair chaoticlonghair deleted the refactor/simplify-apis branch March 7, 2024 19:30
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.

2 participants