import React from 'react'; import { Grid, Text } from 'indigo-react'; import { useWallet } from 'store/wallet'; import { useLocalRouter } from 'lib/LocalRouter'; import ViewHeader from 'components/ViewHeader'; import View from 'components/View'; import WarningBox from 'components/WarningBox'; import CopiableAddressWrap from 'components/CopiableAddressWrap'; import Highlighted from 'components/Highlighted'; import * as need from 'lib/need'; export default function Xpub() { const { pop } = useLocalRouter(); const { urbitWallet } = useWallet(); const { xpub: zpub } = need.urbitWallet(urbitWallet).bitcoinMainnet.keys; const { xpub: vpub } = need.urbitWallet(urbitWallet).bitcoinTestnet.keys; // set to false for BTC testnet const isMainnet = true; return ( Bitcoin We do not recommend using this feature for significant amounts of money, since your private keys are exposed to the browser. The public key derived from your master ticket. Paste it into landscape while setting up your wallet. {isMainnet ? zpub : vpub} ); }