We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5f45b commit 0215fc5Copy full SHA for 0215fc5
src/encoder.rs
@@ -33,6 +33,7 @@ pub struct SdObjectEncoder<H: Hasher> {
33
/// Transforms a JSON object into an SD-JWT object by substituting selected values
34
/// with their corresponding disclosure digests.
35
#[cfg(feature = "sha")]
36
+#[derive(Debug, Clone)]
37
pub struct SdObjectEncoder<H: Hasher = Sha256Hasher> {
38
/// The object in JSON format.
39
object: Map<String, Value>,
src/hasher.rs
@@ -36,7 +36,7 @@ pub trait Hasher: Sync + Send {
}
/// An implementation of [`Hasher`] that uses the `sha-256` hash function.
-#[derive(Default)]
+#[derive(Default, Clone, Copy)]
40
41
pub struct Sha256Hasher;
42
0 commit comments