sign_verify_test.py 371 B

12345678910
  1. import time
  2. from watermark_verify.tools import secret_label_func
  3. from watermark_verify import logger
  4. if __name__ == '__main__':
  5. ts = int(time.time())
  6. secret_label, public_key = secret_label_func.generate_secret_label(str(ts))
  7. verify_result = secret_label_func.verify_secret_label(secret_label, public_key)
  8. logger.debug(f"verify_result: {verify_result}")