Skip to content

Commit

Permalink
chore: rename package controller to keri-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
edytapawlak committed Jan 24, 2024
1 parent 44b7156 commit b7d9b0b
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion components/controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "controller"
name = "keri-controller"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion components/controller/tests/test_delegated_incept.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{collections::HashMap, sync::Arc};

use controller::{
use keri_controller::{
config::ControllerConfig, error::ControllerError, identifier_controller::IdentifierController,
mailbox_updating::ActionRequired, BasicPrefix, Controller, CryptoBox, IdentifierPrefix,
KeyManager, LocationScheme, SelfSigningPrefix,
Expand Down
2 changes: 1 addition & 1 deletion components/controller/tests/test_group_incept.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use controller::{
use keri_controller::{
config::ControllerConfig, error::ControllerError, identifier_controller::IdentifierController,
BasicPrefix, Controller, CryptoBox, KeyManager, SelfSigningPrefix,
};
Expand Down
2 changes: 1 addition & 1 deletion components/controller/tests/test_kel_managing.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use controller::{
use keri_controller::{
config::ControllerConfig, error::ControllerError, identifier_controller::IdentifierController,
BasicPrefix, Controller, CryptoBox, KeyManager, SelfSigningPrefix,
};
Expand Down
4 changes: 2 additions & 2 deletions components/controller/tests/test_tel_managing.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use controller::{
use keri_controller::{
config::ControllerConfig, error::ControllerError, identifier_controller::IdentifierController,
BasicPrefix, Controller, CryptoBox, KeyManager, SelfSigningPrefix,
};
Expand Down Expand Up @@ -62,7 +62,7 @@ async fn test_tel() -> Result<(), ControllerError> {

let (vc_id, issuance_ixn) = identifier1.issue(credential_said).unwrap();
let vc_hash = match vc_id {
controller::IdentifierPrefix::SelfAddressing(sai) => sai.clone(),
keri_controller::IdentifierPrefix::SelfAddressing(sai) => sai.clone(),
_ => unreachable!(),
};
let signature = SelfSigningPrefix::Ed25519Sha512(km1.sign(&issuance_ixn).unwrap());
Expand Down
2 changes: 1 addition & 1 deletion components/watcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-feature
serde_json = "1.0"

[dev-dependencies]
controller = { path = "../controller" }
keri-controller = { path = "../controller" }
futures = { version = "0.3.13" }
tempfile = { version = "3.1" }
async-std = { version = "1.12.0", features = ["attributes"] }
1 change: 0 additions & 1 deletion keriox_core/src/keys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ impl PublicKey {
match VerifyingKey::from_sec1_bytes(&self.key()) {
Ok(k) => {
use k256::ecdsa::Signature;
use std::convert::TryFrom;
if let Ok(sig) = Signature::try_from(sig) {
match k.verify(msg, &sig) {
Ok(()) => true,
Expand Down
2 changes: 1 addition & 1 deletion keriox_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ said = { version = "0.4.0" }
teliox = {path = "../support/teliox"}
watcher = { path = "../components/watcher" }
witness = { path = "../components/witness" }
controller = { path = "../components/controller"}
keri-controller = { path = "../components/controller"}
async-std = { version = "1.12.0", features = ["attributes"] }
anyhow = "1"
serde_json = "1.0"
2 changes: 1 addition & 1 deletion keriox_tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{path::Path, sync::Arc};

use controller::{
use keri_controller::{
config::ControllerConfig, identifier_controller::IdentifierController, BasicPrefix, Controller,
CryptoBox, IdentifierPrefix, KeyManager, LocationScheme, SelfSigningPrefix,
};
Expand Down
2 changes: 1 addition & 1 deletion keriox_tests/src/transport.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{collections::HashMap, sync::Arc};

use async_std::sync::Mutex;
use controller::LocationScheme;
use keri_controller::LocationScheme;
use teliox::{
event::verifiable_event::VerifiableEvent,
query::SignedTelQuery,
Expand Down
2 changes: 1 addition & 1 deletion keriox_tests/tests/multisig.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{collections::HashMap, net::Ipv4Addr, sync::Arc};

use anyhow::Result;
use controller::{
use keri_controller::{
config::ControllerConfig, identifier_controller::IdentifierController,
mailbox_updating::ActionRequired, Controller, Oobi,
};
Expand Down
2 changes: 1 addition & 1 deletion keriox_tests/tests/tel_from_witness.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{collections::HashMap, sync::Arc};

use controller::{
use keri_controller::{
error::ControllerError, IdentifierPrefix, KeyManager, LocationScheme, SelfSigningPrefix,
};
use keri_core::actor::prelude::{HashFunction, HashFunctionCode};
Expand Down

0 comments on commit b7d9b0b

Please sign in to comment.