v0.5.0-beta: merge-with-key import, prior_author provenance, beta versioning
Merge-with-key: decrypt exported posts using original identity seed, re-create under current identity with prior_author in BlobHeader for provenance tracking. Download page restructured with stable (v0.4.4) + beta (v0.5.0-beta) sections. Version bumped across all crates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8ef32e6df6
commit
97dc83f9f1
13 changed files with 311 additions and 10 deletions
|
|
@ -533,6 +533,10 @@ impl Node {
|
|||
|
||||
// ---- Identity export/import ----
|
||||
|
||||
pub fn secret_seed(&self) -> [u8; 32] {
|
||||
self.secret_seed
|
||||
}
|
||||
|
||||
pub fn export_identity_hex(&self) -> anyhow::Result<String> {
|
||||
let key_path = self.data_dir.join("identity.key");
|
||||
let key_bytes = std::fs::read(&key_path)?;
|
||||
|
|
@ -753,6 +757,7 @@ impl Node {
|
|||
thread_splits: vec![],
|
||||
receipt_slots,
|
||||
comment_slots,
|
||||
prior_author: None,
|
||||
};
|
||||
let header_json = serde_json::to_string(&blob_header)?;
|
||||
storage.store_blob_header(&post_id, &self.node_id, &header_json, now)?;
|
||||
|
|
@ -3912,6 +3917,7 @@ impl Node {
|
|||
thread_splits: vec![],
|
||||
receipt_slots: vec![],
|
||||
comment_slots: vec![],
|
||||
prior_author: None,
|
||||
})
|
||||
} else {
|
||||
crate::types::BlobHeader {
|
||||
|
|
@ -3924,6 +3930,7 @@ impl Node {
|
|||
thread_splits: vec![],
|
||||
receipt_slots: vec![],
|
||||
comment_slots: vec![],
|
||||
prior_author: None,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -4001,6 +4008,7 @@ impl Node {
|
|||
thread_splits: vec![],
|
||||
receipt_slots: vec![],
|
||||
comment_slots: vec![],
|
||||
prior_author: None,
|
||||
})
|
||||
} else {
|
||||
crate::types::BlobHeader {
|
||||
|
|
@ -4013,6 +4021,7 @@ impl Node {
|
|||
thread_splits: vec![],
|
||||
receipt_slots: vec![],
|
||||
comment_slots: vec![],
|
||||
prior_author: None,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue