pub struct GoAhead {
pub v: u32,
pub signer: String,
pub target_sectors: u64,
pub nonce: String,
pub issued_unix_ms: i64,
pub signature: String,
}Expand description
The go-ahead a data-set growth is started on, as gunnar’s
gunnar_server::grow::go_ahead::GoAhead parses it:
{"v":1,"signer":"monetize","target_sectors":<u64>,"nonce":"<one line ≤256 B>",
"issued_unix_ms":<i64>,"signature":"<base64, standard alphabet, padded>"}The signature is Ed25519 by monetize’s signing key over
go_ahead_message: the canonical JSON (keys sorted bytewise, no
whitespace) of the object MINUS signature — the same form and the same
key an EntitlementFact is signed with, so a metered gunnar verifies it
with the --monetize-pubkey it already holds. gunnar checks the structure
(v, a known signer, a non-empty nonce, target_sectors equal to the
request’s, the nonce unspent on that box); a monetize policy plugged into
its GoAheadPolicy calls verify_go_ahead.
Fields§
§v: u32§signer: String§target_sectors: u64§nonce: String§issued_unix_ms: i64§signature: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for GoAhead
impl<'de> Deserialize<'de> for GoAhead
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 GoAhead
impl StructuralPartialEq for GoAhead
Auto Trait Implementations§
impl Freeze for GoAhead
impl RefUnwindSafe for GoAhead
impl Send for GoAhead
impl Sync for GoAhead
impl Unpin for GoAhead
impl UnsafeUnpin for GoAhead
impl UnwindSafe for GoAhead
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