@getpara/core-sdk 2.0.0-alpha.19 → 2.0.0-alpha.20

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.
@@ -39,7 +39,7 @@ __export(constants_exports, {
39
39
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
40
40
  });
41
41
  module.exports = __toCommonJS(constants_exports);
42
- const PARA_CORE_VERSION = "2.0.0-alpha.19";
42
+ const PARA_CORE_VERSION = "2.0.0-alpha.20";
43
43
  const PREFIX = "@CAPSULE/";
44
44
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
45
45
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -27,12 +27,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
  var formatting_exports = {};
29
29
  __export(formatting_exports, {
30
+ compressPubkey: () => compressPubkey,
30
31
  decimalToHex: () => decimalToHex,
31
32
  getCosmosAddress: () => getCosmosAddress,
32
33
  hexStringToBase64: () => hexStringToBase64,
33
34
  hexToDecimal: () => hexToDecimal,
34
35
  hexToSignature: () => hexToSignature,
35
36
  hexToUint8Array: () => hexToUint8Array,
37
+ rawSecp256k1PubkeyToRawAddress: () => rawSecp256k1PubkeyToRawAddress,
36
38
  truncateAddress: () => truncateAddress
37
39
  });
38
40
  module.exports = __toCommonJS(formatting_exports);
@@ -102,11 +104,13 @@ function truncateAddress(str, addressType, {
102
104
  }
103
105
  // Annotate the CommonJS export names for ESM import in node:
104
106
  0 && (module.exports = {
107
+ compressPubkey,
105
108
  decimalToHex,
106
109
  getCosmosAddress,
107
110
  hexStringToBase64,
108
111
  hexToDecimal,
109
112
  hexToSignature,
110
113
  hexToUint8Array,
114
+ rawSecp256k1PubkeyToRawAddress,
111
115
  truncateAddress
112
116
  });
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "2.0.0-alpha.19";
2
+ const PARA_CORE_VERSION = "2.0.0-alpha.20";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
5
5
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -64,11 +64,13 @@ function truncateAddress(str, addressType, {
64
64
  return `${str.slice(0, minimum + margin)}...${str.slice(-1 * margin)}`;
65
65
  }
66
66
  export {
67
+ compressPubkey,
67
68
  decimalToHex,
68
69
  getCosmosAddress,
69
70
  hexStringToBase64,
70
71
  hexToDecimal,
71
72
  hexToSignature,
72
73
  hexToUint8Array,
74
+ rawSecp256k1PubkeyToRawAddress,
73
75
  truncateAddress
74
76
  };
@@ -10,6 +10,8 @@ export declare function hexToSignature(hexSig: string): Signature;
10
10
  export declare function hexToUint8Array(hex: string): Uint8Array;
11
11
  export declare function hexToDecimal(hex: string): string;
12
12
  export declare function decimalToHex(decimal: string): Hex;
13
+ export declare function compressPubkey(pubkey: Uint8Array): Uint8Array;
14
+ export declare function rawSecp256k1PubkeyToRawAddress(pubkeyData: Uint8Array): Uint8Array;
13
15
  export declare function getCosmosAddress(publicKey: string, prefix: string): string;
14
16
  export declare function truncateAddress(str: string, addressType: TWalletType, { prefix, targetLength, }?: {
15
17
  prefix?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.0.0-alpha.19",
3
+ "version": "2.0.0-alpha.20",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "@celo/utils": "^8.0.2",
11
11
  "@cosmjs/encoding": "^0.32.4",
12
12
  "@ethereumjs/util": "^9.1.0",
13
- "@getpara/user-management-client": "2.0.0-alpha.19",
13
+ "@getpara/user-management-client": "2.0.0-alpha.20",
14
14
  "@noble/hashes": "^1.5.0",
15
15
  "base64url": "^3.0.1",
16
16
  "libphonenumber-js": "1.11.2",
@@ -41,5 +41,5 @@
41
41
  "require": "./dist/cjs/index.js"
42
42
  }
43
43
  },
44
- "gitHead": "80d2c5d7e1203fb12378aa29bfd4d7003c7d7075"
44
+ "gitHead": "4c8d918b9fc387476968bfc08524fe1a8b6ec83b"
45
45
  }