From 8bc9311b737dc94ebeb19286e95d2f309db8fa7d Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Thu, 8 Aug 2024 15:22:10 +0000 Subject: [PATCH] doc: improve list of fields covered by sighash This will result in the rendered numbering being different from the numbering in the source code, but that's probably better than the existing situation where the "3b" item does not show up as an independent list item. There's no good way I can see to fix this because of limitations of rustfmt's list facilities. And anyway this is legacy code. So just do something that makes clippy happy. --- src/descriptor/csfs_cov/cov.rs | 2 +- src/descriptor/csfs_cov/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descriptor/csfs_cov/cov.rs b/src/descriptor/csfs_cov/cov.rs index c2274301..2c6a5a08 100644 --- a/src/descriptor/csfs_cov/cov.rs +++ b/src/descriptor/csfs_cov/cov.rs @@ -25,7 +25,7 @@ //! 1. nVersion of the transaction (4-byte little endian) //! 2. hashPrevouts (32-byte hash) //! 3. hashSequence (32-byte hash) -//! 3b. ELEMENTS EXTRA hashIssuances (32-byte hash) +//! 3. ELEMENTS EXTRA hashIssuances (32-byte hash) //! 4. outpoint (32-byte hash + 4-byte little endian) //! 5. scriptCode of the input (serialized as scripts inside CTxOuts) //! 6. value of the output spent by this input (8-byte little endian) diff --git a/src/descriptor/csfs_cov/mod.rs b/src/descriptor/csfs_cov/mod.rs index c609f592..b1295dd3 100644 --- a/src/descriptor/csfs_cov/mod.rs +++ b/src/descriptor/csfs_cov/mod.rs @@ -26,7 +26,7 @@ //! 1. nVersion of the transaction (4-byte little endian) //! 2. hashPrevouts (32-byte hash) //! 3. hashSequence (32-byte hash) -//! 3b. ELEMENTS EXTRA hashIssuances (32-byte hash) +//! 3. ELEMENTS EXTRA hashIssuances (32-byte hash) //! 4. outpoint (32-byte hash + 4-byte little endian) //! 5. scriptCode of the input (serialized as scripts inside CTxOuts) //! 6. value of the output spent by this input (8-byte little endian)