MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / row_for

Function row_for

atomic-cli/src/commands/memory/list.rs:450–456  ·  view source on GitHub ↗

Compute a row with an explicit verifier keypair (no global store).

(repo: &Repository, id: &str, kp: Option<&KeyPair>)

Source from the content-addressed store, hash-verified

448
449 /// Compute a row with an explicit verifier keypair (no global store).
450 fn row_for(repo: &Repository, id: &str, kp: Option<&KeyPair>) -> Row {
451 let verifier = kp.map(|kp| Verifier {
452 did: did_for_public_key(&kp.public),
453 public_key: kp.public.clone(),
454 });
455 compute_row(repo, id, verifier.as_ref())
456 }
457
458 #[test]
459 fn unattested_memory_lists_columns_from_lift() {

Calls 4

did_for_public_keyFunction · 0.85
as_refMethod · 0.80
compute_rowFunction · 0.70
cloneMethod · 0.45