ElementsProject / rust-elements

Rust support for Elements transaction/block deserialization
Creative Commons Zero v1.0 Universal
51 stars 32 forks source link

Create explicit empty and null values for some types #171

Closed stevenroose closed 1 year ago

stevenroose commented 1 year ago

IMO these are different than f.e. the Default impls on TxOut etc, because these types actually in many actual production cases want to be set to the empty or none value. As opposed to Default on other types that only exist to aid in test scenarios or so to avoid having to set the fields.