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: ValidatorPublicKey,
pub certificate_der: Box<[u8]>,
pub host: String,
pub port: u16,
pub operator_signature: RecoverableSignature,
}
Expand description
Node metadata.
Fields§
§staking_provider_address: Address
The staking provider’s Ethereum address.
domain: String
The network identifier.
timestamp_epoch: u32
The timestamp of the metadata creation.
verifying_key: PublicKey
The node’s verifying key.
encrypting_key: PublicKey
The node’s encrypting key.
ferveo_public_key: ValidatorPublicKey
Ferveo public key to use for DKG participation.
certificate_der: Box<[u8]>
The node’s SSL certificate (serialized in DER format).
host: String
The hostname of the node’s REST service.
port: u16
The port of the node’s REST service.
operator_signature: RecoverableSignature
The 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 duplicate 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 for NodeMetadataPayload
impl PartialEq for NodeMetadataPayload
Source§impl Serialize for NodeMetadataPayload
impl Serialize for NodeMetadataPayload
impl Eq for NodeMetadataPayload
impl StructuralPartialEq for NodeMetadataPayload
Auto Trait Implementations§
impl Freeze for NodeMetadataPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more