//	This helper function calculates the id of the associate child trie 
This helper function calculates the id of the associate child trie
This helper function calculates the id of the associate child trie
pub(super) fn id_from_index(
        index: &PaymentIndex
    ) -> child::ChildInfo { 
        let mut buf = Vec::new();
        buf.extend_from_slice(b"payment");
        buf.extend_from_slice(&index.to_le_bytes()[..]);
        child::ChildInfo::new_default(T::Hashing::hash(&buf[..]).as_ref())
    }
pub ( super ) fn id_from_index ( index : & PaymentIndex ) -> child :: ChildInfo { let mut buf = Vec :: new ( ) ; buf . extend_from_slice ( b" " ) ; buf . extend_from_slice ( & index . to_le_bytes ( ) [ .. ] ) ; child :: ChildInfo :: new_default ( T :: Hashing :: hash ( & buf [ .. ] ) . as_ref ( ) ) }
This helper function calculates the id of the associate child trie
This helper function calculates the id of the associate child trie
index
&PaymentIndex