Compute a row with an explicit verifier keypair (no global store).
(repo: &Repository, id: &str, kp: Option<&KeyPair>)
| 617 | |
| 618 | /// Compute a row with an explicit verifier keypair (no global store). |
| 619 | fn row_for(repo: &Repository, id: &str, kp: Option<&KeyPair>) -> Row { |
| 620 | let verifier = kp.map(|kp| Verifier { |
| 621 | did: did_for_public_key(&kp.public), |
| 622 | public_key: kp.public.clone(), |
| 623 | }); |
| 624 | compute_row(repo, id, verifier.as_ref()) |
| 625 | } |
| 626 | |
| 627 | fn sort_row(id: &str, updated: &str, about: usize) -> Row { |
| 628 | Row { |