@dynamic-labs-wallet/aleo 1.0.108 → 1.0.110
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 +50 -7
- package/index.esm.js +50 -7
- package/package.json +4 -3
- package/src/client/client.d.ts +14 -1
- package/src/client/client.d.ts.map +1 -1
- package/src/client/constants.d.ts +4 -1
- package/src/client/constants.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -29,8 +29,10 @@ var ERROR_CREATE_WALLET_ACCOUNT = 'Error creating Aleo wallet account';
|
|
|
29
29
|
var ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
|
|
30
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
|
-
var ERROR_SIGN_MESSAGE_NOT_SUPPORTED = 'Aleo signMessage is not supported yet — pending arbitrary-bytes EdBls12377 signing';
|
|
33
32
|
var ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = 'Aleo signTransaction is not supported yet — coming in Phase 2';
|
|
33
|
+
var ERROR_MESSAGE_REQUIRED = 'Message is required';
|
|
34
|
+
/** Sodot's EdBls12377.signBytes cap on the packed message size. */ var MAX_SIGN_MESSAGE_BYTES = 128 * 1024;
|
|
35
|
+
var ERROR_MESSAGE_TOO_LARGE = "Message exceeds the maximum allowed size of ".concat(MAX_SIGN_MESSAGE_BYTES, " bytes");
|
|
34
36
|
var ALEO_NETWORKS = {
|
|
35
37
|
MAINNET: 'mainnet',
|
|
36
38
|
TESTNET: 'testnet'
|
|
@@ -1623,14 +1625,55 @@ var DynamicAleoWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
1623
1625
|
},
|
|
1624
1626
|
{
|
|
1625
1627
|
key: "signMessage",
|
|
1626
|
-
value:
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1628
|
+
value: /**
|
|
1629
|
+
* Signs arbitrary bytes as an Aleo Schnorr signature via Sodot's
|
|
1630
|
+
* EdBls12377.signBytes, matching snarkVM's `Signature::sign_bytes` /
|
|
1631
|
+
* `verify_bytes`. Routed through the shared `sign()` pipeline like every
|
|
1632
|
+
* other chain; the pipeline UTF-8-encodes the resulting bech32 `sign1...`
|
|
1633
|
+
* string into bytes to satisfy its Uint8Array return type, so it's decoded
|
|
1634
|
+
* back to a string here.
|
|
1635
|
+
*/ function signMessage(param) {
|
|
1636
|
+
var message = param.message, accountAddress = param.accountAddress, password = param.password, signedSessionId = param.signedSessionId, mfaToken = param.mfaToken, elevatedAccessToken = param.elevatedAccessToken, context = param.context, onError = param.onError, traceContext = param.traceContext;
|
|
1637
|
+
var _this = this;
|
|
1631
1638
|
return _async_to_generator(function() {
|
|
1639
|
+
var resolvedContext, signature;
|
|
1632
1640
|
return _ts_generator(this, function(_state) {
|
|
1633
|
-
|
|
1641
|
+
switch(_state.label){
|
|
1642
|
+
case 0:
|
|
1643
|
+
if (!accountAddress) {
|
|
1644
|
+
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
1645
|
+
}
|
|
1646
|
+
if (!message) {
|
|
1647
|
+
throw new Error(ERROR_MESSAGE_REQUIRED);
|
|
1648
|
+
}
|
|
1649
|
+
if (Buffer.byteLength(message, 'utf-8') > MAX_SIGN_MESSAGE_BYTES) {
|
|
1650
|
+
throw new Error(ERROR_MESSAGE_TOO_LARGE);
|
|
1651
|
+
}
|
|
1652
|
+
resolvedContext = _object_spread_props(_object_spread({}, context), {
|
|
1653
|
+
aleoMessage: message
|
|
1654
|
+
});
|
|
1655
|
+
return [
|
|
1656
|
+
4,
|
|
1657
|
+
_this.sign({
|
|
1658
|
+
accountAddress: accountAddress,
|
|
1659
|
+
message: message,
|
|
1660
|
+
chainName: _this.chainName,
|
|
1661
|
+
password: password,
|
|
1662
|
+
signedSessionId: signedSessionId,
|
|
1663
|
+
mfaToken: mfaToken,
|
|
1664
|
+
elevatedAccessToken: elevatedAccessToken,
|
|
1665
|
+
context: resolvedContext,
|
|
1666
|
+
onError: onError,
|
|
1667
|
+
traceContext: traceContext
|
|
1668
|
+
})
|
|
1669
|
+
];
|
|
1670
|
+
case 1:
|
|
1671
|
+
signature = _state.sent();
|
|
1672
|
+
return [
|
|
1673
|
+
2,
|
|
1674
|
+
Buffer.from(signature).toString('utf-8')
|
|
1675
|
+
];
|
|
1676
|
+
}
|
|
1634
1677
|
});
|
|
1635
1678
|
})();
|
|
1636
1679
|
}
|
package/index.esm.js
CHANGED
|
@@ -7,8 +7,10 @@ var ERROR_CREATE_WALLET_ACCOUNT = 'Error creating Aleo wallet account';
|
|
|
7
7
|
var ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
|
|
8
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
|
-
var ERROR_SIGN_MESSAGE_NOT_SUPPORTED = 'Aleo signMessage is not supported yet — pending arbitrary-bytes EdBls12377 signing';
|
|
11
10
|
var ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = 'Aleo signTransaction is not supported yet — coming in Phase 2';
|
|
11
|
+
var ERROR_MESSAGE_REQUIRED = 'Message is required';
|
|
12
|
+
/** Sodot's EdBls12377.signBytes cap on the packed message size. */ var MAX_SIGN_MESSAGE_BYTES = 128 * 1024;
|
|
13
|
+
var ERROR_MESSAGE_TOO_LARGE = "Message exceeds the maximum allowed size of ".concat(MAX_SIGN_MESSAGE_BYTES, " bytes");
|
|
12
14
|
var ALEO_NETWORKS = {
|
|
13
15
|
MAINNET: 'mainnet',
|
|
14
16
|
TESTNET: 'testnet'
|
|
@@ -1601,14 +1603,55 @@ var DynamicAleoWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
1601
1603
|
},
|
|
1602
1604
|
{
|
|
1603
1605
|
key: "signMessage",
|
|
1604
|
-
value:
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1606
|
+
value: /**
|
|
1607
|
+
* Signs arbitrary bytes as an Aleo Schnorr signature via Sodot's
|
|
1608
|
+
* EdBls12377.signBytes, matching snarkVM's `Signature::sign_bytes` /
|
|
1609
|
+
* `verify_bytes`. Routed through the shared `sign()` pipeline like every
|
|
1610
|
+
* other chain; the pipeline UTF-8-encodes the resulting bech32 `sign1...`
|
|
1611
|
+
* string into bytes to satisfy its Uint8Array return type, so it's decoded
|
|
1612
|
+
* back to a string here.
|
|
1613
|
+
*/ function signMessage(param) {
|
|
1614
|
+
var message = param.message, accountAddress = param.accountAddress, password = param.password, signedSessionId = param.signedSessionId, mfaToken = param.mfaToken, elevatedAccessToken = param.elevatedAccessToken, context = param.context, onError = param.onError, traceContext = param.traceContext;
|
|
1615
|
+
var _this = this;
|
|
1609
1616
|
return _async_to_generator(function() {
|
|
1617
|
+
var resolvedContext, signature;
|
|
1610
1618
|
return _ts_generator(this, function(_state) {
|
|
1611
|
-
|
|
1619
|
+
switch(_state.label){
|
|
1620
|
+
case 0:
|
|
1621
|
+
if (!accountAddress) {
|
|
1622
|
+
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
1623
|
+
}
|
|
1624
|
+
if (!message) {
|
|
1625
|
+
throw new Error(ERROR_MESSAGE_REQUIRED);
|
|
1626
|
+
}
|
|
1627
|
+
if (Buffer.byteLength(message, 'utf-8') > MAX_SIGN_MESSAGE_BYTES) {
|
|
1628
|
+
throw new Error(ERROR_MESSAGE_TOO_LARGE);
|
|
1629
|
+
}
|
|
1630
|
+
resolvedContext = _object_spread_props(_object_spread({}, context), {
|
|
1631
|
+
aleoMessage: message
|
|
1632
|
+
});
|
|
1633
|
+
return [
|
|
1634
|
+
4,
|
|
1635
|
+
_this.sign({
|
|
1636
|
+
accountAddress: accountAddress,
|
|
1637
|
+
message: message,
|
|
1638
|
+
chainName: _this.chainName,
|
|
1639
|
+
password: password,
|
|
1640
|
+
signedSessionId: signedSessionId,
|
|
1641
|
+
mfaToken: mfaToken,
|
|
1642
|
+
elevatedAccessToken: elevatedAccessToken,
|
|
1643
|
+
context: resolvedContext,
|
|
1644
|
+
onError: onError,
|
|
1645
|
+
traceContext: traceContext
|
|
1646
|
+
})
|
|
1647
|
+
];
|
|
1648
|
+
case 1:
|
|
1649
|
+
signature = _state.sent();
|
|
1650
|
+
return [
|
|
1651
|
+
2,
|
|
1652
|
+
Buffer.from(signature).toString('utf-8')
|
|
1653
|
+
];
|
|
1654
|
+
}
|
|
1612
1655
|
});
|
|
1613
1656
|
})();
|
|
1614
1657
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/aleo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
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.110",
|
|
8
|
+
"@dynamic-labs-wallet/core": "1.0.110",
|
|
9
|
+
"@dynamic-labs/sdk-api-core": "^0.16.0",
|
|
9
10
|
"@provablehq/sdk": "0.10.4"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
package/src/client/client.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { DynamicWalletClient, type MPCSigner, type RequestWithElevatedAccessToken, type ThresholdSignatureScheme, type WalletProperties } from '@dynamic-labs-wallet/browser';
|
|
2
|
+
import type { TraceContext } from '@dynamic-labs-wallet/core';
|
|
3
|
+
import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
|
|
2
4
|
export declare class DynamicAleoWalletClient extends DynamicWalletClient {
|
|
3
5
|
readonly chainName = "ALEO";
|
|
4
6
|
createWalletAccount({ thresholdSignatureScheme, password, onError, signedSessionId, businessAccountId, }: {
|
|
@@ -12,13 +14,24 @@ export declare class DynamicAleoWalletClient extends DynamicWalletClient {
|
|
|
12
14
|
publicKeyHex: string;
|
|
13
15
|
rawPublicKey: Uint8Array;
|
|
14
16
|
}>;
|
|
15
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Signs arbitrary bytes as an Aleo Schnorr signature via Sodot's
|
|
19
|
+
* EdBls12377.signBytes, matching snarkVM's `Signature::sign_bytes` /
|
|
20
|
+
* `verify_bytes`. Routed through the shared `sign()` pipeline like every
|
|
21
|
+
* other chain; the pipeline UTF-8-encodes the resulting bech32 `sign1...`
|
|
22
|
+
* string into bytes to satisfy its Uint8Array return type, so it's decoded
|
|
23
|
+
* back to a string here.
|
|
24
|
+
*/
|
|
25
|
+
signMessage({ message, accountAddress, password, signedSessionId, mfaToken, elevatedAccessToken, context, onError, traceContext, }: {
|
|
16
26
|
message: string;
|
|
17
27
|
accountAddress: string;
|
|
18
28
|
password?: string;
|
|
19
29
|
signedSessionId: string;
|
|
20
30
|
mfaToken?: string;
|
|
21
31
|
elevatedAccessToken?: string;
|
|
32
|
+
context?: SignMessageContext;
|
|
33
|
+
onError?: (error: Error) => void;
|
|
34
|
+
traceContext?: TraceContext;
|
|
22
35
|
}): Promise<string>;
|
|
23
36
|
signTransaction(args: {
|
|
24
37
|
accountAddress: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAOnB,KAAK,SAAS,EACd,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,8BAA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EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,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"}
|
|
@@ -4,8 +4,11 @@ export declare const ERROR_ACCOUNT_ADDRESS_REQUIRED = "Account address is requir
|
|
|
4
4
|
export declare const ERROR_EXPORT_PRIVATE_KEY = "Error exporting Aleo private key";
|
|
5
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";
|
|
6
6
|
export declare const ERROR_IMPORT_PRIVATE_KEY_NOT_SUPPORTED = "Aleo importPrivateKey is not supported yet";
|
|
7
|
-
export declare const ERROR_SIGN_MESSAGE_NOT_SUPPORTED = "Aleo signMessage is not supported yet \u2014 pending arbitrary-bytes EdBls12377 signing";
|
|
8
7
|
export declare const ERROR_SIGN_TRANSACTION_NOT_SUPPORTED = "Aleo signTransaction is not supported yet \u2014 coming in Phase 2";
|
|
8
|
+
export declare const ERROR_MESSAGE_REQUIRED = "Message is required";
|
|
9
|
+
/** Sodot's EdBls12377.signBytes cap on the packed message size. */
|
|
10
|
+
export declare const MAX_SIGN_MESSAGE_BYTES: number;
|
|
11
|
+
export declare const ERROR_MESSAGE_TOO_LARGE = "Message exceeds the maximum allowed size of 131072 bytes";
|
|
9
12
|
export declare const ALEO_NETWORKS: {
|
|
10
13
|
readonly MAINNET: "mainnet";
|
|
11
14
|
readonly TESTNET: "testnet";
|
|
@@ -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,yHACgE,CAAC;AACpH,eAAO,MAAM,sCAAsC,+CAA+C,CAAC;AACnG,eAAO,MAAM,
|
|
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,oCAAoC,uEAAkE,CAAC;AACpH,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,QAAa,CAAC;AACjD,eAAO,MAAM,uBAAuB,6DAAgF,CAAC;AAErH,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"}
|