Skip to content

Commit 6a0c1f8

Browse files
authored
Merge pull request #108 from ethereum-attestation-service/verify
Add schema verification function
2 parents eba7e2a + d07dfd9 commit 6a0c1f8

File tree

7 files changed

+122
-31
lines changed

7 files changed

+122
-31
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.5.0
4+
5+
- Add schema verification function
6+
- Fix handling of schemas with "ipfsHash" variables
7+
38
## 2.4.1
49

510
- Export Private Data types

dist/schema-encoder.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export declare class SchemaEncoder {
1818
constructor(schema: string);
1919
encodeData(params: SchemaItem[]): string;
2020
decodeData(data: string): SchemaDecodedItem[];
21+
static isSchemaValid(schema: string): boolean;
2122
isEncodedDataValid(data: string): boolean;
2223
static isCID(cid: string): boolean;
2324
static encodeQmHash(hash: string): string;

dist/schema-encoder.js

Lines changed: 24 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)