-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,321 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+24.2 MB
packages/snap/files/circuits/credentialAtomicQueryMTPV2/circuit_final.zkey
Binary file not shown.
Binary file added
BIN
+4.94 MB
packages/snap/files/circuits/credentialAtomicQueryMTPV2OnChain/circuit.wasm
Binary file not shown.
Binary file added
BIN
+57.3 MB
packages/snap/files/circuits/credentialAtomicQueryMTPV2OnChain/circuit_final.zkey
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.9 MB
packages/snap/files/circuits/credentialAtomicQuerySigV2/circuit_final.zkey
Binary file not shown.
Binary file added
BIN
+5.01 MB
packages/snap/files/circuits/credentialAtomicQuerySigV2OnChain/circuit.wasm
Binary file not shown.
Binary file added
BIN
+66 MB
packages/snap/files/circuits/credentialAtomicQuerySigV2OnChain/circuit_final.zkey
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
export const readBytesFile = async (path: string) => { | ||
const response = await fetch(path); | ||
return new Uint8Array(await response?.arrayBuffer?.()); | ||
const response = await snap.request({ | ||
method: 'snap_getFile', | ||
params: { | ||
path, | ||
}, | ||
}); | ||
console.log(response); | ||
return response; | ||
}; |
Oops, something went wrong.