pub struct NewsroomSetupRequest {
pub newsroom_verifying_key: VerifyingKey,
}Expand description
Request from the newsroom to FPF for verification.
Step 2 in the spec.
Fields§
§newsroom_verifying_key: VerifyingKeyImplementations§
Source§impl NewsroomSetupRequest
impl NewsroomSetupRequest
Sourcepub fn sign(self, fpf_keys: &FPFKeyPair) -> Result<NewsroomSetupResponse, Error>
pub fn sign(self, fpf_keys: &FPFKeyPair) -> Result<NewsroomSetupResponse, Error>
Setup a newsroom. This corresponds to step 2 in the spec.
This runs on FPF hardware.
The generated newsroom verifying key is sent to FPF, which produces a signature over the newsroom verifying key using the FPF signing key.
§Security
There is a manual verification step here: the caller should instruct the user to stop, verify the fingerprint out of band, and then proceed. The caller should also persist the fingerprint and signature in its local data store.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewsroomSetupRequest
impl RefUnwindSafe for NewsroomSetupRequest
impl Send for NewsroomSetupRequest
impl Sync for NewsroomSetupRequest
impl Unpin for NewsroomSetupRequest
impl UnsafeUnpin for NewsroomSetupRequest
impl UnwindSafe for NewsroomSetupRequest
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