Trait tuxedo_core::traits::Cash

source ·
pub trait Cash {
    const ID: u8;

    // Required method
    fn value(&self) -> u128;
}
Expand description

A trait for UTXOs that can act like coins, or bank notes.

Required Associated Constants§

source

const ID: u8

A 1-byte unique identifier for this coin. Might need more than 1 byte eventually…

Required Methods§

source

fn value(&self) -> u128

Get the value of this token.

Object Safety§

This trait is not object safe.

Implementors§