import { PubKey } from '../types'; import { fromHexToArray } from './String'; export function encodeGroupPubKeyFromHex(hexGroupPublicKey: string | PubKey) { const pubkey = PubKey.cast(hexGroupPublicKey); return fromHexToArray(pubkey.key); }