bitcoindevkit / bitcoindevkit/rust-electrum-client
Consider using bitcoin::hash::Hash-based type for ScriptHash
- Lingua principale
- Rust
- Stelle
- 89
- Fork
- 82
- Merge medio
- 2g 3h
- PR unite (30g)
- 1
Descrizione
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)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando le definizioni di ScriptHash, ScriptStatus e Hex32Bytes ed esaminando l'utilizzo di hash_newtype! in rust-bitcoin per Txid e i tipi correlati. Il lavoro è completato quando ScriptHash è un tipo distinto basato su hash con le implementazioni ereditate pertinenti, incluso Display, invece di condividere il tipo attuale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- blockchain
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100