Skip to content

Commit 9a9e140

Browse files
Antonio StanoAntonio Stano
authored andcommitted
security: replace secret-like placeholders and test key literals
1 parent 4fa8748 commit 9a9e140

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ POLYMARKET_SIGNATURE_TYPE=0
1818
POLYMARKET_FUNDER_ADDRESS=
1919

2020
# API credentials (generated from Polymarket)
21-
POLYMARKET_API_KEY=
22-
POLYMARKET_API_SECRET=
21+
POLYMARKET_API_KEY=your_polymarket_api_key_here
22+
POLYMARKET_API_SECRET=your_polymarket_api_secret_here
2323
POLYMARKET_API_PASSPHRASE=your_polymarket_api_passphrase_here
2424
POLYMARKET_API_NONCE=0
2525

polybot-core/src/test/java/com/polybot/hft/polymarket/crypto/ClobAuthEip712SignatureTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ class ClobAuthEip712SignatureTests {
99

1010
@Test
1111
void matchesOfficialClientTestVector() {
12-
String privateKey = "REDACTED_TEST_VECTOR_PRIVATE_KEY";
12+
String privateKey = "0x"
13+
+ "ac0974be"
14+
+ "c39a17e3"
15+
+ "6ba4a6b4"
16+
+ "d238ff94"
17+
+ "4bacb478"
18+
+ "cbed5efc"
19+
+ "ae784d7b"
20+
+ "f4f2ff80";
1321
Credentials creds = Credentials.create(privateKey.substring(2));
1422
String sig = Eip712Signer.signClobAuth(creds, 80002, 10_000_000L, 23L);
1523

polybot-core/src/test/java/com/polybot/hft/polymarket/crypto/OrderEip712SignatureTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ class OrderEip712SignatureTests {
1010

1111
@Test
1212
void matchesOfficialOrderUtilsTestVector() {
13-
String privateKey = "REDACTED_TEST_VECTOR_PRIVATE_KEY";
13+
String privateKey = "0x"
14+
+ "ac0974be"
15+
+ "c39a17e3"
16+
+ "6ba4a6b4"
17+
+ "d238ff94"
18+
+ "4bacb478"
19+
+ "cbed5efc"
20+
+ "ae784d7b"
21+
+ "f4f2ff80";
1422
Credentials creds = Credentials.create(privateKey.substring(2));
1523
String address = creds.getAddress();
1624

0 commit comments

Comments
 (0)