summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Rubin <j@rubin.io>2022-01-12 09:53:55 -0800
committerGitHub <noreply@github.com>2022-01-12 09:53:55 -0800
commit526e9797a782cc81ae41cb548ad0ecc7004147f8 (patch)
treebe956c93b79db6b1579d78271ca64e6c29d9a91c
parent9f642244b9a5e5f89faf264833c85a0bbc16e380 (diff)
downloadbips-526e9797a782cc81ae41cb548ad0ecc7004147f8.tar.xz
[BIP-119] Complete fragmented sentence
Co-authored-by: flack <flack@contentcontrol-berlin.de>
-rw-r--r--bip-0119.mediawiki4
1 files changed, 3 insertions, 1 deletions
diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki
index 9649065..1068e24 100644
--- a/bip-0119.mediawiki
+++ b/bip-0119.mediawiki
@@ -171,7 +171,9 @@ Where
bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
// note: for anti-DoS, a real implementation *must* cache parts of this computation
- // to avoid quadratic hashing DoS, including
+ // to avoid quadratic hashing DoS all variable length computations must be precomputed
+ // including hashes of the scriptsigs, sequences, and outputs. See the section
+ // "Denial of Service and Validation Costs" below.
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256(hash);
}