Struct zerotier_api::Address
source · [−]pub struct Address(_);Expand description
40-bit node ID derived from PublicKey.
Address is derived by taking last five bytes of memory-hard hash. Address is valid unless:
- first byte of memory-hard hash is greater than
0x10 - first byte of address is
0xFF - every byte of address is
0x00
Trait Implementations
Tries to construct an address from a slice of bytes. Fails if len(bytes) != 5.
Tries to derive address from PublicKey. Throws
InternalError for invalid addresses.
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more