@pezkuwi/keyring 14.0.5 → 14.0.6
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/README.md +3 -3
- package/{bundle-polkadot-keyring.js → bundle-pezkuwi-keyring.js} +2 -2
- package/bundle.d.ts +1 -1
- package/cjs/bundle.d.ts +1 -1
- package/cjs/keyring.d.ts +3 -3
- package/cjs/packageInfo.js +1 -1
- package/cjs/pair/decode.d.ts +1 -1
- package/cjs/pair/index.d.ts +1 -1
- package/cjs/pair/toJson.d.ts +1 -1
- package/cjs/testing.d.ts +2 -2
- package/cjs/testingPairs.d.ts +3 -3
- package/cjs/types.d.ts +2 -2
- package/keyring.d.ts +3 -3
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/pair/decode.d.ts +1 -1
- package/pair/index.d.ts +1 -1
- package/pair/toJson.d.ts +1 -1
- package/testing.d.ts +2 -2
- package/testingPairs.d.ts +3 -3
- package/types.d.ts +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @pezkuwi/keyring
|
|
2
2
|
|
|
3
3
|
Key management of user accounts including generation and retrieval of keyring pairs from a variety of input combinations.
|
|
4
4
|
|
|
@@ -7,11 +7,11 @@ Key management of user accounts including generation and retrieval of keyring pa
|
|
|
7
7
|
Installation -
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
yarn add @
|
|
10
|
+
yarn add @pezkuwi/keyring
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Classes and Functions can be imported as follows:
|
|
14
14
|
|
|
15
15
|
```js
|
|
16
|
-
import Keyring from '@
|
|
16
|
+
import Keyring from '@pezkuwi/keyring';
|
|
17
17
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@pezkuwi/util-crypto'), require('@pezkuwi/util')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@pezkuwi/util-crypto', '@pezkuwi/util'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pezkuwiKeyring = {}, global.pezkuwiUtilCrypto, global.pezkuwiUtil));
|
|
5
5
|
})(this, (function (exports, utilCrypto, util) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : window;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
const packageInfo = { name: '@pezkuwi/keyring', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-
|
|
366
|
+
const packageInfo = { name: '@pezkuwi/keyring', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-keyring.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-keyring.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-keyring.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-keyring.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.2' };
|
|
367
367
|
|
|
368
368
|
const PAIRSSR25519 = [
|
|
369
369
|
{
|
package/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { decodeAddress, encodeAddress, setSS58Format } from '@
|
|
1
|
+
export { decodeAddress, encodeAddress, setSS58Format } from '@pezkuwi/util-crypto';
|
|
2
2
|
export { Keyring } from './keyring.js';
|
|
3
3
|
export { packageInfo } from './packageInfo.js';
|
|
4
4
|
export { createPair } from './pair/index.js';
|
package/cjs/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { decodeAddress, encodeAddress, setSS58Format } from '@
|
|
1
|
+
export { decodeAddress, encodeAddress, setSS58Format } from '@pezkuwi/util-crypto';
|
|
2
2
|
export { Keyring } from './keyring.js';
|
|
3
3
|
export { packageInfo } from './packageInfo.js';
|
|
4
4
|
export { createPair } from './pair/index.js';
|
package/cjs/keyring.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@
|
|
1
|
+
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringInstance, KeyringOptions, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from './types.js';
|
|
3
|
-
import { decodeAddress } from '@
|
|
3
|
+
import { decodeAddress } from '@pezkuwi/util-crypto';
|
|
4
4
|
/**
|
|
5
|
-
* # @
|
|
5
|
+
* # @pezkuwi/keyring
|
|
6
6
|
*
|
|
7
7
|
* ## Overview
|
|
8
8
|
*
|
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@pezkuwi/keyring', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/keyring', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.2' };
|
package/cjs/pair/decode.d.ts
CHANGED
package/cjs/pair/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EncryptedJsonEncoding, KeypairType } from '@
|
|
1
|
+
import type { EncryptedJsonEncoding, KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringPair, KeyringPair$Meta } from '../types.js';
|
|
3
3
|
import type { PairInfo } from './types.js';
|
|
4
4
|
interface Setup {
|
package/cjs/pair/toJson.d.ts
CHANGED
package/cjs/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HexString } from '@
|
|
2
|
-
import type { KeypairType } from '@
|
|
1
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
2
|
+
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
|
3
3
|
import type { KeyringInstance, KeyringOptions } from './types.js';
|
|
4
4
|
interface PairDef {
|
|
5
5
|
name?: string;
|
package/cjs/testingPairs.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { KeypairType } from '@
|
|
1
|
+
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringOptions, KeyringPair } from './types.js';
|
|
3
3
|
export interface TestKeyringMap {
|
|
4
4
|
nobody: KeyringPair;
|
|
5
5
|
[index: string]: KeyringPair;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface TestKeyringMapBizinikiwi extends TestKeyringMap {
|
|
8
8
|
alice: KeyringPair;
|
|
9
9
|
bob: KeyringPair;
|
|
10
10
|
charlie: KeyringPair;
|
|
@@ -20,6 +20,6 @@ export interface TestKeyringMapEthereum extends TestKeyringMap {
|
|
|
20
20
|
Ethan: KeyringPair;
|
|
21
21
|
Faith: KeyringPair;
|
|
22
22
|
}
|
|
23
|
-
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum' ? TestKeyringMapEthereum :
|
|
23
|
+
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum' ? TestKeyringMapEthereum : TestKeyringMapBizinikiwi;
|
|
24
24
|
export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions ? O['type'] extends KeypairType ? O['type'] : 'sr25519' : 'sr25519';
|
|
25
25
|
export declare function createTestPairs<O extends KeyringOptions, M = DetectMap<O>>(options?: O, isDerived?: boolean): M;
|
package/cjs/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HexString } from '@
|
|
2
|
-
import type { EncryptedJson, Keypair, KeypairType, Prefix } from '@
|
|
1
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
2
|
+
import type { EncryptedJson, Keypair, KeypairType, Prefix } from '@pezkuwi/util-crypto/types';
|
|
3
3
|
export interface KeyringOptions {
|
|
4
4
|
/** The ss58Format to use for address encoding (defaults to 42) */
|
|
5
5
|
ss58Format?: Prefix;
|
package/keyring.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@
|
|
1
|
+
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringInstance, KeyringOptions, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from './types.js';
|
|
3
|
-
import { decodeAddress } from '@
|
|
3
|
+
import { decodeAddress } from '@pezkuwi/util-crypto';
|
|
4
4
|
/**
|
|
5
|
-
* # @
|
|
5
|
+
* # @pezkuwi/keyring
|
|
6
6
|
*
|
|
7
7
|
* ## Overview
|
|
8
8
|
*
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
-
"bugs": "https://github.com/
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
|
4
4
|
"description": "Keyring management",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
7
7
|
},
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/keyring#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"name": "@pezkuwi/keyring",
|
|
11
11
|
"repository": {
|
|
12
12
|
"directory": "packages/keyring",
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-common.git"
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": [
|
|
17
17
|
"./packageDetect.js",
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "14.0.
|
|
21
|
+
"version": "14.0.6",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -283,12 +283,12 @@
|
|
|
283
283
|
}
|
|
284
284
|
},
|
|
285
285
|
"dependencies": {
|
|
286
|
-
"@pezkuwi/util": "14.0.
|
|
287
|
-
"@pezkuwi/util-crypto": "14.0.
|
|
286
|
+
"@pezkuwi/util": "14.0.1",
|
|
287
|
+
"@pezkuwi/util-crypto": "^14.0.2",
|
|
288
288
|
"tslib": "^2.8.0"
|
|
289
289
|
},
|
|
290
290
|
"peerDependencies": {
|
|
291
|
-
"@pezkuwi/util": "14.0.
|
|
292
|
-
"@pezkuwi/util-crypto": "14.0.
|
|
291
|
+
"@pezkuwi/util": "14.0.1",
|
|
292
|
+
"@pezkuwi/util-crypto": "^14.0.2"
|
|
293
293
|
}
|
|
294
294
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/keyring', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.
|
|
1
|
+
export const packageInfo = { name: '@pezkuwi/keyring', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.2' };
|
package/pair/decode.d.ts
CHANGED
package/pair/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EncryptedJsonEncoding, KeypairType } from '@
|
|
1
|
+
import type { EncryptedJsonEncoding, KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringPair, KeyringPair$Meta } from '../types.js';
|
|
3
3
|
import type { PairInfo } from './types.js';
|
|
4
4
|
interface Setup {
|
package/pair/toJson.d.ts
CHANGED
package/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HexString } from '@
|
|
2
|
-
import type { KeypairType } from '@
|
|
1
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
2
|
+
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
|
3
3
|
import type { KeyringInstance, KeyringOptions } from './types.js';
|
|
4
4
|
interface PairDef {
|
|
5
5
|
name?: string;
|
package/testingPairs.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { KeypairType } from '@
|
|
1
|
+
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
|
2
2
|
import type { KeyringOptions, KeyringPair } from './types.js';
|
|
3
3
|
export interface TestKeyringMap {
|
|
4
4
|
nobody: KeyringPair;
|
|
5
5
|
[index: string]: KeyringPair;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface TestKeyringMapBizinikiwi extends TestKeyringMap {
|
|
8
8
|
alice: KeyringPair;
|
|
9
9
|
bob: KeyringPair;
|
|
10
10
|
charlie: KeyringPair;
|
|
@@ -20,6 +20,6 @@ export interface TestKeyringMapEthereum extends TestKeyringMap {
|
|
|
20
20
|
Ethan: KeyringPair;
|
|
21
21
|
Faith: KeyringPair;
|
|
22
22
|
}
|
|
23
|
-
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum' ? TestKeyringMapEthereum :
|
|
23
|
+
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum' ? TestKeyringMapEthereum : TestKeyringMapBizinikiwi;
|
|
24
24
|
export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions ? O['type'] extends KeypairType ? O['type'] : 'sr25519' : 'sr25519';
|
|
25
25
|
export declare function createTestPairs<O extends KeyringOptions, M = DetectMap<O>>(options?: O, isDerived?: boolean): M;
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HexString } from '@
|
|
2
|
-
import type { EncryptedJson, Keypair, KeypairType, Prefix } from '@
|
|
1
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
2
|
+
import type { EncryptedJson, Keypair, KeypairType, Prefix } from '@pezkuwi/util-crypto/types';
|
|
3
3
|
export interface KeyringOptions {
|
|
4
4
|
/** The ss58Format to use for address encoding (defaults to 42) */
|
|
5
5
|
ss58Format?: Prefix;
|