Trait tuxedo_core::dynamic_typing::UtxoData
source · pub trait UtxoData: Encode + Decode {
const TYPE_ID: [u8; 4];
}
Expand description
A trait that must be implemented for any data that can be contained in a UTXO. It is not recommended to implement this trait directly for primitive types, but rather to use the newtype pattern: https://doc.rust-lang.org/book/ch19-04-advanced-types.html. Using a new type allows strong type disambiguation between bespoke use-cases in which the same primitive may be stored.
Required Associated Constants§
Object Safety§
This trait is not object safe.