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

tx-verifier: Introduce Context types #1750

Closed
wants to merge 3 commits into from

Conversation

iljakuklic
Copy link
Contributor

These types hold information about the block and transaction being verified. The verification procedure interfaces with the context types rather than inspecting block / transaction directly.

Not quite happy with this yet, will evolve this further. Feedback welcome.

These types hold information about the block and transaction being
verified. The verification procedure interfaces with the context types
rather than inspecting block / transaction directly.

pub struct BlockVerificationContext<'a> {
chain_config: &'a ChainConfig,
destination_getter: SignatureDestinationGetter<'a>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that after introducing scripting, this will probably be eliminated. This is because SignatureDestinationGetter assumes that there's exactly one signature to verify per input, while in reality, it can be more complex than just that.

@TheQuantumPhysicist
Copy link
Contributor

Done in #1762

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