pub struct HiveKeySetV1 {
pub schema: String,
pub keys: Vec<HiveKeyV1>,
pub signature: String,
}Expand description
GET /v1/keys. The signature covers the object without signature.
Engines keep the raw JSON (keys.json) and verify it with
HiveKeySetV1::signing_input_raw.
Fields§
§schema: String§keys: Vec<HiveKeyV1>§signature: StringEd25519 signature (base64) of the Hive root key.
Implementations§
Source§impl HiveKeySetV1
impl HiveKeySetV1
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn signing_input_raw(raw: &Value) -> Result<Vec<u8>, ValidationError>
pub fn signing_input_raw(raw: &Value) -> Result<Vec<u8>, ValidationError>
Signing input of a key set as received.
Sourcepub fn signing_input(&self) -> Result<Vec<u8>, ValidationError>
pub fn signing_input(&self) -> Result<Vec<u8>, ValidationError>
Signing input of a key set the service is about to sign (signature ignored).
Trait Implementations§
Source§impl Clone for HiveKeySetV1
impl Clone for HiveKeySetV1
Source§impl Debug for HiveKeySetV1
impl Debug for HiveKeySetV1
Source§impl<'de> Deserialize<'de> for HiveKeySetV1
impl<'de> Deserialize<'de> for HiveKeySetV1
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
impl Eq for HiveKeySetV1
Source§impl PartialEq for HiveKeySetV1
impl PartialEq for HiveKeySetV1
Source§impl Serialize for HiveKeySetV1
impl Serialize for HiveKeySetV1
impl StructuralPartialEq for HiveKeySetV1
Auto Trait Implementations§
impl Forget for HiveKeySetV1
impl Freeze for HiveKeySetV1
impl Move for HiveKeySetV1
impl RefUnwindSafe for HiveKeySetV1
impl Send for HiveKeySetV1
impl Sync for HiveKeySetV1
impl Unpin for HiveKeySetV1
impl UnsafeUnpin for HiveKeySetV1
impl UnwindSafe for HiveKeySetV1
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