Skip to content

Commit

Permalink
chore(chain): Fix Indexed and KeychainIndexed documentaion
Browse files Browse the repository at this point in the history
Co-authored-by: ValuedMammal <[email protected]>
  • Loading branch information
2 people authored and evanlinjin committed Jun 13, 2024
1 parent b8ba5a0 commit 5a584d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chain/src/keychain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a584d0

Please sign in to comment.