Skip to content

Commit

Permalink
Merge pull request #108 from ethereum-attestation-service/verify
Browse files Browse the repository at this point in the history
Add schema verification function
  • Loading branch information
lbeder authored Jul 12, 2024
2 parents eba7e2a + d07dfd9 commit 6a0c1f8
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.5.0

- Add schema verification function
- Fix handling of schemas with "ipfsHash" variables

## 2.4.1

- Export Private Data types
Expand Down
1 change: 1 addition & 0 deletions dist/schema-encoder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export declare class SchemaEncoder {
constructor(schema: string);
encodeData(params: SchemaItem[]): string;
decodeData(data: string): SchemaDecodedItem[];
static isSchemaValid(schema: string): boolean;
isEncodedDataValid(data: string): boolean;
static isCID(cid: string): boolean;
static encodeQmHash(hash: string): string;
Expand Down
33 changes: 24 additions & 9 deletions dist/schema-encoder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6a0c1f8

Please sign in to comment.