@xyo-network/signature-payload-plugin 5.2.4 → 5.3.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/dist/neutral/Schema.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const SignatureSchema: "network.xyo.signing.signature"
|
|
1
|
+
export declare const SignatureSchema: "network.xyo.signing.signature" & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
2
4
|
export type SignatureSchema = typeof SignatureSchema;
|
|
3
5
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;CAAkD,CAAA;AAC9E,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
|
|
5
|
+
import { asSchema } from "@xyo-network/payload-model";
|
|
6
|
+
var SignatureSchema = asSchema("network.xyo.signing.signature", true);
|
|
6
7
|
|
|
7
8
|
// src/Payload.ts
|
|
8
9
|
var isSignature = isPayloadOfSchemaType(SignatureSchema);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const SignatureSchema = asSchema('network.xyo.signing.signature', true)\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AACA,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,gBAAgB;AAElB,IAAM,kBAAkB,SAAS,iCAAiC,IAAI;;;AD4BtE,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/signature-payload-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"!**/*.test.*"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xyo-network/payload-model": "~5.2
|
|
39
|
+
"@xyo-network/payload-model": "~5.3.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@xylabs/ts-scripts-yarn3": "~7.2
|
|
43
|
-
"@xylabs/tsconfig": "~7.2
|
|
42
|
+
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
43
|
+
"@xylabs/tsconfig": "~7.3.2",
|
|
44
44
|
"typescript": "~5.9.3"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|
package/src/Schema.ts
CHANGED