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

Improve SigHash support #1203

Open
viter-fb opened this issue Mar 4, 2024 · 0 comments
Open

Improve SigHash support #1203

viter-fb opened this issue Mar 4, 2024 · 0 comments

Comments

@viter-fb
Copy link

viter-fb commented Mar 4, 2024

Current SigHash enum:

public enum SigHash : uint
{
All = 1,
None = 2,
Single = None | All,
AnyoneCanPay = 128, // 0x00000080
}

Complete SigHash enum:

public enum SigHash : uint
{
ALL(1),
NONE(2),
SINGLE(3),
FORKID(0x40),
ANYONECANPAY(0x80), // Caution: Using this type in isolation is non-standard. Treated similar to ANYONECANPAY_ALL.
ANYONECANPAY_ALL(0x81),
ANYONECANPAY_NONE(0x82),
ANYONECANPAY_SINGLE(0x83)

}

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

No branches or pull requests

1 participant