@xyo-network/signature-payload-plugin 3.1.1 → 3.1.2
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.
|
@@ -2,16 +2,34 @@ import type { Payload } from '@xyo-network/payload-model';
|
|
|
2
2
|
import { SignatureSchema } from './Schema.ts';
|
|
3
3
|
export type Digest = 'sha512' | 'sha3-256';
|
|
4
4
|
export interface SignatureFields {
|
|
5
|
+
/**
|
|
6
|
+
* The digest algorithm used to create the signature
|
|
7
|
+
*/
|
|
5
8
|
digestAlgorithm: Digest;
|
|
9
|
+
/**
|
|
10
|
+
* The signature
|
|
11
|
+
*/
|
|
6
12
|
signature: string;
|
|
7
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* A Signature Payload
|
|
16
|
+
*/
|
|
8
17
|
export type Signature = Payload<SignatureFields, SignatureSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for determine if an object is a Signature
|
|
20
|
+
*/
|
|
9
21
|
export declare const isSignature: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
|
|
10
22
|
schema: "network.xyo.signing.signature";
|
|
11
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Identity function for determine if an object is a Signature with sources
|
|
26
|
+
*/
|
|
12
27
|
export declare const isSignatureWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
|
|
13
28
|
schema: "network.xyo.signing.signature";
|
|
14
29
|
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Identity function for determine if an object is a Signature with meta
|
|
32
|
+
*/
|
|
15
33
|
export declare const isSignatureWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
|
|
16
34
|
schema: "network.xyo.signing.signature";
|
|
17
35
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAM7C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1C,MAAM,WAAW,eAAe;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAM7C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,WAAW;;CAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB;;EAA+D,CAAA;AAElG;;GAEG;AACH,eAAO,MAAM,mBAAmB;;EAA4D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,+BAAwC,CAAA;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/signature-payload-plugin",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
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/payload-model": "^3.
|
|
32
|
+
"@xyo-network/payload-model": "^3.5.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^4.
|
|
36
|
-
"@xylabs/tsconfig": "^4.
|
|
37
|
-
"typescript": "^5.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.4",
|
|
36
|
+
"@xylabs/tsconfig": "^4.2.4",
|
|
37
|
+
"typescript": "^5.7.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|