Skip to content

Commit

Permalink
move transaction signing to signing state
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Aug 16, 2024
1 parent baeebcf commit cd47a1f
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 1,298 deletions.
1 change: 1 addition & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use core::fmt;
use serde::{Deserialize, Serialize};
use std::fmt::Debug;

#[derive(Serialize, Deserialize, PartialEq)]
pub struct ChainIndex {
pub height: u64,
pub id: [u8; 32],
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pub mod currency;
pub mod encoding;
pub mod seed;
pub mod signing;
pub mod spendpolicy;
pub mod transactions;
pub mod unlock_conditions;

Expand Down
2 changes: 1 addition & 1 deletion src/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ mod tests {
let seed = Seed::from_mnemonic(PHRASE).unwrap();
for (i, expected) in test_addresses {
let pk = seed.private_key(i).public_key();
assert_eq!(pk.as_ref(), expected[32..].as_ref(), "index {}", i);
assert_eq!(pk.to_string(), format!("ed25519:{}", hex::encode(expected[32..].as_ref())), "index {}", i);
}
}
}
Loading

0 comments on commit cd47a1f

Please sign in to comment.