rust-electrum-client icon indicating copy to clipboard operation
rust-electrum-client copied to clipboard

Consider using bitcoin::hash::Hash-based type for ScriptHash

Open dr-orlovsky opened this issue 4 years ago • 0 comments

Using hash_newtype! macro as done in rust-bitcoin for Txid and other hash-based types. This will allow having Display and other important implementations for free and will make type system safer (right now ScriptHash == ScriptStatus == Hex32Bytes by type)

dr-orlovsky avatar Jan 21 '21 00:01 dr-orlovsky