mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Add SeedQR encoding and test
This commit is contained in:
15
src/tests/test_seedqr_encoding.py
Normal file
15
src/tests/test_seedqr_encoding.py
Normal 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
|
Reference in New Issue
Block a user