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 ferveo_public_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.
ferveo_public_key: PublicKeyFerveo public key to use for DKG participation.
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 ==.source§impl 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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more