UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

16 lines (15 loc) 465 B
import { useBitcoinAuth } from "../../../hooks/useBitcoinAuth.js"; export function useMasterKeyUtils() { const { user } = useBitcoinAuth(); const bapUser = user; const hasMasterKey = !!bapUser?.masterKey || !!bapUser?.xprv; const isType42 = !!bapUser?.masterKey; const isLegacy = !!bapUser?.xprv; return { hasMasterKey, isType42, isLegacy, masterKey: bapUser?.masterKey, xprv: bapUser?.xprv, }; }