MCPcopy Create free account
hub / github.com/EasyIME/PIME / validate

Method validate

python/python3/tornado/test/web_test.py:2627–2630  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

2625 sig = "3d4e60b996ff9c5d5788e333a0cba6f238a22c6c0f94788870e1a9ecd482e152"
2626
2627 def validate(prefix):
2628 return b"value" == decode_signed_value(
2629 SignedValueTest.SECRET, "key", prefix + sig, clock=self.present
2630 )
2631
2632 self.assertTrue(validate("2|1:0|10:1300000000|3:key|8:dmFsdWU=|"))
2633 # Change key version

Callers

nothing calls this directly

Calls 1

decode_signed_valueFunction · 0.90

Tested by

no test coverage detected