Feature Request - Extend Consensus.Asset module
Would be nice to have functions like
// Creates an asset with identifier ContractID, and the supplied hash as the subidentifier
val mkSubTypeHash: ContractID -> Hash -> Asset
(* Creates an asset with identifier ContractID, using the ascii-encoding of the string, right-padded to 32 bytes with zeros, as the subidentifier. *)
val mkSubTypeString: ContractID -> String -> Option<Asset> // should return None if string length > 32, otherwise Some asset
Perhaps also functions to use machine integers to generate subidentifiers?
Good first issue if anyone wants to contribute. This is a fairly simple task.
Edited by A L Manning