blob: 29cdf1a257c928ca9ed52c9cd6d580c814b6669b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use p256::ecdsa::VerifyingKey;
use crate::{app::App, test::fixtures};
pub async fn key<P>(app: &App<P>) -> VerifyingKey {
let boot = app.boot().snapshot().await.expect("boot always succeeds");
let changed = boot
.events
.into_iter()
.filter_map(fixtures::event::vapid)
.filter_map(fixtures::event::vapid::changed)
.next_back()
.expect("the application has a vapid key");
changed.key
}
|