@xyo-network/boundwitness-validator 2.72.8 → 2.73.0
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/{types/Validator.d.ts → index.d.mts} +4 -2
- package/dist/index.d.ts +21 -0
- package/dist/index.js +7352 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +7325 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +33 -20
- package/src/Validator.ts +1 -1
- package/tsup.config.ts +16 -0
- package/dist/cjs/Validator.js +0 -115
- package/dist/cjs/Validator.js.map +0 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/index.js.map +0 -1
- package/dist/docs.json +0 -1667
- package/dist/esm/Validator.js +0 -101
- package/dist/esm/Validator.js.map +0 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/types/Validator.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
2
|
import { PayloadValidator } from '@xyo-network/payload-validator';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
declare class BoundWitnessValidator<T extends BoundWitness<{
|
|
4
5
|
schema: string;
|
|
5
6
|
}> = BoundWitness> extends PayloadValidator<T> {
|
|
6
7
|
protected get expectedSchema(): string;
|
|
@@ -16,4 +17,5 @@ export declare class BoundWitnessValidator<T extends BoundWitness<{
|
|
|
16
17
|
validatePayloadHashesLength(): Error[];
|
|
17
18
|
private validateArrayLength;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
export { BoundWitnessValidator };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
+
import { PayloadValidator } from '@xyo-network/payload-validator';
|
|
3
|
+
|
|
4
|
+
declare class BoundWitnessValidator<T extends BoundWitness<{
|
|
5
|
+
schema: string;
|
|
6
|
+
}> = BoundWitness> extends PayloadValidator<T> {
|
|
7
|
+
protected get expectedSchema(): string;
|
|
8
|
+
static validateSignature(hash: string, address: string, signature?: string): Error[];
|
|
9
|
+
addresses(): Error[];
|
|
10
|
+
addressesUniqueness(): Error[];
|
|
11
|
+
previousHashes(): Error[];
|
|
12
|
+
schema(): Error[];
|
|
13
|
+
schemas(): Error[];
|
|
14
|
+
signatures(): Promise<Error[]>;
|
|
15
|
+
validate(): Promise<Error[]>;
|
|
16
|
+
validateArrayLengths(): Error[];
|
|
17
|
+
validatePayloadHashesLength(): Error[];
|
|
18
|
+
private validateArrayLength;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { BoundWitnessValidator };
|