Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

feat: validate link record before adoption. Fixes #257 #417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/noosphere-sphere/src/petname/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ where
.await?;

// TODO: Verify that a record for an existing address is actually newer than the old one
// TODO: Validate the record as a UCAN

record.validate(self.sphere_context().await?.db()).await?;

debug!(
"Adopting '{}' ({}), resolving to {}...",
Expand Down