#[repr(u32)]pub enum HashPrefix {
TransactionId = 1_415_073_280,
TxNode = 1_397_638_144,
LeafNode = 1_296_846_336,
InnerNode = 1_296_649_728,
LedgerMaster = 1_280_791_040,
Validation = 1_447_119_872,
Proposal = 1_347_571_712,
Manifest = 1_296_125_440,
}Expand description
Hashing domain prefixes.
Each value is three ASCII letters and a zero byte, as in the reference
implementation (HashPrefix.h in xrpld). Only the ones needed so far are
here; others get added together with the code that uses them.
Variants§
TransactionId = 1_415_073_280
Transaction ID: TXN\0.
TxNode = 1_397_638_144
Leaf of the transaction tree (a transaction with its metadata): SND\0.
LeafNode = 1_296_846_336
Leaf of the state tree: MLN\0.
InnerNode = 1_296_649_728
Inner node of either tree: MIN\0.
LedgerMaster = 1_280_791_040
Ledger header: LWR\0.
Validation = 1_447_119_872
Signed part of a validation: VAL\0.
Proposal = 1_347_571_712
Signed part of a consensus proposal: PRP\0.
Manifest = 1_296_125_440
Signed part of a validator manifest: MAN\0.
Implementations§
Trait Implementations§
Source§impl Clone for HashPrefix
impl Clone for HashPrefix
Source§fn clone(&self) -> HashPrefix
fn clone(&self) -> HashPrefix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashPrefix
Source§impl Debug for HashPrefix
impl Debug for HashPrefix
impl Eq for HashPrefix
Source§impl PartialEq for HashPrefix
impl PartialEq for HashPrefix
impl StructuralPartialEq for HashPrefix
Auto Trait Implementations§
impl Freeze for HashPrefix
impl RefUnwindSafe for HashPrefix
impl Send for HashPrefix
impl Sync for HashPrefix
impl Unpin for HashPrefix
impl UnsafeUnpin for HashPrefix
impl UnwindSafe for HashPrefix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more