Skip to content

Create newtype for transaction hash #1353

@Fraser999

Description

@Fraser999

We should create a newtype wrapper struct TransactionHash([u8; 32]).

This will improve type safety and will allow for implementing Display and Debug in terms of base64-encoding the bytes, which in turn will reduce some boilerplate elsewhere and ensure consistency in how the hash is displayed.

┆Issue Number: ENG-698

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions