pub trait Versions:
Clone
+ Copy
+ Debug
+ Send
+ Sync
+ 'static {
type Base: StaticVersionType;
type Upgrade: StaticVersionType;
type Epochs: StaticVersionType;
type DrbAndHeaderUpgrade: StaticVersionType;
const UPGRADE_HASH: [u8; 32];
}
Expand description
Version information for HotShot
Required Associated Constants§
Sourceconst UPGRADE_HASH: [u8; 32]
const UPGRADE_HASH: [u8; 32]
The hash for the upgrade.
Required Associated Types§
Sourcetype Upgrade: StaticVersionType
type Upgrade: StaticVersionType
The version of HotShot this node may be upgraded to. Set equal to Base
to disable upgrades.
Sourcetype DrbAndHeaderUpgrade: StaticVersionType
type DrbAndHeaderUpgrade: StaticVersionType
The version at which to use the upgraded DRB difficulty
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.