@xyo-network/key-model 7.0.14 → 7.0.15

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,2 +1,2 @@
1
- export * from './Key/index.ts';
1
+ export * from '@xyo-network/sdk-protocol/key-model';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qCAAqC,CAAA"}
@@ -1 +1,3 @@
1
+ // src/index.ts
2
+ export * from "@xyo-network/sdk-protocol/key-model";
1
3
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/sdk-protocol.\nexport * from '@xyo-network/sdk-protocol/key-model'\n"],
5
+ "mappings": ";AACA,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/key-model",
3
- "version": "7.0.14",
3
+ "version": "7.0.15",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,27 +34,51 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/data": "~7.0.14"
37
+ "@xyo-network/sdk-protocol": "~7.0.15"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@ariestools/sdk": "~8.0.2",
41
+ "@ariestools/threads": "~8.0.2",
42
+ "@bitauth/libauth": "~3.0.0",
43
+ "@metamask/providers": "~22.1.1",
44
+ "@noble/post-quantum": "~0.6.1",
41
45
  "@opentelemetry/api": "~1.9.1",
42
46
  "@opentelemetry/sdk-trace-base": "~2.9.0",
43
47
  "@scure/base": "~2.2.0",
44
- "@xylabs/toolchain": "~8.6.3",
45
- "@xylabs/tsconfig": "~8.6.3",
48
+ "@scure/bip39": "~2.2.0",
49
+ "@xylabs/toolchain": "~8.6.7",
50
+ "@xylabs/tsconfig": "~8.6.7",
51
+ "ajv": "~8.20.0",
46
52
  "async-mutex": "~0.5.0",
53
+ "debug": "~4.4.3",
47
54
  "eslint": "~10.6.0",
48
55
  "eslint-import-resolver-typescript": "~4.4.5",
56
+ "ethers": "~6.17.0",
57
+ "hash-wasm": "~4.12.0",
58
+ "idb": "~8.0.3",
59
+ "observable-fns": "~0.6.1",
49
60
  "typescript": "~6.0.3",
61
+ "webextension-polyfill": "~0.12.0",
50
62
  "zod": "~4.4.3"
51
63
  },
52
64
  "peerDependencies": {
53
65
  "@ariestools/sdk": "^8.0.2",
66
+ "@ariestools/threads": "^8.0.2",
67
+ "@bitauth/libauth": "^3.0.0",
68
+ "@metamask/providers": "^22.1.1",
69
+ "@noble/post-quantum": "^0.6.1",
54
70
  "@opentelemetry/api": "^1.9.1",
55
71
  "@opentelemetry/sdk-trace-base": "^2.9.0",
56
72
  "@scure/base": "^2.2.0",
73
+ "@scure/bip39": "^2.2.0",
74
+ "ajv": "^8.20.0",
57
75
  "async-mutex": "^0.5.0",
76
+ "debug": "^4.4.3",
77
+ "ethers": "^6.17.0",
78
+ "hash-wasm": "^4.12.0",
79
+ "idb": "^8.0.3",
80
+ "observable-fns": "^0.6.1",
81
+ "webextension-polyfill": "^0.12.0",
58
82
  "zod": "^4.4.3"
59
83
  },
60
84
  "engines": {
@@ -62,5 +86,6 @@
62
86
  },
63
87
  "publishConfig": {
64
88
  "access": "public"
65
- }
89
+ },
90
+ "deprecated": "Use @xyo-network/sdk-protocol/key-model instead. Replace @xyo-network/key-model with @xyo-network/sdk-protocol/key-model. This package is a compatibility shim only and will not receive further updates."
66
91
  }
@@ -1,10 +0,0 @@
1
- import type { EllipticKeyInstance } from './EllipticKey.ts';
2
- export interface AddressValueInstance extends EllipticKeyInstance {
3
- }
4
- export interface AddressValueStatic {
5
- new (address: ArrayBuffer): AddressValueInstance;
6
- addressFromAddressOrPublicKey(bytes: ArrayBufferLike): ArrayBufferLike;
7
- addressFromPublicKey(key: ArrayBufferLike): ArrayBufferLike;
8
- isAddress(value: unknown): boolean;
9
- }
10
- //# sourceMappingURL=AddressValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddressValue.d.ts","sourceRoot":"","sources":["../../../src/Key/AddressValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG;AAEpE,MAAM,WAAW,kBAAkB;IACjC,KAAK,OAAO,EAAE,WAAW,GAAG,oBAAoB,CAAA;IAChD,6BAA6B,CAAC,KAAK,EAAE,eAAe,GAAG,eAAe,CAAA;IACtE,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAA;IAC3D,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;CACnC"}
@@ -1,4 +0,0 @@
1
- import type { DataInstance } from '@xyo-network/data';
2
- export interface EllipticKeyInstance extends DataInstance {
3
- }
4
- //# sourceMappingURL=EllipticKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EllipticKey.d.ts","sourceRoot":"","sources":["../../../src/Key/EllipticKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG"}
@@ -1,15 +0,0 @@
1
- import type { EllipticKeyInstance } from './EllipticKey.ts';
2
- import type { PublicKeyInstance } from './PublicKey.ts';
3
- export interface PrivateKeyConfig {
4
- privateKeyData?: ArrayBufferLike;
5
- }
6
- export interface PrivateKeyInstance extends EllipticKeyInstance {
7
- public: PublicKeyInstance;
8
- sign: (hash: ArrayBufferLike) => ArrayBufferLike | Promise<ArrayBufferLike>;
9
- verify: (msg: ArrayBufferLike, signature: ArrayBufferLike) => boolean | Promise<boolean>;
10
- }
11
- export interface PrivateKeyStatic {
12
- create(value: ArrayBufferLike | bigint): Promise<PrivateKeyInstance>;
13
- isPrivateKey(value: unknown): boolean;
14
- }
15
- //# sourceMappingURL=PrivateKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrivateKey.d.ts","sourceRoot":"","sources":["../../../src/Key/PrivateKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,cAAc,CAAC,EAAE,eAAe,CAAA;CACjC;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,MAAM,EAAE,iBAAiB,CAAA;IACzB,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;IAC3E,MAAM,EAAE,CAAC,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACzF;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACpE,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;CACtC"}
@@ -1,11 +0,0 @@
1
- import type { AddressValueInstance } from './AddressValue.ts';
2
- import type { EllipticKeyInstance } from './EllipticKey.ts';
3
- export interface PublicKeyInstance extends EllipticKeyInstance {
4
- get address(): AddressValueInstance;
5
- verify(msg: ArrayBufferLike, signature: ArrayBufferLike): boolean | Promise<boolean>;
6
- }
7
- export interface PublicKeyStatic {
8
- create(bytes: ArrayBufferLike): Promise<PublicKeyInstance>;
9
- isPublicKey(value: unknown): boolean;
10
- }
11
- //# sourceMappingURL=PublicKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicKey.d.ts","sourceRoot":"","sources":["../../../src/Key/PublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,IAAI,OAAO,IAAI,oBAAoB,CAAA;IACnC,MAAM,CAAC,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACrF;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAC1D,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;CACrC"}
@@ -1,4 +0,0 @@
1
- export * from './AddressValue.ts';
2
- export * from './PrivateKey.ts';
3
- export * from './PublicKey.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Key/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA"}