Add SeedQR encoding and test

This commit is contained in:
thePR0M3TH3AN
2025-07-05 07:39:22 -04:00
parent afa411872b
commit d4221bcaff
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).resolve().parents[1]))
from password_manager.seedqr import encode_seedqr
def test_seedqr_standard_example():
phrase = (
"vacuum bridge buddy supreme exclude milk consider tail "
"expand wasp pattern nuclear"
)
expected = "192402220235174306311124037817700641198012901210"
assert encode_seedqr(phrase) == expected