Skip to content

Commit

Permalink
change io cfg to be non-std rather than dkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jowparks committed Jul 24, 2024
1 parent 655c80c commit d7b083b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ hex-literal = "0.4.1"
rand = "0.8.5"

[features]
default = ["dkg"]
default = ["signing"]

std = []
signing = ["dep:blake3", "dep:rand_chacha", "std"]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod io {
#[cfg(not(feature = "std"))]
extern crate alloc;

#[cfg(feature = "dkg")]
#[cfg(not(feature = "std"))]
mod io {
use core::cmp;
use core::mem;
Expand Down
2 changes: 1 addition & 1 deletion src/signing_commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl SigningCommitment {

pub fn serialize(&self) -> [u8; SIGNING_COMMITMENT_LEN] {
let mut bytes = [0u8; SIGNING_COMMITMENT_LEN];
self.serialize_into(&mut bytes)
self.serialize_into(&mut bytes[..])
.expect("serialization failed");
bytes
}
Expand Down

0 comments on commit d7b083b

Please sign in to comment.