@pezkuwi/keyring 14.0.1
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 +17 -0
- package/package.json +32 -0
- package/src/bundle.ts +16 -0
- package/src/defaults.ts +8 -0
- package/src/index.spec.ts +609 -0
- package/src/index.ts +10 -0
- package/src/keyring.ts +307 -0
- package/src/mod.ts +4 -0
- package/src/packageDetect.ts +13 -0
- package/src/packageInfo.ts +6 -0
- package/src/pair/decode.spec.ts +26 -0
- package/src/pair/decode.ts +56 -0
- package/src/pair/defaults.ts +20 -0
- package/src/pair/encode.spec.ts +28 -0
- package/src/pair/encode.ts +30 -0
- package/src/pair/index.spec.ts +189 -0
- package/src/pair/index.ts +220 -0
- package/src/pair/nobody.ts +62 -0
- package/src/pair/toJson.spec.ts +42 -0
- package/src/pair/toJson.ts +20 -0
- package/src/pair/types.ts +8 -0
- package/src/pair/vrf.spec.ts +47 -0
- package/src/pairs.ts +41 -0
- package/src/suri.spec.ts +109 -0
- package/src/testing.ts +156 -0
- package/src/testingPairs.spec.ts +79 -0
- package/src/testingPairs.ts +56 -0
- package/src/types.ts +131 -0
- package/tsconfig.build.json +16 -0
- package/tsconfig.spec.json +18 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @pezkuwi/keyring
|
|
2
|
+
|
|
3
|
+
Key management of user accounts including generation and retrieval of keyring pairs from a variety of input combinations.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Installation -
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
yarn add @pezkuwi/keyring
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Classes and Functions can be imported as follows:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import Keyring from '@pezkuwi/keyring';
|
|
17
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
|
4
|
+
"description": "Keyring management",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/keyring#readme",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"name": "@pezkuwi/keyring",
|
|
11
|
+
"repository": {
|
|
12
|
+
"directory": "packages/keyring",
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-common.git"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"./packageDetect.js",
|
|
18
|
+
"./packageDetect.cjs"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"version": "14.0.1",
|
|
22
|
+
"main": "index.js",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@pezkuwi/util": "14.0.1",
|
|
25
|
+
"@pezkuwi/util-crypto": "14.0.1",
|
|
26
|
+
"tslib": "^2.8.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@pezkuwi/util": "14.0.1",
|
|
30
|
+
"@pezkuwi/util-crypto": "14.0.1"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/bundle.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// all external
|
|
5
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
6
|
+
export { decodeAddress, encodeAddress, setSS58Format } from '@pezkuwi/util-crypto';
|
|
7
|
+
|
|
8
|
+
// all named
|
|
9
|
+
export { Keyring } from './keyring.js';
|
|
10
|
+
export { packageInfo } from './packageInfo.js';
|
|
11
|
+
export { createPair } from './pair/index.js';
|
|
12
|
+
export { createTestKeyring } from './testing.js';
|
|
13
|
+
export { createTestPairs } from './testingPairs.js';
|
|
14
|
+
|
|
15
|
+
// all starred
|
|
16
|
+
export * from './defaults.js';
|
package/src/defaults.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// default substrate dev phrase
|
|
5
|
+
export const DEV_PHRASE = 'bottom drive obey lake curtain smoke basket hold race lonely fit walk';
|
|
6
|
+
|
|
7
|
+
// seed from the above phrase
|
|
8
|
+
export const DEV_SEED = '0xfac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e';
|