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

Take into account Resource Limitations #6

Open
landabaso opened this issue Jan 21, 2023 · 1 comment
Open

Take into account Resource Limitations #6

landabaso opened this issue Jan 21, 2023 · 1 comment

Comments

@landabaso
Copy link
Member

landabaso commented Jan 21, 2023

https://bitcoin.sipa.be/miniscript/
Resource limitations

  • Scripts over 10000 bytes are invalid by consensus (bare, P2SH, P2WSH, P2SH-P2WSH).
  • Scripts over 3600 bytes are invalid by standardness (P2WSH, P2SH-P2WSH).
  • Scripts over 520 bytes are invalid by consensus (P2SH).
  • Anything but pk(key) (P2PK), pkh(key) (P2PKH), and multi(k,...) up to n=3 is invalid by standardness (bare).
  • Script satisfactions where the total number of non-push opcodes plus the number of keys participating in all executed multis, is above 201, are invalid by consensus (bare, P2SH, P2WSH, P2SH-P2WSH).
  • Script satisfactions with a serialized scriptSig over 1650 bytes are invalid by standardness (P2SH).
  • Script satisfactions with a witness consisting of over 100 stack elements (excluding the script itself) are invalid by standardness (P2WSH, P2SH-P2WSH).
@landabaso
Copy link
Member Author

landabaso commented Jan 23, 2023

A PR has been submitted to bitcoinjs-lib.
bitcoinjs/bitcoinjs-lib#1863

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