Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 3.0.11 /2025-06-26

## What's Changed
* update deps by @basfroman in https://github.com/opentensor/btwallet/pull/141
* Improvements on the top of https://github.com/opentensor/btwallet/pull/140 by @basfroman in https://github.com/opentensor/btwallet/pull/145
* chore(pyo3): use CARGO_PKG_VERSION to auto-sync Python binding version with crate by @LVivona in https://github.com/opentensor/btwallet/pull/140
* Add `arm64` wheels by @basfroman in https://github.com/opentensor/btwallet/pull/147
* Replace py-bip39-bindings deps with stored list of words by @basfroman in https://github.com/opentensor/btwallet/pull/151

## New Contributors
* @LVivona made their first contribution in https://github.com/opentensor/btwallet/pull/140

**Full Changelog**: https://github.com/opentensor/btwallet/compare/v3.0.10...v3.0.11

## 3.0.11-rc.1 /2025-06-11

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bittensor_wallet"
version = "3.0.11-rc.1"
version = "3.0.11"
edition = "2021"

[lib]
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ dev = [
"aioresponses==0.7.6",
"factory-boy==3.3.0",
"maturin==1.8.3",
"py-bip39-bindings==0.1.11",
"ansible_vault~=2.1",
"substrate-interface==1.7.11",
"scalecodec~=1.2.11",
"bittensor>=9.6.0",
"py-bip39-bindings==0.1.11"
"bittensor>=9.7.0",
]
4 changes: 2 additions & 2 deletions tests/test_keyfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from unittest import mock

import pytest
from bip39 import bip39_validate

from bittensor_wallet import Wallet
from bittensor_wallet.errors import ConfigurationError, KeyFileError
from bittensor_wallet.keyfile import Keyfile
from bittensor_wallet.keyfile import get_coldkey_password_from_environment
from bittensor_wallet.keypair import Keypair
from bittensor_wallet import Wallet
from utils.bip39 import bip39_validate


def test_generate_mnemonic():
Expand Down
1 change: 1 addition & 0 deletions tests/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

20 changes: 20 additions & 0 deletions tests/utils/bip39.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import urllib.request
from .words import english


def _get_bip39_words_list():
"""Trys to get an actual list of words or uses saved one."""
try:
url = (
"https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/english.txt"
)
words = urllib.request.urlopen(url).read().decode().splitlines()
assert len(words) == 2048
return words
except Exception:
return english


def bip39_validate(words: str) -> bool:
bip39_words_list = _get_bip39_words_list()
return all([m in bip39_words_list for m in words.split(" ")])
Loading
Loading