@dynamic-labs/sdk-api 0.0.1092 → 0.0.1093
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/package.json
CHANGED
|
@@ -13,6 +13,8 @@ exports.SignMessageRawSignHashFunctionEnum = void 0;
|
|
|
13
13
|
(function (SignMessageRawSignHashFunctionEnum) {
|
|
14
14
|
SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
|
|
15
15
|
SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
|
|
16
|
+
SignMessageRawSignHashFunctionEnum["Sha256"] = "sha256";
|
|
17
|
+
SignMessageRawSignHashFunctionEnum["Blake2b"] = "blake2b";
|
|
16
18
|
})(exports.SignMessageRawSignHashFunctionEnum || (exports.SignMessageRawSignHashFunctionEnum = {}));
|
|
17
19
|
function SignMessageRawSignFromJSON(json) {
|
|
18
20
|
return SignMessageRawSignFromJSONTyped(json);
|
|
@@ -22,7 +22,7 @@ export interface SignMessageRawSign {
|
|
|
22
22
|
*/
|
|
23
23
|
payload: string;
|
|
24
24
|
/**
|
|
25
|
-
* Hash applied to (prefix + payload) to reproduce the digest being signed.
|
|
25
|
+
* Hash applied to (prefix + payload) to reproduce the digest being signed. Allowed algorithms: sha512Half (e.g. XRPL single-signer), keccak256 (screened against EVM operations), sha256 (TRON, SVM, TON; guarded against 32-byte pre-hashed payloads that could reproduce a Bitcoin double-SHA256 sighash), and blake2b (Sui, 32-byte digest)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SignMessageRawSign
|
|
28
28
|
*/
|
|
@@ -40,7 +40,9 @@ export interface SignMessageRawSign {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare enum SignMessageRawSignHashFunctionEnum {
|
|
42
42
|
Sha512Half = "sha512Half",
|
|
43
|
-
Keccak256 = "keccak256"
|
|
43
|
+
Keccak256 = "keccak256",
|
|
44
|
+
Sha256 = "sha256",
|
|
45
|
+
Blake2b = "blake2b"
|
|
44
46
|
}
|
|
45
47
|
export declare function SignMessageRawSignFromJSON(json: any): SignMessageRawSign;
|
|
46
48
|
export declare function SignMessageRawSignFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageRawSign;
|
|
@@ -9,6 +9,8 @@ var SignMessageRawSignHashFunctionEnum;
|
|
|
9
9
|
(function (SignMessageRawSignHashFunctionEnum) {
|
|
10
10
|
SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
|
|
11
11
|
SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
|
|
12
|
+
SignMessageRawSignHashFunctionEnum["Sha256"] = "sha256";
|
|
13
|
+
SignMessageRawSignHashFunctionEnum["Blake2b"] = "blake2b";
|
|
12
14
|
})(SignMessageRawSignHashFunctionEnum || (SignMessageRawSignHashFunctionEnum = {}));
|
|
13
15
|
function SignMessageRawSignFromJSON(json) {
|
|
14
16
|
return SignMessageRawSignFromJSONTyped(json);
|