@xyo-network/signature-payload-plugin 5.3.1 → 5.3.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.
- package/package.json +14 -11
- package/src/Payload.ts +0 -36
- package/src/Schema.ts +0 -4
- package/src/index.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/signature-payload-plugin",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,18 +30,21 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"
|
|
34
|
-
"!**/*.bench.*",
|
|
35
|
-
"!**/*.spec.*",
|
|
36
|
-
"!**/*.test.*"
|
|
33
|
+
"README.md"
|
|
37
34
|
],
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@xyo-network/payload-model": "~5.3.2"
|
|
40
|
-
},
|
|
41
35
|
"devDependencies": {
|
|
42
|
-
"@xylabs/
|
|
43
|
-
"@xylabs/
|
|
44
|
-
"
|
|
36
|
+
"@xylabs/sdk-js": "^5.0.90",
|
|
37
|
+
"@xylabs/ts-scripts-common": "~7.5.10",
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "~7.5.10",
|
|
39
|
+
"@xylabs/tsconfig": "~7.5.10",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.5",
|
|
41
|
+
"typescript": "~5.9.3",
|
|
42
|
+
"zod": "^4.3.6"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@xylabs/sdk-js": "^5",
|
|
46
|
+
"@xyo-network/payload-model": "^5",
|
|
47
|
+
"zod": "^4"
|
|
45
48
|
},
|
|
46
49
|
"publishConfig": {
|
|
47
50
|
"access": "public"
|
package/src/Payload.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import { SignatureSchema } from './Schema.ts'
|
|
5
|
-
|
|
6
|
-
// TODO: Overlap of outputs from:
|
|
7
|
-
// openssl list -digest-algorithms
|
|
8
|
-
// AND
|
|
9
|
-
// inputs to node.js crypto.createHash
|
|
10
|
-
export type Digest = 'sha512' | 'sha3-256'
|
|
11
|
-
|
|
12
|
-
export interface SignatureFields {
|
|
13
|
-
/**
|
|
14
|
-
* The digest algorithm used to create the signature
|
|
15
|
-
*/
|
|
16
|
-
digestAlgorithm: Digest
|
|
17
|
-
/**
|
|
18
|
-
* The signature
|
|
19
|
-
*/
|
|
20
|
-
signature: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A Signature Payload
|
|
25
|
-
*/
|
|
26
|
-
export type Signature = Payload<SignatureFields, SignatureSchema>
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Identity function for determine if an object is a Signature
|
|
30
|
-
*/
|
|
31
|
-
export const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Identity function for determine if an object is a Signature with sources
|
|
35
|
-
*/
|
|
36
|
-
export const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)
|
package/src/Schema.ts
DELETED
package/src/index.ts
DELETED