This page contains the AI prompt used to generate the LanaCoin wallet generator code.
AI Prompt for Generating Code
"You are an expert blockchain developer. Your task is to generate a client-side JavaScript code that accurately creates a valid LanaCoin Private Key and Wallet ID (Address) using the correct cryptographic standards. The generated code must ensure the following:"
🔹 Private Key Standards
- The private key must be a 256-bit random number (32 bytes), generated securely using a cryptographic random number generator.
- The private key must be encoded in Wallet Import Format (WIF) with the following rules:
- Prefix: 0xb0 (176 in decimal)
- Checksum: Double SHA-256, first 4 bytes
- Final Encoding: Base58Check
- Ensures the WIF starts with 6
🔹 Public Key Standards
- The public key must be derived using secp256k1 Elliptic Curve Cryptography (ECC)
- The public key must be in uncompressed format
- The public key must start with 0x04 (indicating an uncompressed public key)
🔹 Wallet ID (LanaCoin Address) Standards
- The public key must be hashed using:
- LanaCoin Address Prefix: 0x30 (48 in decimal)
- Checksum: Double SHA-256, first 4 bytes
- Final Encoding: Base58Check
- Ensures the address starts with L
🔹 Additional Requirements
- The script must be entirely client-side and work offline, without dependencies.
- Must not use BitcoinJS or any external cryptographic libraries, relying only on native JavaScript and Web Crypto API.
- The script must generate both the Private Key (WIF) and Wallet ID (Address), ensuring they are cryptographically linked and valid.
🔹 Expected Example Output
Private Key (WIF): 6vdHQgXZ8S7eArxbzDNVgL2rbixtjzCkFWWbrMm545R5f8s4C59
LanaCoin Address: LU7nJCkKV6jJK4NdmsC3xuPYEr4TTxd7x9