|
|
@ -1,6 +1,5 @@ |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); |
|
|
|
|
|
|
|
var _typeof = require("@babel/runtime/helpers/typeof"); |
|
|
|
var _typeof = require("@babel/runtime/helpers/typeof"); |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
|
|
value: true |
|
|
|
value: true |
|
|
@ -8,81 +7,81 @@ Object.defineProperty(exports, "__esModule", { |
|
|
|
Object.defineProperty(exports, "calculateContractAddress", { |
|
|
|
Object.defineProperty(exports, "calculateContractAddress", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _calculateContractAddress["default"]; |
|
|
|
return _calculateContractAddress.calculateContractAddress; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports.cipher = void 0; |
|
|
|
exports.cipher = void 0; |
|
|
|
Object.defineProperty(exports, "createIdentity", { |
|
|
|
Object.defineProperty(exports, "createIdentity", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _createIdentity["default"]; |
|
|
|
return _createIdentity.createIdentity; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "decryptWithPrivateKey", { |
|
|
|
Object.defineProperty(exports, "decryptWithPrivateKey", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _decryptWithPrivateKey["default"]; |
|
|
|
return _decryptWithPrivateKey.decryptWithPrivateKey; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports["default"] = void 0; |
|
|
|
exports["default"] = void 0; |
|
|
|
Object.defineProperty(exports, "encryptWithPublicKey", { |
|
|
|
Object.defineProperty(exports, "encryptWithPublicKey", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _encryptWithPublicKey["default"]; |
|
|
|
return _encryptWithPublicKey.encryptWithPublicKey; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports.publicKey = exports.hex = exports.hash = void 0; |
|
|
|
exports.publicKey = exports.hex = exports.hash = void 0; |
|
|
|
Object.defineProperty(exports, "publicKeyByPrivateKey", { |
|
|
|
Object.defineProperty(exports, "publicKeyByPrivateKey", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _publicKeyByPrivateKey["default"]; |
|
|
|
return _publicKeyByPrivateKey.publicKeyByPrivateKey; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "recover", { |
|
|
|
Object.defineProperty(exports, "recover", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _recover["default"]; |
|
|
|
return _recover.recover; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "recoverPublicKey", { |
|
|
|
Object.defineProperty(exports, "recoverPublicKey", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _recoverPublicKey["default"]; |
|
|
|
return _recoverPublicKey.recoverPublicKey; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "sign", { |
|
|
|
Object.defineProperty(exports, "sign", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _sign["default"]; |
|
|
|
return _sign.sign; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "signTransaction", { |
|
|
|
Object.defineProperty(exports, "signTransaction", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _signTransaction["default"]; |
|
|
|
return _signTransaction.signTransaction; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
Object.defineProperty(exports, "txDataByCompiled", { |
|
|
|
Object.defineProperty(exports, "txDataByCompiled", { |
|
|
|
enumerable: true, |
|
|
|
enumerable: true, |
|
|
|
get: function get() { |
|
|
|
get: function get() { |
|
|
|
return _txDataByCompiled["default"]; |
|
|
|
return _txDataByCompiled.txDataByCompiled; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports.vrs = exports.util = void 0; |
|
|
|
exports.vrs = exports.util = void 0; |
|
|
|
var _createIdentity = _interopRequireDefault(require("./create-identity")); |
|
|
|
var _createIdentity = require("./create-identity"); |
|
|
|
var publicKey = _interopRequireWildcard(require("./public-key")); |
|
|
|
var publicKey = _interopRequireWildcard(require("./public-key")); |
|
|
|
exports.publicKey = publicKey; |
|
|
|
exports.publicKey = publicKey; |
|
|
|
var _decryptWithPrivateKey = _interopRequireDefault(require("./decrypt-with-private-key")); |
|
|
|
var _decryptWithPrivateKey = require("./decrypt-with-private-key"); |
|
|
|
var _encryptWithPublicKey = _interopRequireDefault(require("./encrypt-with-public-key")); |
|
|
|
var _encryptWithPublicKey = require("./encrypt-with-public-key"); |
|
|
|
var cipher = _interopRequireWildcard(require("./cipher")); |
|
|
|
var cipher = _interopRequireWildcard(require("./cipher")); |
|
|
|
exports.cipher = cipher; |
|
|
|
exports.cipher = cipher; |
|
|
|
var _publicKeyByPrivateKey = _interopRequireDefault(require("./public-key-by-private-key")); |
|
|
|
var _publicKeyByPrivateKey = require("./public-key-by-private-key"); |
|
|
|
var _recover = _interopRequireDefault(require("./recover")); |
|
|
|
var _recover = require("./recover"); |
|
|
|
var _recoverPublicKey = _interopRequireDefault(require("./recover-public-key")); |
|
|
|
var _recoverPublicKey = require("./recover-public-key"); |
|
|
|
var _sign = _interopRequireDefault(require("./sign")); |
|
|
|
var _sign = require("./sign"); |
|
|
|
var _signTransaction = _interopRequireDefault(require("./sign-transaction")); |
|
|
|
var _signTransaction = require("./sign-transaction"); |
|
|
|
var _txDataByCompiled = _interopRequireDefault(require("./tx-data-by-compiled")); |
|
|
|
var _txDataByCompiled = require("./tx-data-by-compiled"); |
|
|
|
var _calculateContractAddress = _interopRequireDefault(require("./calculate-contract-address")); |
|
|
|
var _calculateContractAddress = require("./calculate-contract-address"); |
|
|
|
var hash = _interopRequireWildcard(require("./hash")); |
|
|
|
var hash = _interopRequireWildcard(require("./hash")); |
|
|
|
exports.hash = hash; |
|
|
|
exports.hash = hash; |
|
|
|
var hex = _interopRequireWildcard(require("./hex")); |
|
|
|
var hex = _interopRequireWildcard(require("./hex")); |
|
|
@ -94,18 +93,18 @@ exports.util = util; |
|
|
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } |
|
|
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } |
|
|
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
|
|
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
|
|
|
var _default = { |
|
|
|
var _default = { |
|
|
|
createIdentity: _createIdentity["default"], |
|
|
|
createIdentity: _createIdentity.createIdentity, |
|
|
|
publicKey: publicKey, |
|
|
|
publicKey: publicKey, |
|
|
|
decryptWithPrivateKey: _decryptWithPrivateKey["default"], |
|
|
|
decryptWithPrivateKey: _decryptWithPrivateKey.decryptWithPrivateKey, |
|
|
|
encryptWithPublicKey: _encryptWithPublicKey["default"], |
|
|
|
encryptWithPublicKey: _encryptWithPublicKey.encryptWithPublicKey, |
|
|
|
cipher: cipher, |
|
|
|
cipher: cipher, |
|
|
|
publicKeyByPrivateKey: _publicKeyByPrivateKey["default"], |
|
|
|
publicKeyByPrivateKey: _publicKeyByPrivateKey.publicKeyByPrivateKey, |
|
|
|
recover: _recover["default"], |
|
|
|
recover: _recover.recover, |
|
|
|
recoverPublicKey: _recoverPublicKey["default"], |
|
|
|
recoverPublicKey: _recoverPublicKey.recoverPublicKey, |
|
|
|
sign: _sign["default"], |
|
|
|
sign: _sign.sign, |
|
|
|
signTransaction: _signTransaction["default"], |
|
|
|
signTransaction: _signTransaction.signTransaction, |
|
|
|
txDataByCompiled: _txDataByCompiled["default"], |
|
|
|
txDataByCompiled: _txDataByCompiled.txDataByCompiled, |
|
|
|
calculateContractAddress: _calculateContractAddress["default"], |
|
|
|
calculateContractAddress: _calculateContractAddress.calculateContractAddress, |
|
|
|
hash: hash, |
|
|
|
hash: hash, |
|
|
|
hex: hex, |
|
|
|
hex: hex, |
|
|
|
vrs: vrs, |
|
|
|
vrs: vrs, |
|
|
|