Struct nucypher_core::NodeMetadataPayload
source · [−]pub struct NodeMetadataPayload {
pub staker_address: Address,
pub domain: String,
pub timestamp_epoch: u32,
pub verifying_key: PublicKey,
pub encrypting_key: PublicKey,
pub certificate_bytes: Box<[u8]>,
pub host: String,
pub port: u16,
pub decentralized_identity_evidence: Option<[u8; 65]>,
}Expand description
Node metadata.
Fields
staker_address: AddressThe staker’s Ethereum address.
domain: StringThe network identifier.
timestamp_epoch: u32The timestamp of the metadata creation.
verifying_key: PublicKeyThe node’s verifying key.
encrypting_key: PublicKeyThe node’s encrypting key.
certificate_bytes: Box<[u8]>The node’s SSL certificate (serialized in PEM format).
host: StringThe hostname of the node’s REST service.
port: u16The port of the node’s REST service.
decentralized_identity_evidence: Option<[u8; 65]>The node’s verifying key signed by the private key corresponding to the operator address.
Implementations
sourceimpl NodeMetadataPayload
impl NodeMetadataPayload
sourcepub fn derive_operator_address(&self) -> Result<Address, AddressDerivationError>
pub fn derive_operator_address(&self) -> Result<Address, AddressDerivationError>
Derives the address corresponding to the public key that was used
to create decentralized_identity_evidence.
Trait Implementations
sourceimpl Clone for NodeMetadataPayload
impl Clone for NodeMetadataPayload
sourcefn clone(&self) -> NodeMetadataPayload
fn clone(&self) -> NodeMetadataPayload
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NodeMetadataPayload
impl Debug for NodeMetadataPayload
sourceimpl<'de> Deserialize<'de> for NodeMetadataPayload
impl<'de> Deserialize<'de> for NodeMetadataPayload
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<NodeMetadataPayload> for NodeMetadataPayload
impl PartialEq<NodeMetadataPayload> for NodeMetadataPayload
sourcefn eq(&self, other: &NodeMetadataPayload) -> bool
fn eq(&self, other: &NodeMetadataPayload) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &NodeMetadataPayload) -> bool
fn ne(&self, other: &NodeMetadataPayload) -> bool
This method tests for !=.
sourceimpl Serialize for NodeMetadataPayload
impl Serialize for NodeMetadataPayload
impl StructuralPartialEq for NodeMetadataPayload
Auto Trait Implementations
impl RefUnwindSafe for NodeMetadataPayload
impl Send for NodeMetadataPayload
impl Sync for NodeMetadataPayload
impl Unpin for NodeMetadataPayload
impl UnwindSafe for NodeMetadataPayload
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more