diff --git a/src/blockdata/witness.rs b/src/blockdata/witness.rs index 75a21c2c..e31a7908 100644 --- a/src/blockdata/witness.rs +++ b/src/blockdata/witness.rs @@ -120,6 +120,12 @@ impl Encodable for Witness { } impl Witness { + + /// Create a new empty [`Witness`] + pub fn new() -> Self { + Witness::default() + } + /// Creates [`Witness`] object from an array of byte-arrays pub fn from_vec(vec: Vec>) -> Self { let witness_elements = vec.len();