pyvckit/verify_vc.py

23 lines
483 B
Python

import argparse
from verify import verify_vc
def get_credential(path_credential):
with open(path_credential, "r") as f:
vc = f.read()
return vc
def main():
parser=argparse.ArgumentParser(description='Verify a credential')
parser.add_argument("credential_path")
args=parser.parse_args()
if args.credential_path:
credential = get_credential(args.credential_path)
print(verify_vc(credential))
if __name__ == "__main__":
main()