pub struct Dsk(pub [u8; 16]);Expand description
A 16-byte Device Specific Key.
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl Dsk
impl Dsk
Sourcepub fn from_public_key(key: &[u8; 32]) -> Self
pub fn from_public_key(key: &[u8; 32]) -> Self
The DSK of a public key.
Sourcepub fn without_pin(&self) -> Self
pub fn without_pin(&self) -> Self
The DSK with its PIN bytes zeroed, as a node reports it before the PIN is entered.
Sourcepub fn nwi_home_id(&self) -> [u8; 4]
pub fn nwi_home_id(&self) -> [u8; 4]
The SmartStart NWI home id a node with this DSK uses while it asks for inclusion.
Sourcepub fn auth_home_id(&self) -> [u8; 4]
pub fn auth_home_id(&self) -> [u8; 4]
The SmartStart authentication home id the controller sends to include it.
Trait Implementations§
impl Copy for Dsk
Source§impl<'de> Deserialize<'de> for Dsk
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Dsk
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Dsk
impl StructuralPartialEq for Dsk
Auto Trait Implementations§
impl Freeze for Dsk
impl RefUnwindSafe for Dsk
impl Send for Dsk
impl Sync for Dsk
impl Unpin for Dsk
impl UnsafeUnpin for Dsk
impl UnwindSafe for Dsk
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