diff --git a/.sample-env b/.sample-env deleted file mode 100644 index f2f4dd9..0000000 --- a/.sample-env +++ /dev/null @@ -1,34 +0,0 @@ -# Application Parameters -RUNTYPE=debug -SERVER=0.0.0.0 -HTTP_PORT=9080 -GRPC_PORT=9090 -REGION=EU01 -MASTERNODE_URL=https://dev.gateway.erebrus.io - -DOMAIN=http://ip_addr:9080 -HOST_IP=ip_addr -WG_ENDPOINT_HOST=ip_addr - -# Wireguard Specifications -WG_CONF_DIR=/etc/wireguard -WG_CLIENTS_DIR=/etc/wireguard/clients -WG_INTERFACE_NAME=wg0.conf -WG_ENDPOINT_PORT=51820 -WG_IPv4_SUBNET=10.0.0.1/24 -WG_IPv6_SUBNET=fd9f:0000::10:0:0:1/64 -WG_DNS=1.1.1.1 -WG_ALLOWED_IP_1=0.0.0.0/0 -WG_ALLOWED_IP_2=::/0 -WG_PRE_UP=echo WireGuard PreUp -WG_POST_UP=iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE -WG_PRE_DOWN=echo WireGuard PreDown -WG_POST_DOWN=iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE -PASETO_EXPIRATION_IN_HOURS=168 -AUTH_EULA=I Accept the Erebrus Terms of Service https://erebrus.io/terms.html for accessing the application. Challenge ID: -SIGNED_BY=Erebrus -FOOTER=Erebrus 2024 -MASTERNODE_WALLET=0x0 -GATEWAY_DOMAIN=https://dev.gateway.erebrus.io -LOAD_CONFIG_FILE=false -MASTERNODE_PEERID=/ip4/35.239.34.5/tcp/9001/p2p/12D3KooWH6NjtNwQ3QRELdjqTce38marCzXkA7hHxnuVmJwc8oJA diff --git a/core/suiwallet.go b/core/suiwallet.go index 004f27b..0bc6c3b 100644 --- a/core/suiwallet.go +++ b/core/suiwallet.go @@ -56,4 +56,5 @@ func GenerateWalletAddress() { // Assign the wallet address to the global variable WalletAddressSui = walletAddress + log.Println("the final ", WalletAddressSui) } diff --git a/util/meumonicsWalletAddr/meumonicWalletAddr.go b/util/meumonicsWalletAddr/meumonicWalletAddr.go deleted file mode 100644 index a88f47e..0000000 --- a/util/meumonicsWalletAddr/meumonicWalletAddr.go +++ /dev/null @@ -1,53 +0,0 @@ -package meumonicswalletaddr - -import ( - "crypto/ed25519" - "crypto/sha256" - "encoding/hex" - "fmt" - "log" - - "github.com/tyler-smith/go-bip32" - "github.com/tyler-smith/go-bip39" -) - -func Meumonicswalletaddr() { - // Generate a mnemonic - entropy, err := bip39.NewEntropy(128) - if err != nil { - log.Fatal(err) - } - - mnemonic, err := bip39.NewMnemonic(entropy) - if err != nil { - log.Fatal(err) - } - fmt.Println("Mnemonic:", mnemonic) - - // Derive a seed from the mnemonic - seed := bip39.NewSeed(mnemonic, "") - - // Generate a master key using BIP32 - masterKey, err := bip32.NewMasterKey(seed) - if err != nil { - log.Fatal(err) - } - - // Derive a child key - childKey, err := masterKey.NewChildKey(bip32.FirstHardenedChild) - if err != nil { - log.Fatal(err) - } - - // Generate ED25519 keys from the child key - privateKey := ed25519.NewKeyFromSeed(childKey.Key) - publicKey := privateKey.Public().(ed25519.PublicKey) - - fmt.Println("Private Key:", hex.EncodeToString(privateKey)) - fmt.Println("Public Key:", hex.EncodeToString(publicKey)) - - // Generate wallet address - hash := sha256.Sum256(publicKey) - address := hex.EncodeToString(hash[:]) - fmt.Println("Wallet Address:", address) -}