pub struct NeoConstants {}
Implementations§
Source§impl NeoConstants
impl NeoConstants
pub const MAGIC_NUMBER_MAINNET: u32 = 860_833_102u32
pub const MAGIC_NUMBER_TESTNET: u32 = 894_710_606u32
pub const MAX_PUBLIC_KEYS_PER_MULTI_SIG: u32 = 1_024u32
pub const HASH160_SIZE: u32 = 20u32
pub const HASH256_SIZE: u32 = 32u32
pub const PRIVATE_KEY_SIZE: u32 = 32u32
pub const PUBLIC_KEY_SIZE_COMPRESSED: u32 = 33u32
pub const SIGNATURE_SIZE: u32 = 64u32
pub const VERIFICATION_SCRIPT_SIZE: u32 = 40u32
pub const MAX_ITERATOR_ITEMS_DEFAULT: u32 = 100u32
pub const MAX_SUBITEMS: u32 = 16u32
pub const MAX_NESTING_DEPTH: u8 = 2u8
pub const CURRENT_TX_VERSION: u8 = 0u8
pub const MAX_TRANSACTION_SIZE: u32 = 102_400u32
pub const MAX_TRANSACTION_ATTRIBUTES: u32 = 16u32
pub const MAX_SIGNER_SUBITEMS: u32 = 16u32
pub const MAX_MANIFEST_SIZE: u32 = 65_535u32
pub const SEED_1: &'static str = "http://seed1.neo.org:10332"
pub const SEED_2: &'static str = "http://seed2.neo.org:10332"
pub const SEED_3: &'static str = "http://seed3.neo.org:10332"
pub const SEED_4: &'static str = "http://seed4.neo.org:10332"
pub const SEED_5: &'static str = "http://seed5.neo.org:10332"
pub const SCRYPT_N: usize = 16_384usize
pub const SCRYPT_R: u32 = 8u32
pub const SCRYPT_P: u32 = 8u32
pub const SCRYPT_LOG_N: u8 = 14u8
pub const SCRYPT_DK_LEN: usize = 64usize
pub const NEP_HEADER_1: u8 = 1u8
pub const NEP_HEADER_2: u8 = 66u8
pub const NEP_FLAG: u8 = 224u8
pub fn new() -> Self
Auto Trait Implementations§
impl Freeze for NeoConstants
impl RefUnwindSafe for NeoConstants
impl Send for NeoConstants
impl Sync for NeoConstants
impl Unpin for NeoConstants
impl UnwindSafe for NeoConstants
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more