Describe the feature
Describe the feature
Simplicityhl-std should include functions for easily retrieving the AssetId and Amount for inputs and outputs.
Simplicityhl-std should provide the IndexType enum:
enum IndexType {
Input,
Output,
}
Functions for retrieving an AssetId:
get_explicit_asset_id(index: u32, index_type: IndexType)
get_confidential_asset_id(index: u32, index_type: IndexType)
get_explicit_input_asset_id(index: u32)
get_confidential_input_asset_id(index: u32)
get_explicit_output_asset_id(index: u32)
get_confidential_output_asset_id(index: u32)
get_current_explicit_asset_id()
get_current_confidential_asset_id()
Functions for getting Amount:
get_explicit_amount(index: u32, index_type: IndexType)
get_confidential_amount(index: u32, index_type: IndexType)
get_explicit_input_amount(index: u32)
get_confidential_input_amount(index: u32)
get_explicit_output_amount(index: u32)
get_confidential_output_amount(index: u32)
get_current_explicit_amount()
get_current_confidential_amount()
Functions for retrieving the AssetId along with the Amount:
get_explicit_asset_id_with_amount(index: u32, index_type: IndexType)
get_confidential_asset_id_with_amount(index: u32, index_type: IndexType)
get_explicit_input_asset_id_with_amount(index: u32)
get_confidential_input_asset_id_with_amount(index: u32)
get_explicit_output_asset_id_with_amount(index: u32)
get_confidential_output_asset_id_with_amount(index: u32)
get_current_explicit_asset_id_with_amount()
get_current_confidential_asset_id_with_amount()
Describe the feature
Describe the feature
Simplicityhl-std should include functions for easily retrieving the
AssetIdandAmountfor inputs and outputs.Simplicityhl-std should provide the
IndexTypeenum:Functions for retrieving an
AssetId:get_explicit_asset_id(index: u32, index_type: IndexType)get_confidential_asset_id(index: u32, index_type: IndexType)get_explicit_input_asset_id(index: u32)get_confidential_input_asset_id(index: u32)get_explicit_output_asset_id(index: u32)get_confidential_output_asset_id(index: u32)get_current_explicit_asset_id()get_current_confidential_asset_id()Functions for getting
Amount:get_explicit_amount(index: u32, index_type: IndexType)get_confidential_amount(index: u32, index_type: IndexType)get_explicit_input_amount(index: u32)get_confidential_input_amount(index: u32)get_explicit_output_amount(index: u32)get_confidential_output_amount(index: u32)get_current_explicit_amount()get_current_confidential_amount()Functions for retrieving the
AssetIdalong with theAmount:get_explicit_asset_id_with_amount(index: u32, index_type: IndexType)get_confidential_asset_id_with_amount(index: u32, index_type: IndexType)get_explicit_input_asset_id_with_amount(index: u32)get_confidential_input_asset_id_with_amount(index: u32)get_explicit_output_asset_id_with_amount(index: u32)get_confidential_output_asset_id_with_amount(index: u32)get_current_explicit_asset_id_with_amount()get_current_confidential_asset_id_with_amount()