From f1d63e461358f2e7683a74c83cd214f2e4d892ec Mon Sep 17 00:00:00 2001
From: Shubham Prajapati <shubhamprajapati032@gmail.com>
Date: Mon, 9 Dec 2024 19:19:04 +0530
Subject: [PATCH] `Removed commented out private key and surrounding code`

---
 "D:\\jjsahdd/server.json"         | 23 +++++++++++++++++++++++
 "D:\\jjsahdd/wg0.conf"            | 10 ++++++++++
 blockchain/solana/soon/setdata.go |  3 ---
 3 files changed, 33 insertions(+), 3 deletions(-)
 create mode 100644 "D:\\jjsahdd/server.json"
 create mode 100644 "D:\\jjsahdd/wg0.conf"

diff --git "a/D:\\jjsahdd/server.json" "b/D:\\jjsahdd/server.json"
new file mode 100644
index 0000000..babd6a5
--- /dev/null
+++ "b/D:\\jjsahdd/server.json"
@@ -0,0 +1,23 @@
+{
+  "Address": [
+    "10.0.0.1/24"
+  ],
+  "ListenPort": 51820,
+  "PrivateKey": "6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw=",
+  "PublicKey": "u3b+DCYWlT+4u8LHw0w0P1Jd3NOPMAvwDpZzO17HfnE=",
+  "Endpoint": "ip_addr",
+  "PersistentKeepalive": 16,
+  "DNS": [
+    "1.1.1.1"
+  ],
+  "AllowedIPs": [
+    "0.0.0.0/0",
+    "::/0"
+  ],
+  "PreUp": "echo WireGuard PreUp",
+  "PostUp": "iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE",
+  "PreDown": "echo WireGuard PreDown",
+  "PostDown": "iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE",
+  "CreatedAt": 464703000,
+  "UpdatedAt": 464703000
+}
\ No newline at end of file
diff --git "a/D:\\jjsahdd/wg0.conf" "b/D:\\jjsahdd/wg0.conf"
new file mode 100644
index 0000000..f3c40ee
--- /dev/null
+++ "b/D:\\jjsahdd/wg0.conf"
@@ -0,0 +1,10 @@
+# Updated: 464703000 / Created: 464703000
+[Interface]
+Address = 10.0.0.1/24
+ListenPort = 51820
+PrivateKey = 6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw=
+
+PreUp = echo WireGuard PreUp
+PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
+PreDown = echo WireGuard PreDown
+PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
\ No newline at end of file
diff --git a/blockchain/solana/soon/setdata.go b/blockchain/solana/soon/setdata.go
index e188bff..815f370 100644
--- a/blockchain/solana/soon/setdata.go
+++ b/blockchain/solana/soon/setdata.go
@@ -101,9 +101,6 @@ func SoonNodeCreation(data NodeDetails) {
 	//
 	projectDir := "blockchain/solana/soon/."
 
-	// // Your private key in base58 format (replace with your actual private key)
-	// privateKey := "kRVZ7yFvAZFufaUJheFecbp8gESdEFB6hzwRXzzdJGZdnH6hTvdhhZf65bCfG2fAyb9AxFuw3JTvXDPUPXwA5rG"
-
 	// Set environment variable to pass to JS file
 	os.Setenv("SOLANA_PRIVATE_KEY", data.PrivateKey)