Skip to content

fix(core): replace btck_ScriptVerificationFlags with a public type alias#185

Merged
sedited merged 1 commit into
sedited:masterfrom
alexanderwiederin:verify-flags
May 22, 2026
Merged

fix(core): replace btck_ScriptVerificationFlags with a public type alias#185
sedited merged 1 commit into
sedited:masterfrom
alexanderwiederin:verify-flags

Conversation

@alexanderwiederin
Copy link
Copy Markdown
Collaborator

btck_ScriptVerificationFlags was exposed in the public API via the types on the VERIFY_* constants. Add a ScriptVerificationFlags type alias and update the constants to use it.

Comment thread src/core/verify.rs
c_helpers, ffi::sealed::AsPtr, KernelError, ScriptPubkeyExt, TransactionExt, TxOutExt,
};

pub type ScriptVerificationFlags = btck_ScriptVerificationFlags;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can we use this in the tests too isntead of its btck_ name? I think that might take an additional export for this module.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done - thank you! I also added a doc comment for ScriptVerificationFlags

btck_ScriptVerificationFlags was exposed in the public API via the types
on the VERIFY_* constants. Add a ScriptVerificationFlags type alias and
update the constants to use it.
Copy link
Copy Markdown
Owner

@sedited sedited left a comment

Choose a reason for hiding this comment

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

LGTM

@sedited sedited merged commit 74472e3 into sedited:master May 22, 2026
13 checks passed
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