@xmr-core/xmr-mymonero-libs
Version:
A collection of utilities for building ontop of a MyMonero compatible API
16 lines (13 loc) • 346 B
text/typescript
import { Log } from "./logger";
import { decode_address, NetType } from "@xmr-core/xmr-crypto-utils";
export function getTargetPubViewKey(
encPid: boolean,
targetAddress: string,
nettype: NetType,
): string | undefined {
if (encPid) {
const key = decode_address(targetAddress, nettype).view;
Log.Target.viewKey(key);
return key;
}
}