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.
1 parent c5564e7 commit 28a3b5dCopy full SHA for 28a3b5d
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