mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
14 lines
284 B
TypeScript
14 lines
284 B
TypeScript
import BIP47Factory from '@spsina/bip47';
|
|
|
|
import ecc from '../blue_modules/noble_ecc';
|
|
|
|
export class ContactList {
|
|
isPaymentCodeValid(pc: string): boolean {
|
|
try {
|
|
BIP47Factory(ecc).fromPaymentCode(pc);
|
|
return true;
|
|
} catch (_) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|