Skip to content

Commit

Permalink
Update RRR
Browse files Browse the repository at this point in the history
  • Loading branch information
Limeth committed Jul 14, 2024
1 parent 5223f84 commit 43a1fc8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ color-eyre = "0.6.3"
ed25519-dalek = { version = "2.1.1", features = ["rand_core", "pem"] }
futures = "0.3.30"
include_dir = { version = "0.7.4", features = ["nightly"] }
rrr = { git = "https://github.com/recursive-record-registry/rrr.git", rev = "53f926f711f88337f161123681ec8773aeaa9a4e" }
rrr = { git = "https://github.com/recursive-record-registry/rrr.git", rev = "5f11db585aabb6a6feaeb9fcd8ec79b93b9854f9" }
serde = { version = "1.0.203", features = ["derive"] }
serde_bytes = "0.11.14"
serde_with = "3.8.1"
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use record::OwnedRecord;
use registry::OwnedRegistry;
use rrr::{
crypto::encryption::EncryptionAlgorithm,
record::{Record, RecordKey, RecordMetadata, SuccessionNonce},
record::{Record, RecordKey, RecordMetadata, RecordName, SuccessionNonce},
registry::{Registry, WriteLock},
serde_utils::BytesOrAscii,
utils::serde::BytesOrAscii,
};
use tokio::io::AsyncReadExt;

Expand Down Expand Up @@ -51,7 +51,7 @@ pub fn make_recursive<'a>(
data: BytesOrAscii(data),
};
let key = RecordKey {
record_name: input_record.config.name.to_vec(),
record_name: RecordName::from(input_record.config.name.to_vec()),
predecessor_nonce: predecessor_nonce.clone(),
};
let hashed_key = key.hash(&input_registry.hash).await?;
Expand All @@ -61,7 +61,7 @@ pub fn make_recursive<'a>(
&input_registry.signing_keys,
&hashed_key,
&output_record,
0, // TODO
0.into(), // TODO
0, // TODO
&[], // TODO
Some(&EncryptionAlgorithm::A256GCM), // TODO
Expand Down
4 changes: 2 additions & 2 deletions src/owned/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use rrr::registry::{
ConfigParam, OutputLengthInBytes, RegistryConfig, RegistryConfigHash, RegistryConfigKdf,
SuccessionNonceLengthInBytes,
};
use rrr::serde_utils::Secret;
use rrr::utils::serde::Secret;
use rrr::{crypto::encryption::EncryptionAlgorithm, record::RecordKey};
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
Expand Down Expand Up @@ -44,7 +44,7 @@ pub struct OwnedRegistryConfig {
impl OwnedRegistryConfig {
pub fn get_root_record_key(&self) -> RecordKey {
RecordKey {
record_name: Vec::new(),
record_name: Default::default(),
predecessor_nonce: self.kdf.get_root_record_predecessor_nonce(),
}
}
Expand Down

0 comments on commit 43a1fc8

Please sign in to comment.