Skip to content

Commit 14abc4b

Browse files
committed
Wrap some bytearrays in a class and introduce QuasiProofSpec
Signed-off-by: lovesh <lovesh.bond@gmail.com>
1 parent 1c4329b commit 14abc4b

32 files changed

+1335
-473
lines changed

README.md

Lines changed: 367 additions & 7 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lib": "lib"
2323
},
2424
"dependencies": {
25-
"@docknetwork/crypto-wasm": "file:/home/lovesh/dev/dock/crypto-wasm"
25+
"@docknetwork/crypto-wasm": "0.9.0"
2626
},
2727
"devDependencies": {
2828
"eslint-config-prettier": "^8.3.0",

src/ICompressed.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
export interface ICompressed<UncompressedType> {
1+
/**
2+
* Interface for parameters with elliptic curve points in uncompressed form.
3+
*/
4+
export interface IUncompressed {
25
readonly value: Uint8Array;
3-
4-
decompress(): UncompressedType;
56
}
67

7-
export interface IUncompressed {
8+
/**
9+
* Interface for parameters with elliptic curve points in compressed form.
10+
* They can be converted into uncompressed form. Uncompressed data is larger in byte-size but
11+
* more CPU efficient to work with (in this lib's context)
12+
*/
13+
export interface ICompressed<UncompressedType> {
814
readonly value: Uint8Array;
15+
16+
/**
17+
* Convert the uncompressed
18+
*/
19+
decompress(): UncompressedType;
920
}

0 commit comments

Comments
 (0)