pub enum ScriptHashNamespace {
NativeScript,
PlutusScript,
PlutusScriptV2,
}
Expand description
Each new language uses a different namespace for hashing its script This is because you could have a language where the same bytes have different semantics So this avoids scripts in different languages mapping to the same hash Note that the enum value here is different than the enum value for deciding the cost model of a script
Variants§
Trait Implementations§
source§impl Clone for ScriptHashNamespace
impl Clone for ScriptHashNamespace
source§fn clone(&self) -> ScriptHashNamespace
fn clone(&self) -> ScriptHashNamespace
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScriptHashNamespace
impl Debug for ScriptHashNamespace
source§impl Ord for ScriptHashNamespace
impl Ord for ScriptHashNamespace
source§fn cmp(&self, other: &ScriptHashNamespace) -> Ordering
fn cmp(&self, other: &ScriptHashNamespace) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ScriptHashNamespace> for ScriptHashNamespace
impl PartialEq<ScriptHashNamespace> for ScriptHashNamespace
source§fn eq(&self, other: &ScriptHashNamespace) -> bool
fn eq(&self, other: &ScriptHashNamespace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ScriptHashNamespace> for ScriptHashNamespace
impl PartialOrd<ScriptHashNamespace> for ScriptHashNamespace
source§fn partial_cmp(&self, other: &ScriptHashNamespace) -> Option<Ordering>
fn partial_cmp(&self, other: &ScriptHashNamespace) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more