We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5564e7 + ebbfc3c commit 895c94fCopy full SHA for 895c94f
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "vss-client"
3
-version = "0.1.2"
+version = "0.1.3"
4
license = "MIT OR Apache-2.0"
5
edition = "2021"
6
homepage = "https://lightningdevkit.org/"
src/util/storable_builder.rs
@@ -12,6 +12,13 @@ pub struct StorableBuilder<T: EntropySource> {
12
entropy_source: T,
13
}
14
15
+impl<T: EntropySource> StorableBuilder<T> {
16
+ /// Constructs a new instance.
17
+ pub fn new(data_encryption_key: [u8; 32], entropy_source: T) -> StorableBuilder<T> {
18
+ Self { data_encryption_key, entropy_source }
19
+ }
20
+}
21
+
22
/// A trait representing a source for generating entropy/randomness.
23
pub trait EntropySource {
24
/// Fills a buffer with random bytes.
0 commit comments