Skip to content

Commit

Permalink
Merge pull request #32 from cspr-rad/feature/use-bytes-for-public-key…
Browse files Browse the repository at this point in the history
…-and-signature

Replace `PublicKey` and `Signature` with plain `Vec<u8>`
  • Loading branch information
koxu1996 authored Mar 17, 2024
2 parents 948f15a + a687f82 commit 4309cd1
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 4309cd1

Please sign in to comment.