Skip to content

Commit 4a29495

Browse files
committed
test(core): evolu keys generation
[no changelog]
1 parent 42900d7 commit 4a29495

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file is part of the Trezor project.
2+
#
3+
# Copyright (C) 2012-2025 SatoshiLabs and contributors
4+
#
5+
# This library is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU Lesser General Public License version 3
7+
# as published by the Free Software Foundation.
8+
#
9+
# This library is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Lesser General Public License for more details.
13+
#
14+
# You should have received a copy of the License along with this library.
15+
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
16+
17+
import pytest
18+
19+
from trezorlib import evolu
20+
from trezorlib.debuglink import SessionDebugWrapper as Session
21+
22+
pytestmark = [pytest.mark.altcoin, pytest.mark.models("core")]
23+
24+
EXPECTED_SLIP21_NODE_DATA = "a81aaf51997b6ddfa33d11c038d6aba5f711754a2c823823ff8b777825cdbb32b0e71c301fa381c75081bd3bcc134b63306aa6fc9a9f52d835ad4df8cd507be6"
25+
26+
27+
def test_get_evolu_keys(session: Session):
28+
"""Test Evolu key derivation against known test vectors."""
29+
res = evolu.get_evolu_node(session)
30+
31+
assert res.data.hex() == EXPECTED_SLIP21_NODE_DATA

0 commit comments

Comments
 (0)