We have many calls to consensus_encode that are followed by unwrap. IIUC consensus_encode can error if the writer errors. Shouldn't we be bubbling theses errors up to users?
Draft PR showing one method of removing unwrap from calls to consensus_encode for WitnessCommitment: #713