import { TempleMessageType } from '../../types';
import { withUnlocked } from '../store';
import { getDApp, getNetworkRPC } from './dapp';
import { requestConfirm } from './requestConfirm';
import { ExtensionMessageType, ExtensionSignRequest, ExtensionSignResponse } from './typings';

const HEX_PATTERN = /^[0-9a-fA-F]+$/;