UNPKG

3.02 kBJavaScriptView Raw
1"use strict";
2function __export(m) {
3 for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4}
5Object.defineProperty(exports, "__esModule", { value: true });
6const protocolEchoDetection_1 = require("./auth/protocolEchoDetection");
7try {
8 /**
9 * Located here so it executes ASAP. The protocol handler detection is designed to work
10 * as a drop-in-replacement (non-breaking upgrade) for apps using blockstack.js. That
11 * requires doing this global and immediate detection.
12 * This function is also called in `isSignInPending` so that web app bundling the
13 * blockstack.js lib in a more modular way will still perform the protocol detection
14 * handling without any changes if this index file is not bundled in.
15 */
16 protocolEchoDetection_1.protocolEchoReplyDetection();
17}
18catch (error) {
19 console.error(`Error performing global protocol echo reply detection: ${error}`);
20}
21__export(require("./auth"));
22__export(require("./profiles"));
23__export(require("./storage"));
24var dids_1 = require("./dids");
25exports.makeDIDFromAddress = dids_1.makeDIDFromAddress;
26exports.makeDIDFromPublicKey = dids_1.makeDIDFromPublicKey;
27exports.getDIDType = dids_1.getDIDType;
28exports.getAddressFromDID = dids_1.getAddressFromDID;
29var keys_1 = require("./keys");
30exports.getEntropy = keys_1.getEntropy;
31exports.makeECPrivateKey = keys_1.makeECPrivateKey;
32exports.publicKeyToAddress = keys_1.publicKeyToAddress;
33exports.getPublicKeyFromPrivate = keys_1.getPublicKeyFromPrivate;
34var utils_1 = require("./utils");
35exports.nextYear = utils_1.nextYear;
36exports.nextMonth = utils_1.nextMonth;
37exports.nextHour = utils_1.nextHour;
38exports.makeUUID4 = utils_1.makeUUID4;
39exports.updateQueryStringParameter = utils_1.updateQueryStringParameter;
40exports.isLaterVersion = utils_1.isLaterVersion;
41exports.isSameOriginAbsoluteUrl = utils_1.isSameOriginAbsoluteUrl;
42exports.hexStringToECPair = utils_1.hexStringToECPair;
43exports.ecPairToHexString = utils_1.ecPairToHexString;
44exports.ecPairToAddress = utils_1.ecPairToAddress;
45var operations_1 = require("./operations");
46exports.transactions = operations_1.transactions;
47exports.safety = operations_1.safety;
48exports.PubkeyHashSigner = operations_1.PubkeyHashSigner;
49exports.addUTXOsToFund = operations_1.addUTXOsToFund;
50exports.estimateTXBytes = operations_1.estimateTXBytes;
51var wallet_1 = require("./wallet");
52exports.BlockstackWallet = wallet_1.BlockstackWallet;
53var network_1 = require("./network");
54exports.network = network_1.network;
55// @ts-ignore: Could not find a declaration file for module
56var jsontokens_1 = require("jsontokens");
57exports.decodeToken = jsontokens_1.decodeToken;
58var config_1 = require("./config");
59exports.config = config_1.config;
60var encryption_1 = require("./encryption");
61exports.encryptMnemonic = encryption_1.encryptMnemonic;
62exports.decryptMnemonic = encryption_1.decryptMnemonic;
63var userSession_1 = require("./auth/userSession");
64exports.UserSession = userSession_1.UserSession;
65//# sourceMappingURL=public.js.map
\No newline at end of file