UNPKG

blockstack

Version:

The Blockstack Javascript library for authentication, identity, and storage.

64 lines 3.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const protocolEchoDetection_1 = require("./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. */ protocolEchoDetection_1.protocolEchoReplyDetection(); } catch (error) { console.error(`Error performing global protocol echo reply detection: ${error}`); } tslib_1.__exportStar(require("./auth"), exports); tslib_1.__exportStar(require("./profiles"), exports); var storage_1 = require("./storage"); exports.getUserAppFileUrl = storage_1.getUserAppFileUrl; exports.getAppBucketUrl = storage_1.getAppBucketUrl; var dids_1 = require("./dids"); exports.makeDIDFromAddress = dids_1.makeDIDFromAddress; exports.makeDIDFromPublicKey = dids_1.makeDIDFromPublicKey; exports.getDIDType = dids_1.getDIDType; exports.getAddressFromDID = dids_1.getAddressFromDID; var keys_1 = require("./keys"); exports.getEntropy = keys_1.getEntropy; exports.makeECPrivateKey = keys_1.makeECPrivateKey; exports.publicKeyToAddress = keys_1.publicKeyToAddress; exports.getPublicKeyFromPrivate = keys_1.getPublicKeyFromPrivate; exports.hexStringToECPair = keys_1.hexStringToECPair; exports.ecPairToHexString = keys_1.ecPairToHexString; exports.ecPairToAddress = keys_1.ecPairToAddress; var utils_1 = require("./utils"); exports.nextYear = utils_1.nextYear; exports.nextMonth = utils_1.nextMonth; exports.nextHour = utils_1.nextHour; exports.makeUUID4 = utils_1.makeUUID4; exports.updateQueryStringParameter = utils_1.updateQueryStringParameter; exports.isLaterVersion = utils_1.isLaterVersion; exports.isSameOriginAbsoluteUrl = utils_1.isSameOriginAbsoluteUrl; var operations_1 = require("./operations"); exports.transactions = operations_1.transactions; exports.safety = operations_1.safety; exports.PubkeyHashSigner = operations_1.PubkeyHashSigner; exports.addUTXOsToFund = operations_1.addUTXOsToFund; exports.estimateTXBytes = operations_1.estimateTXBytes; var wallet_1 = require("./wallet"); exports.BlockstackWallet = wallet_1.BlockstackWallet; var network_1 = require("./network"); exports.network = network_1.network; var jsontokens_1 = require("jsontokens"); exports.decodeToken = jsontokens_1.decodeToken; var config_1 = require("./config"); exports.config = config_1.config; var encryption_1 = require("./encryption"); exports.encryptMnemonic = encryption_1.encryptMnemonic; exports.decryptMnemonic = encryption_1.decryptMnemonic; var userSession_1 = require("./auth/userSession"); exports.UserSession = userSession_1.UserSession; //# sourceMappingURL=public.js.map