Skip to content

Commit 01b5cb1

Browse files
authored
Merge pull request #55 from opentensor/release/1.0.1
Release/1.0.1
2 parents 511958e + b7492db commit 01b5cb1

File tree

5 files changed

+41
-24
lines changed

5 files changed

+41
-24
lines changed

CHANGELOG.MD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## v1.0.1 /2025-10-29
4+
* Updates PyO3 to handle py3.14 by @thewhaleking in https://github.com/opentensor/bittensor-drand/pull/52
5+
* Updates workflow to be able to use forks as well by @thewhaleking in https://github.com/opentensor/bittensor-drand/pull/51
6+
7+
## New Contributors
8+
* @thewhaleking made their first contribution in https://github.com/opentensor/bittensor-drand/pull/52
9+
10+
**Full Changelog**: https://github.com/opentensor/bittensor-drand/compare/v1.0.0...v1.0.1
11+
312
## v1.0.0 /2025-08-07
413

514
## What's Changed

Cargo.lock

Lines changed: 25 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bittensor-drand"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
edition = "2021"
55

66
[lib]
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
ark-serialize = { version = "0.4.0", features = [ "derive" ], default-features = false }
1212
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
1313
hex = { version = "0.4", default-features = false, features = ["alloc"] }
14-
pyo3 = { version = "0.22.4", features = ["gil-refs"] }
14+
pyo3 = { version = "0.26.0", features = ["generate-import-lib"] }
1515
rand_core = "0.6.4"
1616
tokio = { version = "1", features = ["full"] }
1717
tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468" }

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bittensor-drand"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = ""
55
readme = "README.md"
66
license = {file = "LICENSE"}

src/python_bindings.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn get_encrypted_commit(
5555
// matching the result
5656
match result {
5757
Ok((ciphertext, target_round)) => {
58-
let py_bytes = PyBytes::new_bound(py, &ciphertext).into();
58+
let py_bytes = PyBytes::new(py, &ciphertext).into();
5959
Ok((py_bytes, target_round))
6060
}
6161
Err(e) => Err(PyValueError::new_err(format!("{:?}", e))),
@@ -88,7 +88,7 @@ fn get_encrypted_commitment(
8888
// matching the result
8989
match result {
9090
Ok((ciphertext, target_round)) => {
91-
let py_bytes = PyBytes::new_bound(py, &ciphertext).into();
91+
let py_bytes = PyBytes::new(py, &ciphertext).into();
9292
Ok((py_bytes, target_round))
9393
}
9494
Err(e) => Err(PyValueError::new_err(format!("{:?}", e))),
@@ -144,7 +144,7 @@ fn encrypt(
144144
.encode();
145145

146146
Ok((
147-
PyBytes::new_bound(py, &encrypted_with_reveal_round).into(),
147+
PyBytes::new(py, &encrypted_with_reveal_round).into(),
148148
reveal_round,
149149
))
150150
}
@@ -197,7 +197,7 @@ fn decrypt(py: Python, encrypted_data: &[u8], no_errors: bool) -> PyResult<Optio
197197
let decoded_data = drand::decrypt_and_decompress(&user_data.encrypted_data, &signature_bytes)
198198
.map_err(|e| PyValueError::new_err(e))?;
199199

200-
Ok(Some(PyBytes::new_bound(py, &decoded_data).into()))
200+
Ok(Some(PyBytes::new(py, &decoded_data).into()))
201201
}
202202

203203
#[pymodule]

0 commit comments

Comments
 (0)