aboutsummaryrefslogtreecommitdiff
path: root/src/script/descriptor.h
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2018-12-12 10:08:08 +0100
committerSjors Provoost <sjors@sprovoost.nl>2019-01-29 16:55:45 +0100
commit2e68ffaf205866e4cea71f64e79bbfb89e17280a (patch)
tree92e743f148d366a8a124bf8155791a37ace6b968 /src/script/descriptor.h
parent2290269759ad10cc2e35958c7b0a63f3a7608621 (diff)
downloadbitcoin-2e68ffaf205866e4cea71f64e79bbfb89e17280a.tar.xz
[doc] descriptor: explain GetPubKey() usage with cached public key
Plus a few typo fixes.
Diffstat (limited to 'src/script/descriptor.h')
-rw-r--r--src/script/descriptor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/descriptor.h b/src/script/descriptor.h
index 44f0efca03..2be157b861 100644
--- a/src/script/descriptor.h
+++ b/src/script/descriptor.h
@@ -46,9 +46,9 @@ struct Descriptor {
*
* pos: the position at which to expand the descriptor. If IsRange() is false, this is ignored.
* provider: the provider to query for private keys in case of hardened derivation.
- * output_script: the expanded scriptPubKeys will be put here.
+ * output_scripts: the expanded scriptPubKeys will be put here.
* out: scripts and public keys necessary for solving the expanded scriptPubKeys will be put here (may be equal to provider).
- * cache: vector which will be overwritten with cache data necessary to-evaluate the descriptor at this point without access to private keys.
+ * cache: vector which will be overwritten with cache data necessary to evaluate the descriptor at this point without access to private keys.
*/
virtual bool Expand(int pos, const SigningProvider& provider, std::vector<CScript>& output_scripts, FlatSigningProvider& out, std::vector<unsigned char>* cache = nullptr) const = 0;
@@ -56,7 +56,7 @@ struct Descriptor {
*
* pos: the position at which to expand the descriptor. If IsRange() is false, this is ignored.
* cache: vector from which cached expansion data will be read.
- * output_script: the expanded scriptPubKeys will be put here.
+ * output_scripts: the expanded scriptPubKeys will be put here.
* out: scripts and public keys necessary for solving the expanded scriptPubKeys will be put here (may be equal to provider).
*/
virtual bool ExpandFromCache(int pos, const std::vector<unsigned char>& cache, std::vector<CScript>& output_scripts, FlatSigningProvider& out) const = 0;