Enum rgb_node::util::MagicNumber [−][src]
Magic numbers here are used to distinguish files with RGB data of different type.
NB: These numbers are used with binary data serialization only; they are not a part of the commitments, ids or network-serialized packets.
Rationale: convenience for wallet data import/export and extra-wallet file storage; additional check not to mis-interpret byte sequences
Variants (Non-exhaustive)
Equals to first 4 bytes of SHA256(“rgb:schema”)
= 18429ce35af7f898f765417b28471ab454b89ceff6fc33de77ff5fd98e066bc3
Check with echo -n "rgb:schema" | shasum -a 256
Equals to first 4 bytes of SHA256(“rgb:gensis”) = 2e91cbc08b6205efb4f908bb9bd3fcf5c148763f7b23b0506ef64ffd414fc9b4
Equals to first 4 bytes of SHA256(“rgb:transition”) = bf11926e3db131632bdfa8f996d52d6d19e25d0884c922365ff8cd3c73f10198
Equals to first 4 bytes of SHA256(“rgb:extension”) = 296c892df8b4231058b9ea8b55e0bf6a08069e4fea700a570c535de2d9f39e45
Equals to first 4 bytes of SHA256(“rgb:anchor”) = dd53b6f17c16915ecd01de7935b5c38497f6f6c49b97627296496dc31a6ca86b
Equals to first 4 bytes of SHA256(“rgb:consignment”) = 4c82bf5385ab9027f15f1ce17a8007956fe8f38cbad2ee312cf2c55b72a69420
Equals to first 4 bytes of SHA256(“rgb:disclosure”) = e2fde682700fcef51e2dd3ef8e1c76340881e3ddfd81e9c45c54cf92b5b9483f
Equals to first 4 bytes of SHA256(“rgb:stash”) = cd22a2cb85720d51f1616752cb85059a02f3d35f7dda30a4ca981b59b0924354
Implementations
impl MagicNumber
[src]
Trait Implementations
impl Clone for MagicNumber
[src]
fn clone(&self) -> MagicNumber
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MagicNumber
[src]
impl Debug for MagicNumber
[src]
impl Display for MagicNumber
[src]
impl Eq for MagicNumber
[src]
impl PartialEq<MagicNumber> for MagicNumber
[src]
fn eq(&self, other: &MagicNumber) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for MagicNumber
[src]
impl StructuralPartialEq for MagicNumber
[src]
impl TryFrom<u32> for MagicNumber
[src]
Auto Trait Implementations
impl RefUnwindSafe for MagicNumber
impl Send for MagicNumber
impl Sync for MagicNumber
impl Unpin for MagicNumber
impl UnwindSafe for MagicNumber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,