chore(chain): Fix Indexed and KeychainIndexed documentaion

Co-authored-by: ValuedMammal <valuedmammal@protonmail.com>
This commit is contained in:
Lloyd Fournier 2024-06-11 11:12:51 +10:00 committed by 志宇
parent b8ba5a0206
commit 5a584d0fd8
No known key found for this signature in database
GPG Key ID: F6345C9837C2BDE8

View File

@ -49,9 +49,9 @@ impl Balance {
}
}
/// A tuple of keychain index and corresponding [`ScriptBuf`].
/// A tuple of keychain index and `T` representing the indexed value.
pub type Indexed<T> = (u32, T);
/// A tuple of keychain, index and the [`ScriptBuf`] derived at that location.
/// A tuple of keychain `K`, derivation index (`u32`) and a `T` associated with them.
pub type KeychainIndexed<K, T> = ((K, u32), T);
impl core::fmt::Display for Balance {