Skip to content

Commit d7b083b

Browse files
committed
change io cfg to be non-std rather than dkg
1 parent 655c80c commit d7b083b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hex-literal = "0.4.1"
2424
rand = "0.8.5"
2525

2626
[features]
27-
default = ["dkg"]
27+
default = ["signing"]
2828

2929
std = []
3030
signing = ["dep:blake3", "dep:rand_chacha", "std"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mod io {
4242
#[cfg(not(feature = "std"))]
4343
extern crate alloc;
4444

45-
#[cfg(feature = "dkg")]
45+
#[cfg(not(feature = "std"))]
4646
mod io {
4747
use core::cmp;
4848
use core::mem;

src/signing_commitment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl SigningCommitment {
167167

168168
pub fn serialize(&self) -> [u8; SIGNING_COMMITMENT_LEN] {
169169
let mut bytes = [0u8; SIGNING_COMMITMENT_LEN];
170-
self.serialize_into(&mut bytes)
170+
self.serialize_into(&mut bytes[..])
171171
.expect("serialization failed");
172172
bytes
173173
}

0 commit comments

Comments
 (0)