Skip to content

Commit

Permalink
Replace PublicKey and Signature with plain Vec<u8>.
Browse files Browse the repository at this point in the history
  • Loading branch information
koxu1996 committed Mar 11, 2024
1 parent 2ef83df commit 9543d30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kairos-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use state::LockedBatchState;

pub use errors::AppErr;

type PublicKey = String;
type Signature = String;
type PublicKey = Vec<u8>;
type Signature = Vec<u8>;

pub fn app_router(state: LockedBatchState) -> Router {
Router::new()
Expand Down
2 changes: 1 addition & 1 deletion kairos-server/src/routes/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub async fn deposit_handler(
*balance = updated_balance;

tracing::info!(
"Updated account public_key={} balance={}",
"Updated account public_key={:?} balance={}",
public_key,
updated_balance
);
Expand Down
2 changes: 1 addition & 1 deletion kairos-server/src/routes/withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub async fn withdraw_handler(
}

tracing::info!(
"Updated account public_key={} balance={}",
"Updated account public_key={:?} balance={}",
withdrawal.public_key,
updated_balance
);
Expand Down

0 comments on commit 9543d30

Please sign in to comment.