UNPKG

1.67 kBPlain TextView Raw
1
2import { protocolEchoReplyDetection } from './auth/protocolEchoDetection'
3
4try {
5 /**
6 * Located here so it executes ASAP. The protocol handler detection is designed to work
7 * as a drop-in-replacement (non-breaking upgrade) for apps using blockstack.js. That
8 * requires doing this global and immediate detection.
9 * This function is also called in `isSignInPending` so that web app bundling the
10 * blockstack.js lib in a more modular way will still perform the protocol detection
11 * handling without any changes if this index file is not bundled in.
12 */
13 protocolEchoReplyDetection()
14} catch (error) {
15 console.error(`Error performing global protocol echo reply detection: ${error}`)
16}
17
18export * from './auth'
19export * from './profiles'
20export * from './storage'
21
22export {
23 makeDIDFromAddress, makeDIDFromPublicKey, getDIDType, getAddressFromDID
24} from './dids'
25
26export {
27 getEntropy, makeECPrivateKey, publicKeyToAddress, getPublicKeyFromPrivate
28} from './keys'
29
30export {
31 nextYear, nextMonth, nextHour, makeUUID4, updateQueryStringParameter,
32 isLaterVersion, isSameOriginAbsoluteUrl, hexStringToECPair, ecPairToHexString,
33 ecPairToAddress
34} from './utils'
35
36export {
37 transactions, safety, TransactionSigner,
38 PubkeyHashSigner, addUTXOsToFund, estimateTXBytes
39} from './operations'
40
41export { BlockstackWallet, IdentityKeyPair } from './wallet'
42
43export { network } from './network'
44
45// @ts-ignore: Could not find a declaration file for module
46export { decodeToken } from 'jsontokens'
47
48export { config } from './config'
49
50export { encryptMnemonic, decryptMnemonic } from './encryption'
51
52export { UserSession } from './auth/userSession'