All files / src public.ts

97.96% Statements 48/49
100% Branches 0/0
100% Functions 0/0
95.83% Lines 23/24

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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