UNPKG

@xuxinlai2002/pns-js

Version:

A NPM package in Typescript for .Play Name Service

9 lines (6 loc) 245 B
import type { ErrorType } from '../../errors/utils.js' import type { Hex } from '../../types/misc.js' export type EncodeLabelhashErrorType = ErrorType export function encodeLabelhash(hash: Hex): `[${string}]` { return `[${hash.slice(2)}]` }