UNPKG

blockstack

Version:

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

65 lines 3.02 kB
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); 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}`); } __export(require("./auth")); __export(require("./profiles")); __export(require("./storage")); 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; 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; exports.hexStringToECPair = utils_1.hexStringToECPair; exports.ecPairToHexString = utils_1.ecPairToHexString; exports.ecPairToAddress = utils_1.ecPairToAddress; 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; // @ts-ignore: Could not find a declaration file for module 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