You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/session/utils/Groups.ts

8 lines
246 B
TypeScript

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