Document shared to per-spend anchor conversion (#2363)

This commit is contained in:
teor 2021-06-22 11:41:35 +10:00 committed by GitHub
parent 3bd52f89a5
commit 716fa23e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ impl Transaction {
/// returning `Spend<PerSpendAnchor>` regardless of the underlying
/// transaction version.
///
/// Shared anchors in V5 transactions are copied into each sapling spend.
/// This allows the same code to validate spends from V4 and V5 transactions.
///
/// # Correctness
///
/// Do not use this function for serialization.