HomePhabricator

Make empty byte arrays pass CheckSignatureEncoding()
2fa9a8ec8603Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Make empty byte arrays pass CheckSignatureEncoding()

Makes it possible to compactly provide a delibrately invalid signature
for use with CHECK(MULTI)SIG. For instance with BIP19 if m != n invalid
signatures need to be provided in the scriptSig; prior to this change
those invalid signatures would need to be large DER-encoded signatures.

Note that we may want to further expand on this change in the future by
saying that only OP_0 is a "valid" invalid signature; BIP19 even with
this change is inherently malleable as the invalid signatures can be any
validly encoded DER signature.

Details

Provenance
Peter Todd <pete@petertodd.org>Authored on Jan 9 2015, 10:52
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGd0c97bbe70a6: Merge pull request #5617
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Todd <pete@petertodd.org> committed rSTAGING2fa9a8ec8603: Make empty byte arrays pass CheckSignatureEncoding() (authored by Peter Todd <pete@petertodd.org>).Jan 9 2015, 11:03