@xyo-network/key-model 3.9.35 → 3.9.36
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/package.json +7 -7
- package/dist/neutral/Key/AddressValue.d.ts +0 -10
- package/dist/neutral/Key/AddressValue.d.ts.map +0 -1
- package/dist/neutral/Key/EllipticKey.d.ts +0 -4
- package/dist/neutral/Key/EllipticKey.d.ts.map +0 -1
- package/dist/neutral/Key/PrivateKey.d.ts +0 -15
- package/dist/neutral/Key/PrivateKey.d.ts.map +0 -1
- package/dist/neutral/Key/PublicKey.d.ts +0 -11
- package/dist/neutral/Key/PublicKey.d.ts.map +0 -1
- package/dist/neutral/Key/index.d.ts +0 -4
- package/dist/neutral/Key/index.d.ts.map +0 -1
- package/dist/neutral/index.d.ts +0 -2
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/node/Key/AddressValue.d.ts +0 -10
- package/dist/node/Key/AddressValue.d.ts.map +0 -1
- package/dist/node/Key/EllipticKey.d.ts +0 -4
- package/dist/node/Key/EllipticKey.d.ts.map +0 -1
- package/dist/node/Key/PrivateKey.d.ts +0 -15
- package/dist/node/Key/PrivateKey.d.ts.map +0 -1
- package/dist/node/Key/PublicKey.d.ts +0 -11
- package/dist/node/Key/PublicKey.d.ts.map +0 -1
- package/dist/node/Key/index.d.ts +0 -4
- package/dist/node/Key/index.d.ts.map +0 -1
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.d.ts.map +0 -1
- /package/dist/{browser → types}/Key/AddressValue.d.ts +0 -0
- /package/dist/{browser → types}/Key/AddressValue.d.ts.map +0 -0
- /package/dist/{browser → types}/Key/EllipticKey.d.ts +0 -0
- /package/dist/{browser → types}/Key/EllipticKey.d.ts.map +0 -0
- /package/dist/{browser → types}/Key/PrivateKey.d.ts +0 -0
- /package/dist/{browser → types}/Key/PrivateKey.d.ts.map +0 -0
- /package/dist/{browser → types}/Key/PublicKey.d.ts +0 -0
- /package/dist/{browser → types}/Key/PublicKey.d.ts.map +0 -0
- /package/dist/{browser → types}/Key/index.d.ts +0 -0
- /package/dist/{browser → types}/Key/index.d.ts.map +0 -0
- /package/dist/{browser → types}/index.d.ts +0 -0
- /package/dist/{browser → types}/index.d.ts.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/key-model",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.36",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/data": "^3.9.
|
|
32
|
+
"@xyo-network/data": "^3.9.36"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/node": "^22.13.
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
37
|
-
"@xylabs/tsconfig": "^
|
|
35
|
+
"@types/node": "^22.13.10",
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
37
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
38
38
|
"typescript": "^5.8.2"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
@@ -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 +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 +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"}
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -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 +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"}
|
package/dist/node/Key/index.d.ts
DELETED
|
@@ -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"}
|
package/dist/node/index.d.ts
DELETED
package/dist/node/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|