Skip to main content

ServiceTypeId

Type Alias ServiceTypeId 

Source
pub type ServiceTypeId = [u8; 32];
Expand description

Service type identifier used by the on-chain service registry.

The registry stores the identifier as a raw bytes32. By convention it holds right-padded printable ASCII, so gvpn:exit is 0x6776706e3a657869740000000000000000000000000000000000000000000000, but the contract does not enforce that, and any non-zero 32-byte value can appear on chain. Blokli renders the identifier as its ASCII name when it follows the convention and as 0x-prefixed hex otherwise, so the string fields of ServiceEntry and ServiceTypeInfo may hold either form.