Skip to content

Optional feature gives access to Bitcoin Core's own script validator#58

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tamasblummer:libbitcoinconsenus_feature
Mar 12, 2018
Merged

Optional feature gives access to Bitcoin Core's own script validator#58
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tamasblummer:libbitcoinconsenus_feature

Conversation

@tamasblummer
Copy link
Copy Markdown
Contributor

Adds a feature "bitcoinconsensus" which if enabled links this library with rust-bitcoinconsensus project.
That project wraps Bitcoin Core's own script interpreter for Rust. Use Transaction::verify and Script::verify methods to validate using Bitcoin Core's code.

@tamasblummer
Copy link
Copy Markdown
Contributor Author

@apoelstra please review

@apoelstra
Copy link
Copy Markdown
Member

Can you rebase this and update the README commit to add

  • Removed old script interpreter and moved in-memory blockchain to rust-bitcoin-chain
  • Replaced Base58 traits with encode_slice, check_encode_slice, from and from_check functions in the base58 module

Because these are also big breaking changes that will go into 0.12.

We may also bring in bech32 support but I'll add that in a separate update to the README.

@tamasblummer
Copy link
Copy Markdown
Contributor Author

This is already rebased to current master

@apoelstra
Copy link
Copy Markdown
Member

apoelstra commented Mar 12, 2018

Can you rebase this to remove the merge commit and remove the patch.crates-io thing in Cargo.toml in the first couple commits?

Also to combine the three README-related commits?

@tamasblummer
Copy link
Copy Markdown
Contributor Author

@apoelstra would a squash merge not do the same thing?

@apoelstra
Copy link
Copy Markdown
Member

@tamasblummer There is a merge commit in the PR; a squash merge would prevent an additional merge commit from appearing, but that one is not the one I'm concerned about.

@tamasblummer tamasblummer force-pushed the libbitcoinconsenus_feature branch from ae60fea to 755fb45 Compare March 12, 2018 16:21
@tamasblummer
Copy link
Copy Markdown
Contributor Author

@apoelstra rebased and squashed

Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, ok, that works I guess.

@apoelstra apoelstra merged commit c8702ab into rust-bitcoin:master Mar 12, 2018
@tamasblummer tamasblummer deleted the libbitcoinconsenus_feature branch March 12, 2018 20:18
@apoelstra apoelstra mentioned this pull request Sep 8, 2021
pankcuf pushed a commit to pankcuf/rust-dashcore that referenced this pull request Sep 10, 2025
* chore: small import fixes and version bump

* chore: moved message verification to feature
pankcuf pushed a commit to pankcuf/rust-dashcore that referenced this pull request Sep 10, 2025
* feat: add getrawislocks method

* fix: rename query method

* feat: add getrawislocks method

* fix: rename query method
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