commit 711accf107f14fa392527dda82e6fc7861855e28
Author: root <root@hub.scroll.pub> Date: 2024-12-28 10:57:02 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..716db72 --- /dev/null +++ b/body.html @@ -0,0 +1,19 @@ +<header> + <h1>BitWallet</h1> + <p>Securely generate your Bitcoin wallet address</p> +</header> +<main> + <section class="wallet-form"> + <label for="passphrase">Enter your passphrase:</label> + <textarea id="passphrase" placeholder="Type your secure passphrase here..." rows="4"></textarea> + <button id="generateBtn">Generate Wallet Address</button> + </section> + <section class="wallet-output"> + <label for="walletAddress">Your Bitcoin Wallet Address:</label> + <input type="text" id="walletAddress" readonly> + <button id="copyBtn">Copy Address</button> + </section> +</main> +<footer> + <p>Your security is our priority. All wallet generation happens locally in your browser.</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..90aec99 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://bitwallet.scroll.pub +metaTags +editButton /edit.html +title BitWallet - Create Your Bitcoin Wallet +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..d79cfd6 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "5fca1f6f-0f5e-47ee-bdfd-a266381d26f0", + "object": "chat.completion", + "created": 1735383406, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nbitwallet.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://bitwallet.scroll.pub\nmetaTags\neditButton /edit.html\ntitle BitWallet - Create Your Bitcoin Wallet\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>BitWallet</h1>\n <p>Securely generate your Bitcoin wallet address</p>\n</header>\n<main>\n <section class=\"wallet-form\">\n <label for=\"passphrase\">Enter your passphrase:</label>\n <textarea id=\"passphrase\" placeholder=\"Type your secure passphrase here...\" rows=\"4\"></textarea>\n <button id=\"generateBtn\">Generate Wallet Address</button>\n </section>\n <section class=\"wallet-output\">\n <label for=\"walletAddress\">Your Bitcoin Wallet Address:</label>\n <input type=\"text\" id=\"walletAddress\" readonly>\n <button id=\"copyBtn\">Copy Address</button>\n </section>\n</main>\n<footer>\n <p>Your security is our priority. All wallet generation happens locally in your browser.</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #388E3C;\n --background-color: #F5F5F5;\n --text-color: #333;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n margin-bottom: 2rem;\n}\n\nmain {\n max-width: 800px;\n margin: 0 auto;\n padding: 1rem;\n flex: 1;\n}\n\n.wallet-form, .wallet-output {\n background: white;\n padding: 2rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n margin-bottom: 2rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n}\n\ntextarea, input[type=\"text\"] {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n margin-bottom: 1rem;\n font-size: 1rem;\n resize: vertical;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.8rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n font-size: 1rem;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n#walletAddress {\n background-color: #f9f9f9;\n cursor: not-allowed;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: auto;\n}\n\n@media (max-width: 768px) {\n main {\n padding: 0.5rem;\n }\n \n .wallet-form, .wallet-output {\n padding: 1rem;\n }\n}\n---script.js---\nfunction generateWalletAddress(passphrase) {\n // Simple hash function for demonstration purposes\n function simpleHash(str) {\n let hash = 0;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash |= 0; // Convert to 32bit integer\n }\n return hash.toString(16);\n }\n\n // Generate a Bitcoin-like address (this is a simplified example)\n const hash = simpleHash(passphrase);\n return `1${hash.slice(0, 33)}`.toUpperCase();\n}\n\ndocument.getElementById('generateBtn').addEventListener('click', () => {\n const passphrase = document.getElementById('passphrase').value.trim();\n if (passphrase.length < 8) {\n alert('Please enter a passphrase with at least 8 characters');\n return;\n }\n\n const walletAddress = generateWalletAddress(passphrase);\n document.getElementById('walletAddress').value = walletAddress;\n});\n\ndocument.getElementById('copyBtn').addEventListener('click', () => {\n const walletAddress = document.getElementById('walletAddress');\n if (walletAddress.value) {\n walletAddress.select();\n document.execCommand('copy');\n alert('Wallet address copied to clipboard!');\n } else {\n alert('No wallet address to copy');\n }\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 247, + "completion_tokens": 1113, + "total_tokens": 1360, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 247 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..bd42429 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# bitwallet.scroll.pub +Website generated by DeepSeek from prompt: a web create bitcoin wallet, input passphrase, output wallet address. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..00e205c --- /dev/null +++ b/script.js @@ -0,0 +1,38 @@ +function generateWalletAddress(passphrase) { + // Simple hash function for demonstration purposes + function simpleHash(str) { + let hash = 0; + for (let i = 0; i < str.length; i++) { + const char = str.charCodeAt(i); + hash = (hash << 5) - hash + char; + hash |= 0; // Convert to 32bit integer + } + return hash.toString(16); + } + + // Generate a Bitcoin-like address (this is a simplified example) + const hash = simpleHash(passphrase); + return `1${hash.slice(0, 33)}`.toUpperCase(); +} + +document.getElementById('generateBtn').addEventListener('click', () => { + const passphrase = document.getElementById('passphrase').value.trim(); + if (passphrase.length < 8) { + alert('Please enter a passphrase with at least 8 characters'); + return; + } + + const walletAddress = generateWalletAddress(passphrase); + document.getElementById('walletAddress').value = walletAddress; +}); + +document.getElementById('copyBtn').addEventListener('click', () => { + const walletAddress = document.getElementById('walletAddress'); + if (walletAddress.value) { + walletAddress.select(); + document.execCommand('copy'); + alert('Wallet address copied to clipboard!'); + } else { + alert('No wallet address to copy'); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..108db93 --- /dev/null +++ b/style.css @@ -0,0 +1,97 @@ +:root { + --primary-color: #4CAF50; + --secondary-color: #388E3C; + --background-color: #F5F5F5; + --text-color: #333; + --border-radius: 8px; + --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); + min-height: 100vh; + display: flex; + flex-direction: column; +} + +header { + background-color: var(--primary-color); + color: white; + padding: 2rem; + text-align: center; + margin-bottom: 2rem; +} + +main { + max-width: 800px; + margin: 0 auto; + padding: 1rem; + flex: 1; +} + +.wallet-form, .wallet-output { + background: white; + padding: 2rem; + border-radius: var(--border-radius); + box-shadow: var(--box-shadow); + margin-bottom: 2rem; +} + +label { + display: block; + margin-bottom: 0.5rem; + font-weight: 600; +} + +textarea, input[type="text"] { + width: 100%; + padding: 0.8rem; + border: 1px solid #ddd; + border-radius: var(--border-radius); + margin-bottom: 1rem; + font-size: 1rem; + resize: vertical; +} + +button { + background-color: var(--primary-color); + color: white; + border: none; + padding: 0.8rem 1.5rem; + border-radius: var(--border-radius); + cursor: pointer; + font-size: 1rem; + transition: background-color 0.3s ease; +} + +button:hover { + background-color: var(--secondary-color); +} + +#walletAddress { + background-color: #f9f9f9; + cursor: not-allowed; +} + +footer { + text-align: center; + padding: 1rem; + background-color: var(--primary-color); + color: white; + margin-top: auto; +} + +@media (max-width: 768px) { + main { + padding: 0.5rem; + } + + .wallet-form, .wallet-output { + padding: 1rem; + } +} \ No newline at end of file