summaryrefslogtreecommitdiff
path: root/bip-0322.mediawiki
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-08-08 01:08:12 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-08-08 01:08:12 +0900
commitb3cec02aa4170bd92f6ec61c1e6a440017c35b9c (patch)
tree69b19c6241c25ef5261fbd8a0c130bfb002fc283 /bip-0322.mediawiki
parentf0784c6e922724c674550ee8aa4bfc72d6d32a8a (diff)
bip-322: clarify when to return ERROR in verify action
Diffstat (limited to 'bip-0322.mediawiki')
-rw-r--r--bip-0322.mediawiki2
1 files changed, 2 insertions, 0 deletions
diff --git a/bip-0322.mediawiki b/bip-0322.mediawiki
index a4973d8..d936e1e 100644
--- a/bip-0322.mediawiki
+++ b/bip-0322.mediawiki
@@ -121,6 +121,8 @@ The resulting signature proof should be encoded using base64 encoding.
The "Verify" action takes as input a standard flags value, a script sig, an optional witness, and a purpose.
It emits one of INCONCLUSIVE, VALID, INVALID, or ERROR.
+While omitted below, ERROR is returned if an unforeseen error occurs at any point in the process. A concrete example of this is if a legacy proof is given as input to a non-legacy address; the deserialization of the proof will fail in this case, and this should result in an ERROR result.
+
# Obtain the sighash and scriptPubKey from the purpose; pass on result code if not VALID
# Verify Script with flags=consensus flags (currently P2SH, DERSIG, NULLDUMMY, CLTV, CSV, WITNESS), scriptSig=script sig, scriptPubKey=scriptPubKey, witness=witness, and sighash=sighash
# Return INVALID if verification fails