Struct nucypher_core::NodeMetadataPayload
source · [−]pub struct NodeMetadataPayload {
pub staking_provider_address: Address,
pub domain: String,
pub timestamp_epoch: u32,
pub verifying_key: PublicKey,
pub encrypting_key: PublicKey,
pub certificate_der: Box<[u8]>,
pub host: String,
pub port: u16,
pub operator_signature: Option<Signature>,
}Expand description
Node metadata.
Fields
staking_provider_address: AddressThe staking provider’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_der: Box<[u8]>The node’s SSL certificate (serialized in DER format).
host: StringThe hostname of the node’s REST service.
port: u16The port of the node’s REST service.
operator_signature: Option<Signature>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 operator_signature.
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 moresourceimpl 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
sourceimpl Serialize for NodeMetadataPayload
impl Serialize for NodeMetadataPayload
impl Eq for NodeMetadataPayload
impl StructuralEq 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more