Skip to content

Commit 04488d9

Browse files
committed
fixup! feat(core/prodtest): implement tropic prodtest
1 parent 6ce04c4 commit 04488d9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

core/embed/projects/prodtest/cmd/prodtest_tropic.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -861,16 +861,19 @@ static void prodtest_tropic_pair(cli_t* cli) {
861861
0x05, 0xe8, 0xa2, 0x2e, 0xf7, 0x21, 0x38, 0x98, 0x28, 0x2b, 0xa9,
862862
0x43, 0x12, 0xf3, 0x13, 0xdf, 0x2d, 0xce, 0x8d, 0x41, 0x64};
863863
#else
864+
#ifdef ABAB
865+
// Testing keys (used in TROPIC01-P2S-P001)
864866
curve25519_key factory_private = {
865-
// Testing keys (used in TROPIC01-P2S-P001)
866867
0xd0, 0x99, 0x92, 0xb1, 0xf1, 0x7a, 0xbc, 0x4d, 0xb9, 0x37, 0x17,
867868
0x68, 0xa2, 0x7d, 0xa0, 0x5b, 0x18, 0xfa, 0xb8, 0x56, 0x13, 0xa7,
868869
0x84, 0x2c, 0xa6, 0x4c, 0x79, 0x10, 0xf2, 0x2e, 0x71, 0x6b};
870+
#else
869871
// Production keys
870-
// curve25519_key factory_private = {
871-
// 0x28, 0x3f, 0x5a, 0x0f, 0xfc, 0x41, 0xcf, 0x50, 0x98, 0xa8, 0xe1,
872-
// 0x7d, 0xb6, 0x37, 0x2c, 0x3c, 0xaa, 0xd1, 0xee, 0xee, 0xdf, 0x0f,
873-
// 0x75, 0xbc, 0x3f, 0xbf, 0xcd, 0x9c, 0xab, 0x3d, 0xe9, 0x72};
872+
curve25519_key factory_private = {
873+
0x28, 0x3f, 0x5a, 0x0f, 0xfc, 0x41, 0xcf, 0x50, 0x98, 0xa8, 0xe1,
874+
0x7d, 0xb6, 0x37, 0x2c, 0x3c, 0xaa, 0xd1, 0xee, 0xee, 0xdf, 0x0f,
875+
0x75, 0xbc, 0x3f, 0xbf, 0xcd, 0x9c, 0xab, 0x3d, 0xe9, 0x72};
876+
#endif
874877
#endif
875878
curve25519_key factory_public = {0};
876879
curve25519_scalarmult_basepoint(factory_public, factory_private);

0 commit comments

Comments
 (0)