Module common_primitives::utils
source · Expand description
Structs and traits for the utility package.
Modules
- Handle serializing and deserializing from
Vec<u8>
to hexadecimal - Handle serializing and deserializing from
Option<Vec<u8>>
to hexadecimal - Handle serializing and deserializing from
Vec<u8>
to a UTF-8 string - Handle serializing and deserializing from
Option<Vec<u8>>
to a UTF-8 string
Enums
- An enum that shows the detected chain type
Constants
- Mainnet Genesis Hash 0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1
- Frequency Testnet on Paseo Genesis Hash 0x203c6838fc78ea3660a2f298a58d859519c72a5efdc0f194abd6f0d5ce1838e0
Functions
- Finds the chain type by genesis hash
- Wraps
PREFIX
andPOSTFIX
around aVec<u8>
ReturnsPREFIX
++data
++POSTFIX