diff --git a/.gitignore b/.gitignore index 82f9275..c89b670 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,6 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +# tmp folders +tmp/ diff --git a/README.md b/README.md index 2dde992..d202dae 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,9 @@ Lucid Loand Machine(LLM) : LLM and zk powered loan app 3. zkemail ## architecture + + +### notes +use raw email and make zkemail skill +which is basically RSA but formatted for email check DKIM +check if pdf if signed or not diff --git a/download_verify_email.py b/download_verify_email.py index 20bbbe7..4f86dff 100644 --- a/download_verify_email.py +++ b/download_verify_email.py @@ -58,5 +58,5 @@ def verify_bank_pdf(pdf_url): return {"success": False, "message": f"An error occurred: {str(e)}"} # Example usage -# result = verify_bank_pdf("https://example.com/bank_statement.pdf") -# print(result) \ No newline at end of file +result = verify_bank_pdf("http://127.0.0.1:5500/bank-statement-1.pdf") +print(result) \ No newline at end of file diff --git a/extract_pdf_skill.py b/extract_pdf_skill.py index c518e9a..9d76547 100644 --- a/extract_pdf_skill.py +++ b/extract_pdf_skill.py @@ -9,7 +9,7 @@ def extract_text_from_pdf(pdf_file): text += reader.pages[page].extract_text() return text -text = extract_text_from_pdf("bank-statement.pdf") +text = extract_text_from_pdf("bank-statement-1.pdf") print("text : ", text) # below does not work