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: RecoverableSignature,
}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: RecoverableSignatureThe node’s verifying key signed by the private key corresponding to the operator address.
Implementations§
source§impl 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§
source§impl Clone for NodeMetadataPayload
impl Clone for NodeMetadataPayload
source§fn clone(&self) -> NodeMetadataPayload
fn clone(&self) -> NodeMetadataPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NodeMetadataPayload
impl Debug for NodeMetadataPayload
source§impl<'de> Deserialize<'de> for NodeMetadataPayload
impl<'de> Deserialize<'de> for NodeMetadataPayload
source§fn 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
source§impl PartialEq<NodeMetadataPayload> for NodeMetadataPayload
impl PartialEq<NodeMetadataPayload> for NodeMetadataPayload
source§fn 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 ==.