]> Untitled Git - bitcoindevkit.org/commitdiff
descriptors: correct 'pkh()' in the compatibility matrix
authorAntoine Poinsot <darosior@protonmail.com>
Sat, 18 Dec 2021 10:06:31 +0000 (11:06 +0100)
committerAntoine Poinsot <darosior@protonmail.com>
Sat, 18 Dec 2021 10:06:31 +0000 (11:06 +0100)
`pk_h()` is a Miniscript fragment (the equivalent of `pk_k()` for pubkey
hashes) which needs a `c:` in order to be a base expression.

The documentation was misleadingly implying that Bitcoin Core was using
`pkh()` to describe a `pk_h()` fragment, which is wrong (the former is
an alias of `c:pk_h()`).

The table also doesn't list `pk_k()`. Therefore just list the `pkh()`
and `pk()` aliases.

docs/descriptors/README.md

index 9cd39f6bdacefcea92fb16c256bcf9a13e504c64..67f064e81aea60cb2a8be21d94e17f72583ef395 100644 (file)
@@ -50,7 +50,7 @@ Below are some tables to highlight the differences between Bitcoin Core's descri
 | Operator | BDK | rust-miniscript | Bitcoin Core |
 | -------- | --------------- | --------------- | ------------ |
 | `pk()` | ✓ | ✓ | ✓ |
-| `pk_h()` | ✓ | ✓ | ✓ - as `pkh()` |
+| `pkh()` | ✓ | ✓ | ✓ |
 | `older()` | ✓ | ✓ | ✗  |
 | `after()` | ✓ | ✓ | ✗  |
 | `sha256()` | ✓ | ✓ | ✗  |