xud
Version:
Exchange Union Daemon
12 lines (11 loc) • 462 B
TypeScript
/**
* Gets a two-word alias from a node pubkey. Throws an error if the pubkey is
* not a valid 66 character hex string.
* @param pubkey a public key in hex format to convert to an alias
*/
export declare const pubKeyToAlias: (pubkey: string) => string;
/**
* Returns true if a given node identifier could be a node pub key, namely
* if it is a hex string with the correct length.
*/
export declare const isNodePubKey: (nodeIdentifier: string) => boolean;