@xyo-network/boundwitness-validator 2.72.9 → 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.
@@ -1,6 +1,7 @@
1
1
  import { BoundWitness } from '@xyo-network/boundwitness-model';
2
2
  import { PayloadValidator } from '@xyo-network/payload-validator';
3
- export declare class BoundWitnessValidator<T extends BoundWitness<{
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
- //# sourceMappingURL=Validator.d.ts.map
20
+
21
+ export { BoundWitnessValidator };
@@ -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 };