12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
import { bytesToHex, hexToBytes } from "@lumeweb/libweb";
|
|
import {
|
|
getCommunicationPubKey,
|
|
setFrontendCommunicationPubkey,
|
|
} from "../vars.js";
|
|
|
|
export default function (data: any) {
|
|
setFrontendCommunicationPubkey(hexToBytes(data));
|
|
|
|
return bytesToHex(getCommunicationPubKey());
|
|
}
|