pub fn create_data_id(
    protocol_version: ProtocolVersion,
    action_hash: &CryptoHash,
    prev_block_hash: &CryptoHash,
    block_hash: &CryptoHash,
    data_index: usize
) -> CryptoHash
Expand description

Creates a new data_id from a given action hash, a block hash and a data index. This method is backward compatible, so it takes the current protocol version.