Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use iter instead of accessing content field
We would like to move the `Witness` to `primitives` however in the `Encodable` implementation we are currently accessing the private `content` field. Instead of accessing `content` we can iterate over the witness elements and write each individually, this has the same result but does a bunch of additional calls to `Write::write_all` (via `emit_slice`). This patch effects performance negatively but makes no changes to the encoding.
- Loading branch information