Skip to content

Commit

Permalink
feat: mnemonic & hotkey pair
Browse files Browse the repository at this point in the history
  • Loading branch information
gus-opentensor committed Aug 23, 2024
1 parent e8a2ac6 commit 43a4704
Show file tree
Hide file tree
Showing 8 changed files with 2,740 additions and 1,282 deletions.
2,790 changes: 2,486 additions & 304 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,24 @@ name = "btwallet"
crate-type = ["cdylib"]

[dependencies]
aes-gcm = "0.10.3"
argon2 = "0.5.3"
base58 = "0.2.0"
bip39 = "2.0.0"
blake2 = "0.10.6"
generic-array = "1.1.0"
hex = "0.4.3"
hmac = "0.12.1"
pbkdf2 = "0.12.2"
primitive-types = "0.12.2"
pyo3 = "0.22.0"
pyo3 = { version = "0.22.0", features = ["extension-module"] }

rand = "0.8.5"
regex = "1.10.6"
schnorrkel = "0.11.4"
secp256k1 = "0.29.0"
serde = "1.0.208"
sha2 = "0.10.8"
tiny-bip39 = "1.0.0"
sp-core = "34.0.0"
sp-runtime = "39.0.0"
uint = "0.9.5"
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ To use your own config, you can do it like this:
from bittensor_wallet.config import Config
config = Config()
```


## Rust
# Rust Development

To build and test the Rust components of the project, you can use the following commands:
* `maturin develop` - Builds the project.
* `cargo test` - Runs the tests.
* `cargo run` - Runs the project.
* `cargo doc --open` - Generates the documentation and opens it in the browser.
* `cargo fmt` - Formats the code.
* `cargo clippy` - Runs the linter.
* `cargo clippy --fix` - Fixes the code.

## Using the Rust components in Python
* `import btwallet`




77 changes: 0 additions & 77 deletions src/key.rs

This file was deleted.

Loading

0 comments on commit 43a4704

Please sign in to comment.