consistent typing and naming.
Before the typescript conversion, we had some variables that was buffers and some that was hex-encoded strings.
We still need to have hex-encoded strings when we interface with outside users (like in our API and in the library for external functions), but now that the language construct itself contains information about typing we should clarify and make the naming more consistent.
I don't have any clear "do this" here, but will make this issue so we look into this later on.