@dynamic-labs-wallet/aleo 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +4 -115
- package/index.esm.js +4 -115
- package/package.json +3 -3
- package/src/client/client.d.ts +3 -2
- package/src/client/client.d.ts.map +1 -1
- package/src/client/constants.d.ts +1 -0
- package/src/client/constants.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -27,7 +27,7 @@ var AleoSdkTestnet__namespace = /*#__PURE__*/_interopNamespaceDefault(AleoSdkTes
|
|
|
27
27
|
var ERROR_KEYGEN_FAILED = 'Error with Aleo keygen';
|
|
28
28
|
var ERROR_CREATE_WALLET_ACCOUNT = 'Error creating Aleo wallet account';
|
|
29
29
|
var ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
|
|
30
|
-
var
|
|
30
|
+
var ERROR_EXPORT_PRIVATE_KEY_NOT_SUPPORTED = 'Aleo private key export is not supported — MPC-generated keys cannot be reconstructed into an importable format';
|
|
31
31
|
var ERROR_IMPORT_PRIVATE_KEY_NOT_SUPPORTED = 'Aleo importPrivateKey is not supported yet';
|
|
32
32
|
var ERROR_SIGN_MESSAGE_NOT_SUPPORTED = 'Aleo signMessage is not supported yet — pending arbitrary-bytes EdBls12377 signing';
|
|
33
33
|
var ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = 'Aleo signTransaction is not supported yet — coming in Phase 2';
|
|
@@ -1051,64 +1051,6 @@ var RedcoastRecordScanner = /*#__PURE__*/ function() {
|
|
|
1051
1051
|
return RedcoastRecordScanner;
|
|
1052
1052
|
}();
|
|
1053
1053
|
|
|
1054
|
-
/**
|
|
1055
|
-
* Encodes Sodot's raw EdBls12377 private key export into Aleo's canonical
|
|
1056
|
-
* bech32 form (`APrivateKey1zk…`) using the Provable SDK.
|
|
1057
|
-
*
|
|
1058
|
-
* The MPC ceremony's `exportFullPrivateKey` returns the reconstructed private
|
|
1059
|
-
* key as a hex-encoded byte string. Aleo's snarkVM `PrivateKey` is built from
|
|
1060
|
-
* the first 32 bytes of that material (the canonical seed scalar); the
|
|
1061
|
-
* Provable SDK's `PrivateKey.fromBytesLe` is lenient about trailing bytes,
|
|
1062
|
-
* but we slice explicitly to 32 so the encoder behaves identically across
|
|
1063
|
-
* SDK versions.
|
|
1064
|
-
*
|
|
1065
|
-
* Sanity check: after encoding we re-derive the address from the resulting
|
|
1066
|
-
* `PrivateKey` and assert it matches the wallet's address, so a corrupted /
|
|
1067
|
-
* truncated export can't silently surface a key for the wrong account.
|
|
1068
|
-
*
|
|
1069
|
-
* `expectedAddress` is required even though encoding is technically
|
|
1070
|
-
* network-agnostic: the address derivation is the only end-to-end signal
|
|
1071
|
-
* that the seed bytes are intact, so we always run it.
|
|
1072
|
-
*/ var ALEO_PRIVATE_KEY_BECH32_PREFIX = 'APrivateKey1';
|
|
1073
|
-
var ALEO_PRIVATE_KEY_SEED_BYTES = 32;
|
|
1074
|
-
var HEX_PREFIX = '0x';
|
|
1075
|
-
var HEX_REGEX = /^[0-9a-fA-F]+$/;
|
|
1076
|
-
var stripHexPrefix = function(value) {
|
|
1077
|
-
return value.startsWith(HEX_PREFIX) ? value.slice(HEX_PREFIX.length) : value;
|
|
1078
|
-
};
|
|
1079
|
-
var hexToBytes = function(hex) {
|
|
1080
|
-
var evenHex = hex.length % 2 === 0 ? hex : hex.slice(0, -1);
|
|
1081
|
-
var _evenHex_match;
|
|
1082
|
-
var matched = (_evenHex_match = evenHex.match(/.{2}/g)) !== null && _evenHex_match !== void 0 ? _evenHex_match : [];
|
|
1083
|
-
return new Uint8Array(matched.map(function(byte) {
|
|
1084
|
-
return Number.parseInt(byte, 16);
|
|
1085
|
-
}));
|
|
1086
|
-
};
|
|
1087
|
-
var encodeAleoPrivateKey = function(param) {
|
|
1088
|
-
var rawKey = param.rawKey, expectedAddress = param.expectedAddress, sdk = param.sdk;
|
|
1089
|
-
if (!rawKey) {
|
|
1090
|
-
throw new Error('Cannot encode empty Aleo private key');
|
|
1091
|
-
}
|
|
1092
|
-
if (rawKey.startsWith(ALEO_PRIVATE_KEY_BECH32_PREFIX)) {
|
|
1093
|
-
return rawKey;
|
|
1094
|
-
}
|
|
1095
|
-
var hex = stripHexPrefix(rawKey);
|
|
1096
|
-
if (!HEX_REGEX.test(hex)) {
|
|
1097
|
-
throw new Error('Aleo private key export is neither bech32 nor hex');
|
|
1098
|
-
}
|
|
1099
|
-
var bytes = hexToBytes(hex);
|
|
1100
|
-
if (bytes.length < ALEO_PRIVATE_KEY_SEED_BYTES) {
|
|
1101
|
-
throw new Error("Aleo private key export is ".concat(bytes.length, " bytes; expected at least ").concat(ALEO_PRIVATE_KEY_SEED_BYTES));
|
|
1102
|
-
}
|
|
1103
|
-
var seedBytes = bytes.slice(0, ALEO_PRIVATE_KEY_SEED_BYTES);
|
|
1104
|
-
var privateKey = sdk.PrivateKey.from_seed_unchecked(seedBytes);
|
|
1105
|
-
var derivedAddress = privateKey.to_address().to_string();
|
|
1106
|
-
if (derivedAddress !== expectedAddress) {
|
|
1107
|
-
throw new Error("Encoded Aleo private key derives ".concat(derivedAddress, ", expected ").concat(expectedAddress));
|
|
1108
|
-
}
|
|
1109
|
-
return privateKey.to_string();
|
|
1110
|
-
};
|
|
1111
|
-
|
|
1112
1054
|
function _array_like_to_array(arr, len) {
|
|
1113
1055
|
if (len == null || len > arr.length) len = arr.length;
|
|
1114
1056
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -1711,64 +1653,11 @@ var DynamicAleoWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
1711
1653
|
},
|
|
1712
1654
|
{
|
|
1713
1655
|
key: "exportPrivateKey",
|
|
1714
|
-
value:
|
|
1715
|
-
|
|
1716
|
-
var _this = this;
|
|
1656
|
+
value: // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1657
|
+
function exportPrivateKey(_args) {
|
|
1717
1658
|
return _async_to_generator(function() {
|
|
1718
|
-
var derivedPrivateKey, error;
|
|
1719
1659
|
return _ts_generator(this, function(_state) {
|
|
1720
|
-
|
|
1721
|
-
case 0:
|
|
1722
|
-
_state.trys.push([
|
|
1723
|
-
0,
|
|
1724
|
-
2,
|
|
1725
|
-
,
|
|
1726
|
-
3
|
|
1727
|
-
]);
|
|
1728
|
-
if (!accountAddress) {
|
|
1729
|
-
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
1730
|
-
}
|
|
1731
|
-
return [
|
|
1732
|
-
4,
|
|
1733
|
-
_this.exportKey({
|
|
1734
|
-
accountAddress: accountAddress,
|
|
1735
|
-
chainName: _this.chainName,
|
|
1736
|
-
password: password,
|
|
1737
|
-
signedSessionId: signedSessionId,
|
|
1738
|
-
mfaToken: mfaToken,
|
|
1739
|
-
elevatedAccessToken: elevatedAccessToken
|
|
1740
|
-
})
|
|
1741
|
-
];
|
|
1742
|
-
case 1:
|
|
1743
|
-
derivedPrivateKey = _state.sent().derivedPrivateKey;
|
|
1744
|
-
if (!derivedPrivateKey) {
|
|
1745
|
-
throw new Error('Derived private key is undefined');
|
|
1746
|
-
}
|
|
1747
|
-
// Sodot's EdBls12377 `exportFullPrivateKey` returns the raw scalar as a
|
|
1748
|
-
// hex string. Aleo wallets / explorers consume the bech32 `APrivateKey1zk…`
|
|
1749
|
-
// form, so we encode via the Provable SDK before returning. Bech32
|
|
1750
|
-
// encoding is network-agnostic (same HRP on testnet and mainnet) so we
|
|
1751
|
-
// use the testnet build, which is already loaded eagerly.
|
|
1752
|
-
return [
|
|
1753
|
-
2,
|
|
1754
|
-
encodeAleoPrivateKey({
|
|
1755
|
-
rawKey: derivedPrivateKey,
|
|
1756
|
-
expectedAddress: accountAddress,
|
|
1757
|
-
sdk: AleoSdkTestnet__namespace
|
|
1758
|
-
})
|
|
1759
|
-
];
|
|
1760
|
-
case 2:
|
|
1761
|
-
error = _state.sent();
|
|
1762
|
-
if (_instanceof(error, Error) && error.message === browser.ERROR_PASSWORD_MISMATCH) {
|
|
1763
|
-
throw error;
|
|
1764
|
-
}
|
|
1765
|
-
_this.logger.error(ERROR_EXPORT_PRIVATE_KEY, error);
|
|
1766
|
-
throw new Error(ERROR_EXPORT_PRIVATE_KEY);
|
|
1767
|
-
case 3:
|
|
1768
|
-
return [
|
|
1769
|
-
2
|
|
1770
|
-
];
|
|
1771
|
-
}
|
|
1660
|
+
throw new Error(ERROR_EXPORT_PRIVATE_KEY_NOT_SUPPORTED);
|
|
1772
1661
|
});
|
|
1773
1662
|
})();
|
|
1774
1663
|
}
|
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as AleoSdkTestnet from '@provablehq/sdk/testnet.js';
|
|
|
5
5
|
var ERROR_KEYGEN_FAILED = 'Error with Aleo keygen';
|
|
6
6
|
var ERROR_CREATE_WALLET_ACCOUNT = 'Error creating Aleo wallet account';
|
|
7
7
|
var ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
|
|
8
|
-
var
|
|
8
|
+
var ERROR_EXPORT_PRIVATE_KEY_NOT_SUPPORTED = 'Aleo private key export is not supported — MPC-generated keys cannot be reconstructed into an importable format';
|
|
9
9
|
var ERROR_IMPORT_PRIVATE_KEY_NOT_SUPPORTED = 'Aleo importPrivateKey is not supported yet';
|
|
10
10
|
var ERROR_SIGN_MESSAGE_NOT_SUPPORTED = 'Aleo signMessage is not supported yet — pending arbitrary-bytes EdBls12377 signing';
|
|
11
11
|
var ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = 'Aleo signTransaction is not supported yet — coming in Phase 2';
|
|
@@ -1029,64 +1029,6 @@ var RedcoastRecordScanner = /*#__PURE__*/ function() {
|
|
|
1029
1029
|
return RedcoastRecordScanner;
|
|
1030
1030
|
}();
|
|
1031
1031
|
|
|
1032
|
-
/**
|
|
1033
|
-
* Encodes Sodot's raw EdBls12377 private key export into Aleo's canonical
|
|
1034
|
-
* bech32 form (`APrivateKey1zk…`) using the Provable SDK.
|
|
1035
|
-
*
|
|
1036
|
-
* The MPC ceremony's `exportFullPrivateKey` returns the reconstructed private
|
|
1037
|
-
* key as a hex-encoded byte string. Aleo's snarkVM `PrivateKey` is built from
|
|
1038
|
-
* the first 32 bytes of that material (the canonical seed scalar); the
|
|
1039
|
-
* Provable SDK's `PrivateKey.fromBytesLe` is lenient about trailing bytes,
|
|
1040
|
-
* but we slice explicitly to 32 so the encoder behaves identically across
|
|
1041
|
-
* SDK versions.
|
|
1042
|
-
*
|
|
1043
|
-
* Sanity check: after encoding we re-derive the address from the resulting
|
|
1044
|
-
* `PrivateKey` and assert it matches the wallet's address, so a corrupted /
|
|
1045
|
-
* truncated export can't silently surface a key for the wrong account.
|
|
1046
|
-
*
|
|
1047
|
-
* `expectedAddress` is required even though encoding is technically
|
|
1048
|
-
* network-agnostic: the address derivation is the only end-to-end signal
|
|
1049
|
-
* that the seed bytes are intact, so we always run it.
|
|
1050
|
-
*/ var ALEO_PRIVATE_KEY_BECH32_PREFIX = 'APrivateKey1';
|
|
1051
|
-
var ALEO_PRIVATE_KEY_SEED_BYTES = 32;
|
|
1052
|
-
var HEX_PREFIX = '0x';
|
|
1053
|
-
var HEX_REGEX = /^[0-9a-fA-F]+$/;
|
|
1054
|
-
var stripHexPrefix = function(value) {
|
|
1055
|
-
return value.startsWith(HEX_PREFIX) ? value.slice(HEX_PREFIX.length) : value;
|
|
1056
|
-
};
|
|
1057
|
-
var hexToBytes = function(hex) {
|
|
1058
|
-
var evenHex = hex.length % 2 === 0 ? hex : hex.slice(0, -1);
|
|
1059
|
-
var _evenHex_match;
|
|
1060
|
-
var matched = (_evenHex_match = evenHex.match(/.{2}/g)) !== null && _evenHex_match !== void 0 ? _evenHex_match : [];
|
|
1061
|
-
return new Uint8Array(matched.map(function(byte) {
|
|
1062
|
-
return Number.parseInt(byte, 16);
|
|
1063
|
-
}));
|
|
1064
|
-
};
|
|
1065
|
-
var encodeAleoPrivateKey = function(param) {
|
|
1066
|
-
var rawKey = param.rawKey, expectedAddress = param.expectedAddress, sdk = param.sdk;
|
|
1067
|
-
if (!rawKey) {
|
|
1068
|
-
throw new Error('Cannot encode empty Aleo private key');
|
|
1069
|
-
}
|
|
1070
|
-
if (rawKey.startsWith(ALEO_PRIVATE_KEY_BECH32_PREFIX)) {
|
|
1071
|
-
return rawKey;
|
|
1072
|
-
}
|
|
1073
|
-
var hex = stripHexPrefix(rawKey);
|
|
1074
|
-
if (!HEX_REGEX.test(hex)) {
|
|
1075
|
-
throw new Error('Aleo private key export is neither bech32 nor hex');
|
|
1076
|
-
}
|
|
1077
|
-
var bytes = hexToBytes(hex);
|
|
1078
|
-
if (bytes.length < ALEO_PRIVATE_KEY_SEED_BYTES) {
|
|
1079
|
-
throw new Error("Aleo private key export is ".concat(bytes.length, " bytes; expected at least ").concat(ALEO_PRIVATE_KEY_SEED_BYTES));
|
|
1080
|
-
}
|
|
1081
|
-
var seedBytes = bytes.slice(0, ALEO_PRIVATE_KEY_SEED_BYTES);
|
|
1082
|
-
var privateKey = sdk.PrivateKey.from_seed_unchecked(seedBytes);
|
|
1083
|
-
var derivedAddress = privateKey.to_address().to_string();
|
|
1084
|
-
if (derivedAddress !== expectedAddress) {
|
|
1085
|
-
throw new Error("Encoded Aleo private key derives ".concat(derivedAddress, ", expected ").concat(expectedAddress));
|
|
1086
|
-
}
|
|
1087
|
-
return privateKey.to_string();
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
1032
|
function _array_like_to_array(arr, len) {
|
|
1091
1033
|
if (len == null || len > arr.length) len = arr.length;
|
|
1092
1034
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -1689,64 +1631,11 @@ var DynamicAleoWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
1689
1631
|
},
|
|
1690
1632
|
{
|
|
1691
1633
|
key: "exportPrivateKey",
|
|
1692
|
-
value:
|
|
1693
|
-
|
|
1694
|
-
var _this = this;
|
|
1634
|
+
value: // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1635
|
+
function exportPrivateKey(_args) {
|
|
1695
1636
|
return _async_to_generator(function() {
|
|
1696
|
-
var derivedPrivateKey, error;
|
|
1697
1637
|
return _ts_generator(this, function(_state) {
|
|
1698
|
-
|
|
1699
|
-
case 0:
|
|
1700
|
-
_state.trys.push([
|
|
1701
|
-
0,
|
|
1702
|
-
2,
|
|
1703
|
-
,
|
|
1704
|
-
3
|
|
1705
|
-
]);
|
|
1706
|
-
if (!accountAddress) {
|
|
1707
|
-
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
1708
|
-
}
|
|
1709
|
-
return [
|
|
1710
|
-
4,
|
|
1711
|
-
_this.exportKey({
|
|
1712
|
-
accountAddress: accountAddress,
|
|
1713
|
-
chainName: _this.chainName,
|
|
1714
|
-
password: password,
|
|
1715
|
-
signedSessionId: signedSessionId,
|
|
1716
|
-
mfaToken: mfaToken,
|
|
1717
|
-
elevatedAccessToken: elevatedAccessToken
|
|
1718
|
-
})
|
|
1719
|
-
];
|
|
1720
|
-
case 1:
|
|
1721
|
-
derivedPrivateKey = _state.sent().derivedPrivateKey;
|
|
1722
|
-
if (!derivedPrivateKey) {
|
|
1723
|
-
throw new Error('Derived private key is undefined');
|
|
1724
|
-
}
|
|
1725
|
-
// Sodot's EdBls12377 `exportFullPrivateKey` returns the raw scalar as a
|
|
1726
|
-
// hex string. Aleo wallets / explorers consume the bech32 `APrivateKey1zk…`
|
|
1727
|
-
// form, so we encode via the Provable SDK before returning. Bech32
|
|
1728
|
-
// encoding is network-agnostic (same HRP on testnet and mainnet) so we
|
|
1729
|
-
// use the testnet build, which is already loaded eagerly.
|
|
1730
|
-
return [
|
|
1731
|
-
2,
|
|
1732
|
-
encodeAleoPrivateKey({
|
|
1733
|
-
rawKey: derivedPrivateKey,
|
|
1734
|
-
expectedAddress: accountAddress,
|
|
1735
|
-
sdk: AleoSdkTestnet
|
|
1736
|
-
})
|
|
1737
|
-
];
|
|
1738
|
-
case 2:
|
|
1739
|
-
error = _state.sent();
|
|
1740
|
-
if (_instanceof(error, Error) && error.message === ERROR_PASSWORD_MISMATCH) {
|
|
1741
|
-
throw error;
|
|
1742
|
-
}
|
|
1743
|
-
_this.logger.error(ERROR_EXPORT_PRIVATE_KEY, error);
|
|
1744
|
-
throw new Error(ERROR_EXPORT_PRIVATE_KEY);
|
|
1745
|
-
case 3:
|
|
1746
|
-
return [
|
|
1747
|
-
2
|
|
1748
|
-
];
|
|
1749
|
-
}
|
|
1638
|
+
throw new Error(ERROR_EXPORT_PRIVATE_KEY_NOT_SUPPORTED);
|
|
1750
1639
|
});
|
|
1751
1640
|
})();
|
|
1752
1641
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/aleo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/browser": "1.0.
|
|
8
|
-
"@dynamic-labs-wallet/core": "1.0.
|
|
7
|
+
"@dynamic-labs-wallet/browser": "1.0.47",
|
|
8
|
+
"@dynamic-labs-wallet/core": "1.0.47",
|
|
9
9
|
"@provablehq/sdk": "0.10.4"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
package/src/client/client.d.ts
CHANGED
|
@@ -24,12 +24,13 @@ export declare class DynamicAleoWalletClient extends DynamicWalletClient {
|
|
|
24
24
|
accountAddress: string;
|
|
25
25
|
signedSessionId: string;
|
|
26
26
|
}): Promise<string>;
|
|
27
|
-
exportPrivateKey(
|
|
27
|
+
exportPrivateKey(_args: {
|
|
28
28
|
accountAddress: string;
|
|
29
29
|
password?: string;
|
|
30
30
|
signedSessionId: string;
|
|
31
31
|
mfaToken?: string;
|
|
32
|
-
|
|
32
|
+
elevatedAccessToken?: string;
|
|
33
|
+
}): Promise<string>;
|
|
33
34
|
importPrivateKey(_args: {
|
|
34
35
|
privateKey: string;
|
|
35
36
|
chainName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAMnB,KAAK,SAAS,EACd,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAMnB,KAAK,SAAS,EACd,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAwGtC,qBAAa,uBAAwB,SAAQ,mBAAmB;IAC9D,QAAQ,CAAC,SAAS,UAAU;IAEtB,mBAAmB,CAAC,EACxB,wBAAwB,EACxB,QAAoB,EACpB,OAAO,EACP,eAAe,EACf,iBAAiB,GAClB,EAAE;QACD,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QACjC,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,GAAG,OAAO,CAAC;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,UAAU,CAAC;KAC1B,CAAC;IAqFI,WAAW,CAAC,KAAK,EAAE;QACvB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,mBAAmB,CAAC,EAAE,MA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,CAAC,EAAE,MAAM,CAAC;QAClB;;wDAEgD;QAChD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC3B,CAAC,GACD,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;YAsBpB,qBAAqB;IAyDnC;;;;OAIG;YACW,kBAAkB;IAahC;;;;OAIG;YACW,sBAAsB;IAepC;;;;;;OAMG;YACW,wBAAwB;IAyDtC;;;;OAIG;YACW,qBAAqB;IA+BnC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAqCzB;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;CAgB7B"}
|
|
@@ -2,6 +2,7 @@ export declare const ERROR_KEYGEN_FAILED = "Error with Aleo keygen";
|
|
|
2
2
|
export declare const ERROR_CREATE_WALLET_ACCOUNT = "Error creating Aleo wallet account";
|
|
3
3
|
export declare const ERROR_ACCOUNT_ADDRESS_REQUIRED = "Account address is required";
|
|
4
4
|
export declare const ERROR_EXPORT_PRIVATE_KEY = "Error exporting Aleo private key";
|
|
5
|
+
export declare const ERROR_EXPORT_PRIVATE_KEY_NOT_SUPPORTED = "Aleo private key export is not supported \u2014 MPC-generated keys cannot be reconstructed into an importable format";
|
|
5
6
|
export declare const ERROR_IMPORT_PRIVATE_KEY_NOT_SUPPORTED = "Aleo importPrivateKey is not supported yet";
|
|
6
7
|
export declare const ERROR_SIGN_MESSAGE_NOT_SUPPORTED = "Aleo signMessage is not supported yet \u2014 pending arbitrary-bytes EdBls12377 signing";
|
|
7
8
|
export declare const ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = "Aleo signTransaction is not supported yet \u2014 coming in Phase 2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/client/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,2BAA2B,uCAAuC,CAAC;AAChF,eAAO,MAAM,8BAA8B,gCAAgC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAC3E,eAAO,MAAM,sCAAsC,+CAA+C,CAAC;AACnG,eAAO,MAAM,gCAAgC,4FACyC,CAAC;AACvF,eAAO,MAAM,oCAAoC,uEAAkE,CAAC;AAEpH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAE7E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/client/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,2BAA2B,uCAAuC,CAAC;AAChF,eAAO,MAAM,8BAA8B,gCAAgC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAC3E,eAAO,MAAM,sCAAsC,yHACgE,CAAC;AACpH,eAAO,MAAM,sCAAsC,+CAA+C,CAAC;AACnG,eAAO,MAAM,gCAAgC,4FACyC,CAAC;AACvF,eAAO,MAAM,oCAAoC,uEAAkE,CAAC;AAEpH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAE7E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|