@xyo-network/key-model 4.1.1 → 4.1.3

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.
@@ -1,37 +1,2 @@
1
- import { DataInstance } from '@xyo-network/data';
2
-
3
- interface EllipticKeyInstance extends DataInstance {
4
- }
5
-
6
- interface AddressValueInstance extends EllipticKeyInstance {
7
- }
8
- interface AddressValueStatic {
9
- new (address: ArrayBuffer): AddressValueInstance;
10
- addressFromAddressOrPublicKey(bytes: ArrayBufferLike): ArrayBufferLike;
11
- addressFromPublicKey(key: ArrayBufferLike): ArrayBufferLike;
12
- isAddress(value: unknown): boolean;
13
- }
14
-
15
- interface PublicKeyInstance extends EllipticKeyInstance {
16
- get address(): AddressValueInstance;
17
- verify(msg: ArrayBufferLike, signature: ArrayBufferLike): boolean | Promise<boolean>;
18
- }
19
- interface PublicKeyStatic {
20
- create(bytes: ArrayBufferLike): Promise<PublicKeyInstance>;
21
- isPublicKey(value: unknown): boolean;
22
- }
23
-
24
- interface PrivateKeyConfig {
25
- privateKeyData?: ArrayBufferLike;
26
- }
27
- interface PrivateKeyInstance extends EllipticKeyInstance {
28
- public: PublicKeyInstance;
29
- sign: (hash: ArrayBufferLike) => ArrayBufferLike | Promise<ArrayBufferLike>;
30
- verify: (msg: ArrayBufferLike, signature: ArrayBufferLike) => boolean | Promise<boolean>;
31
- }
32
- interface PrivateKeyStatic {
33
- create(value: ArrayBufferLike | bigint): Promise<PrivateKeyInstance>;
34
- isPrivateKey(value: unknown): boolean;
35
- }
36
-
37
- export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
1
+ export * from './Key/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,37 +1,2 @@
1
- import { DataInstance } from '@xyo-network/data';
2
-
3
- interface EllipticKeyInstance extends DataInstance {
4
- }
5
-
6
- interface AddressValueInstance extends EllipticKeyInstance {
7
- }
8
- interface AddressValueStatic {
9
- new (address: ArrayBuffer): AddressValueInstance;
10
- addressFromAddressOrPublicKey(bytes: ArrayBufferLike): ArrayBufferLike;
11
- addressFromPublicKey(key: ArrayBufferLike): ArrayBufferLike;
12
- isAddress(value: unknown): boolean;
13
- }
14
-
15
- interface PublicKeyInstance extends EllipticKeyInstance {
16
- get address(): AddressValueInstance;
17
- verify(msg: ArrayBufferLike, signature: ArrayBufferLike): boolean | Promise<boolean>;
18
- }
19
- interface PublicKeyStatic {
20
- create(bytes: ArrayBufferLike): Promise<PublicKeyInstance>;
21
- isPublicKey(value: unknown): boolean;
22
- }
23
-
24
- interface PrivateKeyConfig {
25
- privateKeyData?: ArrayBufferLike;
26
- }
27
- interface PrivateKeyInstance extends EllipticKeyInstance {
28
- public: PublicKeyInstance;
29
- sign: (hash: ArrayBufferLike) => ArrayBufferLike | Promise<ArrayBufferLike>;
30
- verify: (msg: ArrayBufferLike, signature: ArrayBufferLike) => boolean | Promise<boolean>;
31
- }
32
- interface PrivateKeyStatic {
33
- create(value: ArrayBufferLike | bigint): Promise<PrivateKeyInstance>;
34
- isPrivateKey(value: unknown): boolean;
35
- }
36
-
37
- export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
1
+ export * from './Key/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,37 +1,2 @@
1
- import { DataInstance } from '@xyo-network/data';
2
-
3
- interface EllipticKeyInstance extends DataInstance {
4
- }
5
-
6
- interface AddressValueInstance extends EllipticKeyInstance {
7
- }
8
- interface AddressValueStatic {
9
- new (address: ArrayBuffer): AddressValueInstance;
10
- addressFromAddressOrPublicKey(bytes: ArrayBufferLike): ArrayBufferLike;
11
- addressFromPublicKey(key: ArrayBufferLike): ArrayBufferLike;
12
- isAddress(value: unknown): boolean;
13
- }
14
-
15
- interface PublicKeyInstance extends EllipticKeyInstance {
16
- get address(): AddressValueInstance;
17
- verify(msg: ArrayBufferLike, signature: ArrayBufferLike): boolean | Promise<boolean>;
18
- }
19
- interface PublicKeyStatic {
20
- create(bytes: ArrayBufferLike): Promise<PublicKeyInstance>;
21
- isPublicKey(value: unknown): boolean;
22
- }
23
-
24
- interface PrivateKeyConfig {
25
- privateKeyData?: ArrayBufferLike;
26
- }
27
- interface PrivateKeyInstance extends EllipticKeyInstance {
28
- public: PublicKeyInstance;
29
- sign: (hash: ArrayBufferLike) => ArrayBufferLike | Promise<ArrayBufferLike>;
30
- verify: (msg: ArrayBufferLike, signature: ArrayBufferLike) => boolean | Promise<boolean>;
31
- }
32
- interface PrivateKeyStatic {
33
- create(value: ArrayBufferLike | bigint): Promise<PrivateKeyInstance>;
34
- isPrivateKey(value: unknown): boolean;
35
- }
36
-
37
- export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
1
+ export * from './Key/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/key-model",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,12 +29,12 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/data": "^4.1.1"
32
+ "@xyo-network/data": "^4.1.3"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "^24.0.13",
36
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
37
- "@xylabs/tsconfig": "^7.0.0-rc.23",
35
+ "@types/node": "^24.0.14",
36
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
37
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
38
38
  "typescript": "^5.8.3"
39
39
  },
40
40
  "publishConfig": {