Skip to content

Commit

Permalink
test privkeygen
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Jun 18, 2024
1 parent d52fc8b commit 206a007
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cfg_if::cfg_if! {
#[pymodule]
fn kaspapy(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<kaspa_wallet_keys::privkeygen::PrivateKeyGenerator>()?;
m.add_class::<kaspa_wallet_keys::privatekey::PrivateKey>()?;
// m.add_class::<kaspa_wallet_keys::privatekey::PrivateKey>()?;

Ok(())
}
Expand Down
5 changes: 3 additions & 2 deletions x-python/tests/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from kaspapy import PrivateKeyGenerator

if __name__ == "__main__":
x = PrivateKeyGenerator('6f7c5ab0bd08856d5f5465f37ab9e200e40a190c1c73ddf03b637f1531cd1c159aa8b99c3246c1e1f9351d1037bcaa72b4edc5489351d18537d5b48f9e322473', False, 1)
print('hi')
x = PrivateKeyGenerator('xprv9s21ZrQH143K2hP7m1bU4ZT6tWgX1Qn2cWvtLVDX6sTJVyg3XBa4p1So4s7uEvVFGyBhQWWRe8JeLPeDZ462LggxkkJpZ9z1YMzmPahnaZA', False, 1)
print(x.receive_key(2))
print(x.change_key(2))

0 comments on commit 206a007

Please sign in to comment.