mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
8 lines
246 B
TypeScript
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);
|
|
}
|