Skip to content

Commit 9cf4cf2

Browse files
committed
docs: add warning
1 parent c54471f commit 9cf4cf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/proof-system/verification-key.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const RAW_VERIFICATION_KEY = {
3838

3939
/**
4040
* Validates a VerificationKey by checking its hash against the hash computed from its data in-circuit.
41+
*
42+
* Warning: This function is not meant to be used in provable code.
4143
*
4244
* @param vk - The verification key to validate
4345
* @returns Promise<boolean> - true if the verification key is valid, false otherwise

0 commit comments

Comments
 (0)