Skip to content

Commit

Permalink
Proper feature gating
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jun 24, 2024
1 parent 3e834f2 commit dc184ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/chia-bls/src/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ pub fn hash_to_g1_with_dst(msg: &[u8], dst: &[u8]) -> PublicKey {
PublicKey(p1)
}

#[cfg(feature = "py-bindings")]
#[pyo3::pymethods]
impl PublicKey {
#[classattr]
Expand Down
1 change: 1 addition & 0 deletions crates/chia-bls/src/secret_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ impl DerivableKey for SecretKey {
}
}

#[cfg(feature = "py-bindings")]
#[pyo3::pymethods]
impl SecretKey {
#[classattr]
Expand Down
1 change: 1 addition & 0 deletions crates/chia-bls/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ pub fn sign<Msg: AsRef<[u8]>>(sk: &SecretKey, msg: Msg) -> Signature {
sign_raw(sk, aug_msg)
}

#[cfg(feature = "py-bindings")]
#[pyo3::pymethods]
impl Signature {
#[classattr]
Expand Down

0 comments on commit dc184ce

Please sign in to comment.