Files
bip39/src/index-zh.html
2024-10-23 10:48:35 +08:00

1486 lines
86 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html class="antialiased">
<head lang="en">
<meta charset="utf-8" />
<title>OneKey BIP39 助记词</title>
<meta
content="用于生成确定性密钥的助记词"
name="description"
/>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="比特币 助记词 转换器" name="description" />
<meta content="OneKey 团队" name="author" />
<link
type="image/x-icon"
rel="icon"
href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII="
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00b812">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<!-- Container -->
<div class="ok-container">
<header class="ok-header">
<div>
<a
href="https://onekey.so/"
class="inline-flex md:ml-0.5"
>
<img
class="w-10 h-10"
src="/logo_green_vector.png"
alt="Logo"
>
</a>
</div>
<div>
<div class="dropdown js-dropdown">
<button id="languagePopoverBtn" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-full shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-green-600" type="button" aria-expanded="false" aria-haspopup="true">
中文
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5 ml-2 -mr-1" aria-hidden="true"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
<div id="languagePopoverContent" class="dropdown__menu min-w-[120px]">
<a class="block p-2 text-sm text-left text-gray-700 transition rounded-md cursor-pointer hover:bg-gray-100 hover:text-gray-900">
中文
</a>
<a class="block p-2 text-sm text-left text-gray-700 transition rounded-md cursor-pointer hover:bg-gray-100 hover:text-gray-900" href="./index.html">
English
</a>
</div>
</div>
</div>
</header>
<!-- Title -->
<div class="pb-4 mb-2 border-b border-gray-200 md:pb-8 md:mb-8 md:flex md:items-baseline">
<h1 class="mb-2 text-3xl font-bold md:text-4xl md:mb-0">助记词转换器</h1>
<label class="flex items-center flex-shrink-0 p-2 -ml-2 transition rounded-md cursor-pointer md:ml-auto md:-mr-2 hover:bg-gray-100">
<input type="checkbox" class="w-5 h-5 privacy-screen-toggle ok-checkbox" />
<span class="font-medium text-gray-700">隐藏私密信息</span>
</label>
</div>
<!-- Content -->
<div class="-mx-4 md:grid md:gap-4 md:grid-cols-12 md:mx-0">
<!-- Navigation -->
<div class="sticky top-0 self-start px-1 py-2 overflow-auto bg-white bg-opacity-70 backdrop-filter backdrop-saturate-150 backdrop-blur-lg md:px-0 md:py-0 md:col-span-4 md:top-8 lg:col-span-3">
<nav class="md:max-w-[240px] mr-8 space-x-2 md:space-x-0 md:space-y-2 text-gray-600 flex md:flex-col" aria-label="Sidebar">
<!-- Current: "bg-gray-100 text-gray-900", Default: "text-gray-600 hover:bg-gray-50 hover:text-gray-900" -->
<a href="#section-1" class="flex items-center px-3 py-2 text-sm font-medium rounded-md js-anchor-link hover:bg-gray-50 hover:text-gray-900">
<svg viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="hidden w-5 h-5 mr-3 text-gray-400 md:block">
<g transform="matrix(1,0,0,1,0,0)"><path d="M23.5,0h-1a.5.5,0,0,0-.431.247l-4.16,7.072a.5.5,0,0,0,.077.607l3.921,3.921a.5.5,0,0,0,.666.036l1.239-.992A.5.5,0,0,0,24,10.5V.5A.5.5,0,0,0,23.5,0Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M16.868,8.929a.5.5,0,0,0-.491-.127l-2.9.827a2.484,2.484,0,0,0-1.717,1.717L9.488,19.312a.069.069,0,0,0,.116.068l5.63-5.631A.75.75,0,1,1,16.3,14.81l-5.632,5.632a.062.062,0,0,0-.01.077.064.064,0,0,0,.072.028l7.965-2.276a2.488,2.488,0,0,0,1.72-1.726l.778-2.945a.5.5,0,0,0-.13-.481Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M8.3,21.283A3.464,3.464,0,0,1,6,22a3.175,3.175,0,0,1-2.644-1.045c-.636-.965-.441-2.714.564-5.059,2.017-4.709,4.134-8.436,2.8-11.62C5.969,2.5,4.264,1.156,1.351.065a1,1,0,1,0-.7,1.871C2.978,2.81,4.36,3.828,4.872,5.05c.955,2.277-.9,5.646-2.791,10.059-1.3,3.036-1.434,5.373-.4,6.947A5.057,5.057,0,0,0,6,24,5.3,5.3,0,0,0,9.7,22.707a.991.991,0,0,0,.006-1.395A1.009,1.009,0,0,0,8.3,21.283Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path></g>
</svg>
<span class="truncate">
助记词
</span>
</a>
<a href="#section-2" class="flex items-center px-3 py-2 text-sm font-medium rounded-md js-anchor-link hover:bg-gray-50 hover:text-gray-900">
<svg viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="hidden w-5 h-5 mr-3 text-gray-400 md:block"><g transform="matrix(1,0,0,1,0,0)"><path d="M10.5,23.02a.98.98,0,0,0-.98-.979H7.562a.98.98,0,1,0,0,1.959H9.521A.98.98,0,0,0,10.5,23.02Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M4.294,21.4a4.434,4.434,0,0,1-1.625-1.736.98.98,0,1,0-1.738.906,6.4,6.4,0,0,0,2.343,2.5.968.968,0,0,0,.509.143A.979.979,0,0,0,4.294,21.4Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M2.115,13.1A6.361,6.361,0,0,0,.408,16.072a.979.979,0,0,0,.711,1.189.945.945,0,0,0,.24.03.98.98,0,0,0,.949-.74A4.4,4.4,0,0,1,3.49,14.492a.98.98,0,1,0-1.375-1.4Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M17.358,13.224a.98.98,0,0,0,0-1.959h-1.47a.98.98,0,0,0,0,1.959Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M22.5,8.74a.979.979,0,0,0-1.342.347,4.383,4.383,0,0,1-1.171,1.307.98.98,0,1,0,1.173,1.57,6.387,6.387,0,0,0,1.688-1.883A.981.981,0,0,0,22.5,8.74Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M23.622,5.807a1.075,1.075,0,0,0-.018-.193,6.362,6.362,0,0,0-1.554-3.06.98.98,0,1,0-1.444,1.324,4.393,4.393,0,0,1,1.075,2.116.981.981,0,0,0,.96.79.9.9,0,0,0,.191-.019A.979.979,0,0,0,23.622,5.807Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M18.823,1.578A.978.978,0,0,0,17.935.516C17.744.5,17.553.49,17.358.49h-.98a.98.98,0,0,0,0,1.959h.98c.136,0,.27.007.4.018.03,0,.06,0,.088,0A.979.979,0,0,0,18.823,1.578Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M8.579,9a.487.487,0,0,0,.452.3h1.225a.245.245,0,0,1,.245.245v9.8a1.469,1.469,0,0,0,2.938,0v-9.8a.245.245,0,0,1,.245-.245h1.225a.49.49,0,0,0,.346-.836L12.316,5.531a.489.489,0,0,0-.692,0L8.685,8.47A.49.49,0,0,0,8.579,9Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M10.011 1.959 A1.959 1.959 0 1 0 13.929 1.959 A1.959 1.959 0 1 0 10.011 1.959 Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M6.582,11.265a.98.98,0,0,0,0,1.959h1.47a.98.98,0,0,0,0-1.959Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path></g></svg>
<span class="truncate">
派生路径
</span>
</a>
<a href="#section-3" class="flex items-center px-3 py-2 text-sm font-medium rounded-md js-anchor-link hover:bg-gray-50 hover:text-gray-900">
<svg viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="hidden w-5 h-5 mr-3 text-gray-400 md:block"><g transform="matrix(1,0,0,1,0,0)"><path d="M21,0H3A3,3,0,0,0,0,3V18a3,3,0,0,0,3,3H9.5a1,1,0,0,0,0-2H3a1,1,0,0,1-1-1V7.5A.5.5,0,0,1,2.5,7h19a.5.5,0,0,1,.5.5V9a1,1,0,0,0,2,0V3A3,3,0,0,0,21,0ZM11,3.5a1,1,0,1,1-1-1A1,1,0,0,1,11,3.5Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,8,3.5Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,5,3.5Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M11.942,9.913a1,1,0,0,0-1.414.03L7.118,13.5a.25.25,0,0,1-.181.077.246.246,0,0,1-.18-.077l-.535-.558a1,1,0,0,0-1.444,1.384l1.438,1.5a1,1,0,0,0,1.443,0l4.313-4.5A1,1,0,0,0,11.942,9.913Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M17.382,16.118a.25.25,0,0,1-.25.063A3.853,3.853,0,0,0,16,16a4,4,0,1,0,4,4,3.841,3.841,0,0,0-.181-1.131.249.249,0,0,1,.063-.25l4.045-4.046A.248.248,0,0,0,24,14.4V12.25a.25.25,0,0,0-.25-.25H21.6a.249.249,0,0,0-.177.073ZM16,21.5A1.5,1.5,0,1,1,17.5,20,1.5,1.5,0,0,1,16,21.5Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path></g></svg>
<span class="truncate">
派生地址
</span>
</a>
<a href="#section-4" class="flex items-center px-3 py-2 text-sm font-medium rounded-md js-anchor-link hover:bg-gray-50 hover:text-gray-900">
<svg viewBox="0 0 24 24" height="24" width="24" fill="currentColor" class="hidden w-5 h-5 mr-3 text-gray-400 md:block" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1,0,0,1,0,0)"><path d="M24,3.517a2.018,2.018,0,0,0-.609-1.441,1.915,1.915,0,0,0-1.438-.56c-.29.008-.58.021-.87.037A.554.554,0,0,1,20.5,1a.5.5,0,0,0-.547-.5,25.167,25.167,0,0,0-4.081.7.5.5,0,0,0-.372.484V8a.5.5,0,0,0,.854.354l1.292-1.293a.5.5,0,0,1,.708,0l1.293,1.293A.5.5,0,0,0,20.5,8V4.065a.5.5,0,0,1,.467-.5c.168-.011.337-.02.51-.029a.5.5,0,0,1,.525.5l-.013,13.5a.5.5,0,0,1-.479.5A22.909,22.909,0,0,0,13.7,19.543a.5.5,0,0,1-.7-.458V6c0-.19.256-.46.753-.752A.5.5,0,0,0,14,4.816V3.688a.5.5,0,0,0-.722-.448,6.686,6.686,0,0,0-.982.585.5.5,0,0,1-.592,0C9.755,2.383,5.889,1.63,2.047,1.516a1.927,1.927,0,0,0-1.438.56A2.018,2.018,0,0,0,0,3.517v14.5a2,2,0,0,0,1.956,2C7.923,20.186,11,21.834,11,22.5a1,1,0,0,0,2,0c0-.666,3.077-2.314,9.044-2.486a2,2,0,0,0,1.956-2ZM2.478,18.033a.5.5,0,0,1-.478-.5l-.012-13.5a.5.5,0,0,1,.523-.5C8.113,3.789,11,5.357,11,6V19.086a.5.5,0,0,1-.7.457A22.937,22.937,0,0,0,2.478,18.033Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M9.257,7.443a24.06,24.06,0,0,0-5.184-1.02.75.75,0,1,0-.146,1.493,22.661,22.661,0,0,1,4.853.949.75.75,0,1,0,.477-1.422Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M9.257,11.616A24.036,24.036,0,0,0,4.073,10.6a.75.75,0,1,0-.146,1.493,22.635,22.635,0,0,1,4.853.949.75.75,0,0,0,.477-1.422Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M9.257,15.789a24.06,24.06,0,0,0-5.184-1.02.75.75,0,1,0-.146,1.493,22.538,22.538,0,0,1,4.853.949.75.75,0,0,0,.477-1.422Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M15.22,13.038a22.635,22.635,0,0,1,4.853-.949.75.75,0,1,0-.146-1.493,24.036,24.036,0,0,0-5.184,1.02.75.75,0,0,0,.477,1.422Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path><path d="M15.22,17.211a22.538,22.538,0,0,1,4.853-.949.75.75,0,1,0-.146-1.493,24.06,24.06,0,0,0-5.184,1.02.75.75,0,0,0,.477,1.422Z" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path></g></svg>
<span class="truncate">
更多信息
</span>
</a>
</nav>
</div>
<!-- Main -->
<div class="space-y-8 md:col-span-8 lg:col-span-9">
<!-- Card Mnemonic -->
<div id="section-1" class="ok-card js-section">
<!-- Card / Header -->
<div class="ok-card__header">
<!-- Card / Header / Title & Descriptions -->
<div class="mr-4">
<h2 class="ok-card__header-title">助记词</h2>
<p class="max-w-2xl mt-1 text-sm text-gray-500">您可以输入已有的助记词,或生成新的随机助记词。</p>
</div>
<!-- Card / Header / Controls -->
<div class="dropdown js-dropdown">
<button id="recoveryPhrasePopoverBtn" type="button" class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-400 bg-white rounded-full hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500" aria-expanded="false" aria-haspopup="true">
<span class="sr-only">打开选项</span>
<!-- Heroicon name: solid/dots-vertical -->
<svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div id="recoveryPhrasePopoverContent" class="dropdown__menu">
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input type="checkbox" class="use-entropy ok-checkbox" />
<span class="text-sm text-gray-700 whitespace-nowrap">显示「熵」详细信息</span>
</label>
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input type="checkbox" class="showSplitMnemonic ok-checkbox" />
<span class="text-sm text-gray-700 whitespace-nowrap">显示「分片助记词」</span>
</label>
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input type="checkbox" class="showBip85 ok-checkbox" />
<span class="text-sm text-gray-700 whitespace-nowrap">显示 BIP85</span>
</label>
</div>
</div>
</div>
<!-- Card / Body -->
<div class="ok-card__body">
<!-- Entropy Details -->
<div class="hidden entropy-container">
<div class="insert-card">
<!-- Warning -->
<p class="flex p-2 text-sm text-yellow-600 border border-yellow-200 rounded-md bg-yellow-50">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 w-5 h-5 mr-2 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
</svg>
<span>「熵」是一个高级功能,如果这个功能使用不当,您的助记词可能不安全。<a class="underline" href="#entropy-notes">了解更多</a></span>
</p>
<!-- Valid entropy values -->
<div>
<p class="mb-1 ok-label">有效的熵值包括:</p>
<ul class="flex flex-wrap -mx-2.5 -mb-1.5">
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio" type="radio" name="entropy-type" value="binary" />
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Binary <span class="font-normal">[0-1]</span></p>
<p class="text-gray-500">101010011</p>
</div>
</label>
</li>
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio" type="radio" name="entropy-type" value="base 6" />
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Base 6 <span class="font-normal">[0-5]</span></p>
<p class="text-gray-500">123434014</p>
</div>
</label>
</li>
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio" type="radio" name="entropy-type" value="dice" />
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Dice <span class="font-normal">[1-6]</span></p>
<p class="text-gray-500">62535634</p>
</div>
</label>
</li>
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio" type="radio" name="entropy-type" value="base 10" />
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Base 10 <span class="font-normal">[0-9]</span></p>
<p class="text-gray-500">90834528</p>
</div>
</label>
</li>
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio"
type="radio"
name="entropy-type"
value="hexadecimal"
checked
/>
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Hex <span class="font-normal">[0-9A-F]</span></p>
<p class="text-gray-500">4187a8bfd9</p>
</div>
</label>
</li>
<li class="mx-1">
<label class="flex items-start p-1.5 transition rounded-md cursor-pointer hover:bg-gray-200">
<div class="flex items-center h-5">
<input class="ok-radio" type="radio" name="entropy-type" value="card" />
</div>
<div class="ml-2 text-sm">
<p class="font-medium text-gray-700">Card <span class="font-normal">[A2-9TJQK][CDHS]</span></p>
<p class="text-gray-500">ahqs9dtc</p>
</div>
</label>
</li>
</ul>
</div>
<!-- Entropy -->
<div>
<label for="entropy" class="mb-1 ok-label"></label>
<textarea
id="entropy"
rows="2"
class="entropy private-data ok-textarea"
placeholder="接受 Binary、Base 6、6-sided Dice、Base 10、Hexadecimal 或 Cards"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
<div class="hidden row filter-warning">
<p class="mt-2 text-sm text-red-600">一些字符已被弃用。</p>
</div>
</div>
<!-- Description list -->
<div class="grid grid-cols-2 gap-6">
<div>
<p class="mb-1 ok-label cursor-help" title="基于 zxcvbn 的估计值,使用过滤熵的方法">破解时间</p>
<div class="text-sm text-gray-900">
<span class="crack-time"></span>
</div>
</div>
<div>
<p class="mb-1 ok-label">事件计数</p>
<div class="text-sm text-gray-900">
<span class="event-count"></span>
</div>
</div>
<div>
<p class="mb-1 ok-label">熵值类型</p>
<div class="text-sm text-gray-900">
<span class="type"></span>
</div>
</div>
<div>
<p class="mb-1 ok-label">每个事件的平均比特数</p>
<div class="text-sm text-gray-900">
<span class="bits-per-event"></span>
</div>
</div>
<div>
<p class="mb-1 ok-label">原始熵词</p>
<div class="text-sm text-gray-900">
<span class="word-count"></span>
</div>
</div>
<div>
<p class="mb-1 ok-label cursor-help" title="如果熵事件使用的是弱源,那么熵的总比特数可能会少于所显示的。">总比特数</p>
<div class="text-sm text-gray-900">
<span class="bits"></span>
</div>
</div>
<div class="col-span-full">
<p class="mb-1 ok-label">过滤熵</p>
<div class="text-sm text-gray-900">
<span class="filtered private-data"></span>
</div>
</div>
<div class="col-span-full">
<p class="mb-1 ok-label">原始二进制</p>
<div class="text-sm text-gray-900">
<span class="binary private-data"></span>
</div>
</div>
<div class="col-span-full md:col-span-1">
<p class="mb-1 ok-label">助记词长度</p>
<select class="w-full mnemonic-length ok-select">
<option value="raw" selected>
使用原始熵(每 32 比特 3 个单词)
</option>
<option value="12">12 <span>个单词</span></option>
<option value="15">15 <span>个单词</span></option>
<option value="18">18 <span>个单词</span></option>
<option value="21">21 <span>个单词</span></option>
<option value="24">24 <span>个单词</span></option>
</select>
<p class="hidden weak-entropy-override-warning">
<span class="ok-helper-text ok-helper-text--danger">
The recovery phrase will appear more secure than it really is.
</span>
</p>
</div>
<div class="col-span-full md:col-span-1">
<p class="mb-1 ok-label">二进制校验和</p>
<div class="text-sm text-gray-900">
<span class="checksum private-data">&nbsp;</span>
</div>
</div>
<div class="col-span-full">
<p class="mb-1 ok-label">单词索引</p>
<div class="text-sm text-gray-900">
<span class="word-indexes private-data">&nbsp;</span>
</div>
</div>
</div>
</div>
</div>
<!-- Generate Code -->
<div class="insert-card">
<div class="generate-container">
<div class="sm:flex sm:justify-between sm:space-x-2">
<!-- Mnemonic Language Selector -->
<select id="strength" class="w-full mb-2 sm:mb-0 strength ok-select sm:w-auto">
<option value="12" selected>12 个单词</option>
<option value="18">18 个单词</option>
<option value="24">24 个单词</option>
<option class="text-black" disabled>──────────</option>
<option value="3">3 个单词</option>
<option value="6">6 个单词</option>
<option value="9">9 个单词</option>
<option value="15">15 个单词</option>
<option value="21">21 个单词</option>
</select>
<!-- Generate Button -->
<button type="button" class="inline-flex items-center justify-center w-full px-4 py-2 text-sm font-medium text-white transition bg-green-600 border border-transparent rounded-md shadow-sm generate hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:w-auto">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 mr-2 -ml-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z" clip-rule="evenodd" />
</svg>
生成
</button>
</div>
<!-- Warning Text -->
<p class="flex hidden p-2 mt-4 text-sm text-yellow-600 border border-yellow-200 rounded-md warning help-block bg-yellow-50">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 mr-2 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
Recovery phrase with less than 12 words have low entropy and may be guessed by an attacker.
</p>
</div>
<!-- Recovery Code -->
<div>
<textarea
id="phrase"
class="w-full shadow phrase private-data ok-textarea sm:text-lg"
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
placeholder="输入或生成助记词"
rows="3"
></textarea>
<p class="ok-helper-text">如果随便输入您自己选的助记词,可能不管用(因为随机熵的质量通常得不到保证,且依据协议,最后一个词是校验词,它和前面的词有存在一定关联)。</p>
</div>
<div class="flex flex-wrap -m-1 text-gray-600 languages">
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#english">English</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#japanese" title="Japanese">日本語</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#spanish" title="Spanish">Español</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#chinese_simplified" title="Chinese (Simplified)"
>中文(简体)</a
>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#chinese_traditional" title="Chinese (Traditional)"
>中文(繁體)</a
>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#french" title="French">Français</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#italian" title="Italian">Italiano</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#korean" title="Korean">한국어</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#czech" title="Czech">Čeština</a>
<a class="py-1 px-1.5 text-sm border border-gray-300 rounded-md hover:bg-gray-100 hover:text-gray-900 transition m-1" href="#portuguese" title="Portuguese">Português</a>
</div>
</div>
<!-- BIP39 Split Mnemonic -->
<div class="hidden splitMnemonic">
<div class="insert-card">
<div>
<label for="phrase" class="mb-1 ok-label">BIP39 分片助记词</label>
<div>
<textarea
id="phraseSplit"
class="phraseSplit private-data ok-textarea"
title="Only 2 of 3 cards needed to recover."
rows="4"
></textarea>
<p class="help-block ok-helper-text ok-helper-text--danger">
<span id="phraseSplitWarn" class="phraseSplitWarn"></span>
</p>
</div>
</div>
</div>
</div>
<!-- BIP39 Passphrase -->
<div>
<div class="flex justify-between mb-1">
<label for="passphrase" class="ok-label">BIP39 密码Passphrase</label>
<span class="text-sm text-gray-500" id="email-optional">可选</span>
</div>
<textarea
id="passphrase"
class="passphrase private-data ok-textarea"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
<!-- BIP39 Seed -->
<div>
<label for="seed" class="mb-1 ok-label">BIP39 种子</label>
<textarea
id="seed"
class="seed private-data ok-textarea"
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
<!-- Coin -->
<div>
<label for="network-phrase" class="mb-1 ok-label">币种</label>
<select id="network-phrase" class="max-w-full network ok-select">
<!-- populated by javascript -->
</select>
</div>
<!-- BIP32 Root Key -->
<div>
<label for="root-key" class="mb-1 ok-label">BIP32 根密钥</label>
<textarea
id="root-key"
class="root-key private-data ok-textarea"
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
<!-- BIP85 -->
<div class="hidden bip85">
<div class="space-y-4 md:space-y-6 insert-card">
<!-- Warning -->
<p class="flex p-2 text-sm text-yellow-600 border border-yellow-200 rounded-md bg-yellow-50">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 w-5 h-5 mr-2 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
</svg>
<span>这是一个高级功能,只有在您了解它的作用时才可以使用。请阅读 <a class="underline" href="https://github.com/bitcoin/bips/blob/master/bip-0085.mediawiki" target="_blank">BIP85 规范</a> 以了解更多信息。</span>
</p>
<!-- Form -->
<div class="grid gap-6 md:grid-cols-2">
<!-- BIP85 Application -->
<div>
<label for="bip85-application" class="mb-1 ok-label">BIP85 应用</label>
<div>
<select id="bip85-application" class="w-full ok-select">
<option value="bip39" selected>BIP39</option>
<option value="wif">WIF</option>
<option value="xprv">Xprv</option>
<option value="hex">Hex</option>
</select>
</div>
</div>
<!-- BIP85 Mnemonic Language -->
<div class="bip85-mnemonic-language-input">
<label for="bip85-mnemonic-language" class="mb-1 ok-label">BIP85 助记词语言</label>
<div class="col-sm-10 languages">
<select
id="bip85-mnemonic-language"
class="w-full strength ok-select"
>
<option value="0" selected>English</option>
<!--<option value="1">日本語</option>
<option value="2">한국어</option>
<option value="3">Español</option>
<option value="4">中文(简体)</option>
<option value="5">中文(繁體)</option>
<option value="6">Français</option>
<option value="7">Italiano</option>
<option value="8">Čeština</option>
<option value="9">Português</option>-->
</select>
</div>
</div>
<!-- BIP85 Mnemonic Length -->
<div class="bip85-mnemonic-length-input">
<label for="bip85-mnemonic-length" class="mb-1 ok-label">BIP85 助记词长度</label>
<select id="bip85-mnemonic-length" class="w-full strength ok-select">
<option value="12" selected>12</option>
<option value="18">18</option>
<option value="24">24</option>
</select>
</div>
<!-- BIP85 Bytes -->
<div class="bip85-bytes-input">
<label for="bip85-bytes" class="mb-1 ok-label">BIP85 字节</label>
<input
id="bip85-bytes"
type="text"
class="change ok-input"
value="64"
/>
</div>
<!-- BIP85 Index -->
<div class="bip85-index-input">
<label for="bip85-index" class="mb-1 ok-label">BIP85 索引</label>
<input
id="bip85-index"
type="text"
class="change ok-input"
value="0"
/>
</div>
<!-- BIP85 Child Key -->
<div class="col-span-full">
<label for="phrase" class="mb-1 ok-label">BIP85 子密钥</label>
<textarea
id="bip85Field"
data-show-qr
class="bip85Field private-data ok-textarea"
title="BIP85 Child Key"
rows="3"
></textarea>
<p class="ok-helper-text">这个字段的值在这个页面的其他地方没有使用。它可以作为一个新的密钥使用。如果是 BIP39 应用程序你可以把它粘贴到「BIP39 助记词」字段,作为一个新的助记词。</p>
</div>
</div>
</div>
</div>
<!-- Prefixes show when Coin is LTC - Litecoin -->
<div class="hidden form-group litecoin-ltub-container">
<label for="litecoin-use-ltub" class="mb-1 col-sm-2 control-label ok-label"
>Prefixes</label
>
<div class="col-sm-10 checkbox">
<label class="flex items-center p-2 -ml-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input
type="checkbox"
id="litecoin-use-ltub"
class="litecoin-use-ltub ok-checkbox"
checked="checked"
/>
<div class="text-sm text-gray-700">
Use <code>Ltpv / Ltub</code> instead of
<code>xprv / xpub</code>
</div>
</label>
</div>
</div>
</div>
</div>
<!-- Card Derivation Path -->
<div id="section-2" class="ok-card js-section">
<div class="flex-col pb-0 ok-card__header">
<h2 class="ok-card__header-title">派生路径</h2>
<!-- Tabs -->
<ul class="flex mt-2 -mb-px -mr-4 space-x-8 overflow-auto derivation-type nav nav-tabs" role="tablist">
<li id="bip32-tab">
<a href="#bip32" role="tab" data-toggle="tab" class="ok-tab">BIP32</a>
</li>
<li id="bip44-tab" class="active">
<a href="#bip44" role="tab" data-toggle="tab" class="ok-tab">BIP44</a>
</li>
<li id="bip49-tab">
<a href="#bip49" role="tab" data-toggle="tab" class="ok-tab">BIP49</a>
</li>
<li id="bip84-tab">
<a href="#bip84" role="tab" data-toggle="tab" class="ok-tab">BIP84</a>
</li>
<li id="bip141-tab">
<a href="#bip141" role="tab" data-toggle="tab" class="ok-tab">BIP141</a>
</li>
</ul>
</div>
<div class="ok-card__body">
<div class="derivation-type tab-content">
<div id="bip44" class="tab-pane active">
<div class="grid grid-cols-2 gap-6">
<div class="form-group">
<label for="purpose-bip44" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose"
target="_blank"
>目标</a
>
</label>
<input
id="purpose-bip44"
type="text"
class="purpose form-control ok-input"
value="44"
readonly
/>
</div>
<div class="form-group">
<label for="coin-bip44" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types"
target="_blank"
>币种</a
>
</label>
<div class="col-sm-10">
<input
id="coin-bip44"
type="text"
class="coin form-control ok-input"
value="0"
readonly
/>
</div>
</div>
<div class="form-group">
<label for="account-bip44" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account"
target="_blank"
>账户</a
>
</label>
<div class="col-sm-10">
<input
id="account-bip44"
type="text"
class="account form-control ok-input"
value="0"
/>
</div>
</div>
<div class="form-group">
<label for="change-bip44" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change"
target="_blank"
>外部 / 内部</a
>
</label>
<div class="col-sm-10">
<input
id="change-bip44"
type="text"
class="change form-control ok-input"
value="0"
/>
</div>
</div>
<div class="insert-card col-span-full">
<div>
<h3 class="font-medium text-gray-900">帐户扩展密钥</h3>
<p class="mt-1 text-sm text-gray-500">帐户扩展密钥可用于导入大多数 BIP44 兼容的钱包,例如 Mycelium 或 Electrum。</p>
</div>
<div class="form-group">
<label for="account-xprv" class="mb-1 col-sm-2 control-label ok-label">
<span>私钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xprv-bip44"
type="text"
class="account-xprv private-data form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
<div class="form-group">
<label for="account-xpub" class="mb-1 col-sm-2 control-label ok-label">
<span>公钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xpub-bip44"
type="text"
class="account-xpub form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
</div>
<div class="form-group col-span-full">
<label for="bip44-path" class="mb-1 col-sm-2 control-label ok-label">BIP32 派生路径</label>
<input
id="bip44-path"
type="text"
class="path form-control ok-input"
value="m/44'/0'/0'/0"
readonly="readonly"
/>
<p class="ok-helper-text">
BIP32 派生路径和扩展密钥是派生地址的基础。
</p>
</div>
</div>
</div>
<div id="bip32" class="tab-pane">
<div class="grid grid-cols-2 gap-6">
<div class="form-group">
<label for="bip32-client" class="mb-1 col-sm-2 control-label ok-label">客户端</label>
<div class="col-sm-10">
<select id="bip32-client" class="w-full client form-control ok-select">
<option value="custom">自定义派生路径</option>
<!-- populated by javascript -->
</select>
</div>
</div>
<div class="form-group col-span-full">
<label for="bip32-path" class="mb-1 col-sm-2 control-label ok-label"
>BIP32 派生路径</label
>
<div class="col-sm-10">
<input
id="bip32-path"
type="text"
class="path form-control ok-input"
value="m/0"
/>
</div>
</div>
<div class="form-group">
<label for="core-path" class="mb-1 col-sm-2 control-label ok-label">Bitcoin Core</label>
<div class="col-sm-10">
<p class="text-sm text-gray-900 form-control no-border">
使用带有硬化地址的路径 <code>m/0'/0'</code>
</p>
<p class="form-control no-border ok-helper-text">
更多信息请查看
<a
href="https://github.com/bitcoin/bitcoin/pull/8035"
target="_blank" class="underline"
>
Bitcoin Core BIP32 的实现
</a>
</p>
</div>
</div>
<div class="form-group">
<label for="core-path" class="mb-1 col-sm-2 control-label ok-label"
>Multibit</label
>
<div class="col-sm-10">
<p class="text-sm text-gray-900 form-control no-border">
<span>使用路径 <code>m/0'/0</code></span><span>对「更改地址」使用路径 <code>m/0'/1</code></span>
</p>
<p class="form-control no-border ok-helper-text">
<span>更多信息请查看</span> <a href="https://multibit.org/" target="_blank" class="underline">MultiBit HD</a>
</p>
</div>
</div>
<div class="form-group col-span-full">
<label class="mb-1 col-sm-2 control-label ok-label">区块浏览器</label>
<div class="col-sm-10">
<p class="text-sm text-gray-900 form-control no-border">
<span>使用路径 <code>m/44'/0'/0'</code></span><span>只在区块探索器的搜索字段中输入 <code>xpub</code> 拓展公钥,不要输入 <code>xprv</code> 拓展私钥。</span>
</p>
<p class="form-control no-border ok-helper-text">
<span>可用于:</span>
<a href="https://blockchain.info/" target="_blank" class="underline"
>blockchain.info</a
>
</p>
</div>
</div>
</div>
</div>
<div id="bip49" class="tab-pane">
<div class="hidden unavailable">
<p>BIP49 is unavailable for this coin.</p>
</div>
<div class="available">
<div class="grid grid-cols-2 gap-6">
<div class="form-group">
<label for="purpose-bip49" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose"
target="_blank"
>目标</a
>
</label>
<div class="col-sm-10">
<input
id="purpose-bip49"
type="text"
class="purpose form-control ok-input"
value="49"
readonly
/>
</div>
</div>
<div class="form-group">
<label for="coin-bip49" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types"
target="_blank"
>币种</a
>
</label>
<div class="col-sm-10">
<input
id="coin-bip49"
type="text"
class="coin form-control ok-input"
value="0"
readonly
/>
</div>
</div>
<div class="form-group">
<label for="account-bip49" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account"
target="_blank"
>账户</a
>
</label>
<div class="col-sm-10">
<input
id="account-bip49"
type="text"
class="account form-control ok-input"
value="0"
/>
</div>
</div>
<div class="form-group">
<label for="change-bip49" class="mb-1 col-sm-2 control-label ok-label">
<a
href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change"
target="_blank"
>外部 / 内部</a
>
</label>
<div class="col-sm-10">
<input
id="change-bip49"
type="text"
class="change form-control ok-input"
value="0"
/>
</div>
</div>
<div class="insert-card col-span-full">
<div>
<h3 class="font-medium text-gray-900">帐户扩展密钥</h3>
<p class="mt-1 text-sm text-gray-500">账户扩展密钥可用于导入大多数 BIP49 兼容钱包。</p>
</div>
<div class="form-group">
<label for="account-xprv" class="mb-1 col-sm-2 control-label ok-label">
<span>私钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xprv-bip49"
type="text"
class="account-xprv private-data form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
<div class="form-group">
<label for="account-xpub" class="mb-1 col-sm-2 control-label ok-label">
<span>公钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xpub-bip49"
type="text"
class="account-xpub form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
</div>
<div class="form-group col-span-full">
<label for="bip49-path" class="mb-1 col-sm-2 control-label ok-label"
>BIP32 派生路径</label
>
<div class="col-sm-10">
<input
id="bip49-path"
type="text"
class="path form-control ok-input"
value="m/49'/0'/0'/0"
readonly="readonly"
/>
<p class="ok-helper-text">
BIP32 派生路径和扩展密钥是派生地址的基础。
</p>
</div>
</div>
</div>
</div>
</div>
<div id="bip141" class="tab-pane">
<div class="hidden unavailable">
<p>BIP141 is unavailable for this coin.</p>
</div>
<div class="available">
<div class="grid grid-cols-2 gap-6">
<div class="form-group">
<label for="bip141-path" class="mb-1 col-sm-2 control-label ok-label"
>BIP32 派生路径</label
>
<div class="col-sm-10">
<input
id="bip141-path"
type="text"
class="bip141-path form-control ok-input"
value="m/0"
/>
</div>
</div>
<div class="form-group">
<label class="mb-1 col-sm-2 control-label ok-label">脚本语义</label>
<div class="col-sm-10">
<select class="w-full form-control bip141-semantics ok-select">
<option value="p2wpkh">P2WPKH</option>
<option value="p2wpkh-p2sh" selected>P2WPKH 嵌套在 P2SH 中</option>
<option value="p2wsh">P2WSH (1-of-1 多重签名)</option>
<option value="p2wsh-p2sh">
P2WSH 嵌套在 P2SH 中1-of-1 多重签名)
</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div id="bip84" class="tab-pane">
<div class="hidden unavailable">
<div class="form-group">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<p>BIP84 is unavailable for this coin.</p>
</div>
</div>
</div>
<div class="available">
<div class="grid grid-cols-2 gap-6">
<div class="form-group">
<label for="purpose-bip84" class="mb-1 col-sm-2 control-label ok-label">
目标
</label>
<div class="col-sm-10">
<input
id="purpose-bip84"
type="text"
class="purpose form-control ok-input"
value="84"
readonly
/>
</div>
</div>
<div class="form-group">
<label for="coin-bip84" class="mb-1 col-sm-2 control-label ok-label">
币种
</label>
<div class="col-sm-10">
<input
id="coin-bip84"
type="text"
class="coin form-control ok-input"
value="0"
readonly
/>
</div>
</div>
<div class="form-group">
<label for="account-bip84" class="mb-1 col-sm-2 control-label ok-label">
账户
</label>
<div class="col-sm-10">
<input
id="account-bip84"
type="text"
class="account form-control ok-input"
value="0"
/>
</div>
</div>
<div class="form-group">
<label for="change-bip84" class="mb-1 col-sm-2 control-label ok-label">
外部 / 内部
</label>
<div class="col-sm-10">
<input
id="change-bip84"
type="text"
class="change form-control ok-input"
value="0"
/>
</div>
</div>
<div class="insert-card col-span-full">
<div>
<h3 class="font-medium text-gray-900">帐户扩展密钥</h3>
<p class="mt-1 text-sm text-gray-500">账户扩展密钥可用于导入大多数 BIP84 兼容钱包。</p>
</div>
<div class="form-group">
<label for="account-xprv" class="mb-1 col-sm-2 control-label ok-label">
<span>私钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xprv-bip84"
type="text"
class="account-xprv private-data form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
<div class="form-group">
<label for="account-xpub" class="mb-1 col-sm-2 control-label ok-label">
<span>公钥</span>
</label>
<div class="col-sm-10">
<textarea
id="account-xpub-bip84"
type="text"
class="account-xpub form-control ok-textarea"
readonly
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
</div>
<div class="form-group col-span-full">
<label for="bip84-path" class="mb-1 col-sm-2 control-label ok-label"
>BIP32 派生路径</label
>
<div class="col-sm-10">
<input
id="bip84-path"
type="text"
class="path form-control ok-textarea"
value="m/84'/0'/0'/0"
readonly="readonly"
/>
<p class="ok-helper-text">BIP32 派生路径和扩展密钥是派生地址的基础。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="extended-priv-key" class="mb-1 col-sm-2 control-label ok-label">BIP32 扩展私钥</label>
<div class="col-sm-10">
<textarea
id="extended-priv-key"
class="extended-priv-key private-data form-control ok-textarea"
readonly="readonly"
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
<div class="form-group">
<label for="extended-pub-key" class="mb-1 col-sm-2 control-label ok-label">BIP32 扩展公钥</label>
<div class="col-sm-10">
<textarea
id="extended-pub-key"
class="extended-pub-key form-control ok-textarea"
readonly="readonly"
data-show-qr
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
</div>
</div>
<!-- Card Derived Addresses -->
<div id="section-3" class="ok-card js-section">
<div class="pb-0 ok-card__header">
<div class="mr-6">
<div>
<div class="ok-card__header-title">派生地址</div>
<p class="max-w-2xl mt-1 text-sm text-gray-500">请注意,这些地址来自 BIP32 扩展密钥。</p>
</div>
<ul class="flex mt-2 -mb-px space-x-8 addresses-type nav nav-tabs" role="tablist">
<li id="table-tab" class="active">
<a href="#table" role="tab" data-toggle="tab" class="ok-tab">表格</a>
</li>
<li id="csv-tab">
<a href="#csv" role="tab" data-toggle="tab" class="ok-tab">CSV</a>
</li>
</ul>
</div>
<div class="dropdown js-dropdown">
<button id="derivedAddressesPopoverBtn" type="button" class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-400 bg-white rounded-full hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500" aria-expanded="false" aria-haspopup="true">
<span class="sr-only">Open options</span>
<!-- Heroicon name: solid/dots-vertical -->
<svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div id="derivedAddressesPopoverContent" class="dropdown__menu w-72">
<div class="hidden col-md-12 bch-addr-type-container">
<div class="radio">
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input
type="radio"
value="cashaddr"
name="bch-addr-type"
class="use-bch-cashaddr-addresses ok-radio"
checked="checked"
/>
<span class="text-sm text-gray-700">为比特币现金使用 CashAddr 地址(如以 'q' 而不是 '1' 开头)</span>
</label>
</div>
<div class="radio">
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input
type="radio"
value="bitpay"
name="bch-addr-type"
class="use-bch-bitpay-addresses ok-radio"
/>
<span class="text-sm text-gray-700">为比特币现金使用 BitPay-style 地址(如以 'C' 而不是 '1' 开头)</span>
</label>
</div>
<div class="radio">
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input
type="radio"
value="legacy"
name="bch-addr-type"
class="use-bch-legacy-addresses ok-radio"
/>
<span class="text-sm text-gray-700">为比特币现金使用传统地址(以 '1' 开头)</span>
</label>
</div>
</div>
<div>
<div class="p-2 text-left">
<div>
<p class="mb-1 ok-label">使用 BIP38 加密私钥</p>
<div class="relative">
<input
type="text"
class="pl-[38px] bip38-password private-data ok-input"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
placeholder="密码(可选)"
/>
<input type="checkbox" class="absolute left-[11px] top-[11px] use-bip38 ok-checkbox" />
</div>
<p class="ok-helper-text">启用 BIP38 意味着每个密钥需要几分钟才能生成</p>
</div>
</div>
<div class="mt-2 checkbox">
<label class="flex items-center p-2 transition rounded-md cursor-pointer hover:bg-gray-100">
<input class="hardened-addresses ok-checkbox" type="checkbox" />
<span class="text-sm text-gray-700">使用硬化地址</span>
</label>
</div>
</div>
</div>
</div>
</div>
<div class="p-0 ok-card__body">
<div class="addresses-type tab-content">
<div id="table" class="overflow-auto max-h-[520px] tab-pane active">
<table class="table min-w-full divide-y divide-gray-200 table-striped">
<thead class="bg-gray-50">
<th scope="col" class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase">
<div class="flex items-center input-group">
<span class="whitespace-nowrap">路径</span>&nbsp;&nbsp;
<button class="px-1 text-gray-700 bg-white border border-gray-300 rounded shadow-sm index-toggle py-0.5 -my-0.5 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 whitespace-nowrap">显示/隐藏</button>
</div>
</th>
<th scope="col" class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase">
<div class="flex items-center input-group">
<span class="whitespace-nowrap">地址</span>&nbsp;&nbsp;
<button class="px-1 text-gray-700 bg-white border border-gray-300 rounded shadow-sm address-toggle py-0.5 -my-0.5 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 whitespace-nowrap">显示/隐藏</button>
</div>
</th>
<th scope="col" class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase">
<div class="flex items-center input-group">
<span class="whitespace-nowrap">公钥</span>&nbsp;&nbsp;
<button class="px-1 text-gray-700 bg-white border border-gray-300 rounded shadow-sm public-key-toggle py-0.5 -my-0.5 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 whitespace-nowrap">显示/隐藏</button>
</div>
</th>
<th scope="col" class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase">
<div class="flex items-center input-group">
<span class="whitespace-nowrap">私钥</span>&nbsp;&nbsp;
<button class="px-1 text-gray-700 bg-white border border-gray-300 rounded shadow-sm private-key-toggle py-0.5 -my-0.5 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 whitespace-nowrap">显示/隐藏</button>
</div>
</th>
</thead>
<tbody class="addresses monospace">
<tr class="bg-white">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="bg-white">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="bg-white">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="bg-white">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="bg-white">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
<div id="csv" class="p-6 border-b border-gray-200 tab-pane">
<textarea
class="csv form-control ok-textarea"
rows="25"
readonly
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
></textarea>
</div>
</div>
<div class="px-4 md:px-6 py-4 !mb-0 sm:flex sm:justify-between sm:items-center border-t border-gray-200 space-y-4 sm:space-y-0">
<div class="flex items-center space-x-2">
<span class="text-sm text-gray-700">从索引</span>
<input type="number" class="w-14 sm:w-20 more-rows-start-index ok-input" />
<span class="text-sm text-gray-700">开始再显示</span>
<input type="number" class="w-14 sm:w-20 rows-to-add ok-input" value="20" />
<span class="text-sm text-gray-700"></span>
</div>
<button type="button" class="inline-flex items-center justify-center w-full px-4 py-2 text-sm font-medium text-white bg-green-600 border border-transparent rounded-md shadow-sm more hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:w-auto">
显示更多
</button>
</div>
</div>
</div>
<!-- More Info -->
<div id="section-4" class="px-4 pt-8 js-section md:px-0 md:pt-16">
<div class="prose">
<h2>更多信息</h2>
<h3>BIP39</h3>
<p>用于生成确定性密钥的助记词。在 <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">官方 BIP39 规范</a> 中了解更多信息。</p>
<h3>BIP32</h3>
<p>分层确定性钱包。在 <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target="_blank">官方 BIP32 规范</a> 中了解更多信息。在 <a href="http://bip32.org/" target="_blank">bip32.org</a> 中查看 Demo。</p>
<h3>BIP44</h3>
<p>确定性钱包的多账户结构。在 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">官方 BIP44 规范</a> 中了解更多信息。</p>
<h3>BIP49</h3>
<p>基于 P2WPKH-nested-in-P2SH 账户的派生方案。在 <a href="https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki" target="_blank">官方 BIP49 规范</a> 中了解更多信息。</p>
<h3>BIP85</h3>
<p>源于 BIP32 钥匙串的确定性熵。在 <a href="https://github.com/bitcoin/bips/blob/master/bip-0085.mediawiki" target="_blank">官方 BIP85 规范</a> 了解更多信息。</p>
<h3 id="entropy-notes"></h3>
<p>熵值不应该包括 BIP39 校验和。这是由工具自动添加的。</p>
<p>熵值必须来自一个强大的 <a href="https://en.wikipedia.org/wiki/Random_number_generation" target="_blank">随机性来源</a>。这意味着抛出一个公平的硬币、摇动一个公平的骰子、噪声测量等。<strong>不要</strong>使用书籍中的短语、歌曲中的歌词、您的生日或街道地址,或任何您认为是随机的东西,因为相比于这个工具的需求来说,它的随机性很可能远远不够。</p>
<p><strong><span>不要存储熵。</span></strong></p>
<p>与存储助记词相比,存储熵(例如将一副牌保持在特定的洗牌顺序中)是不可靠的。与其存储熵,不如存储从熵中产生的助记词。在存储助记词时,<a href="https://en.wikipedia.org/wiki/Steganography#Physical" target="_blank">隐写术</a> 可能会来带帮助。</p>
<p>本页面的随机助记词生成器使用了 <a href="https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target="_blank">加密安全的随机数生成器</a>。相比您自己对随机性的直觉,内置的随机生成器更值得信赖。如果密码随机性在您的浏览器中不可用,这个页面将显示一个警告,并且「生成」按钮将不起作用。在这种情况下,您可以选择您自己的熵源。</p>
<p><a href="https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target="_blank">您的熵源并不良好。</a></p>
<p>卡片熵的实现是假设卡片是被替换的,而不是逐张抽取。一副完整的牌在替换后会产生 232 比特的熵21 个字)。一副完整的牌没有替换产生 225 比特的熵21 个字)。</p>
<h3>许可证</h3>
<p>
请查阅 <a href="https://github.com/OneKeyHQ/bip39/blob/master/LICENSE" target="_blank">软件许可证</a> 了解更多信息。
</p>
<p>本软件按「原样」提供,不提供任何明示或暗示的保证,包括但不限于对适销性、特定用途的适用性和非侵权性的保证。在任何情况下,使用本软件或其他交易引起的无论合同行为、侵权行为或其他行为,作者或版权持有人都不对任何索赔、损害或其他责任负责。</p>
<h3>替代工具</h3>
<p>这个工具可以与任何 BIP39 钱包互通。一些与此类似的工具(非消费者钱包)是 <a href="https://bip32jp.github.io/english/">https://bip32jp.github.io/english/</a></p>
<h3>离线使用</h3>
<p>您可以脱网使用这个工具:</p>
<ol>
<li>在浏览器中,选择「文件」->「另存为」,将这个页面保存为文件;</li>
<li>在脱网的电脑中,双击在浏览器中打开文件;</li>
</ol>
<h3>这个项目完全开源</h3>
<p>从仓库中获取代码 - <a href="https://github.com/OneKeyHQ/bip39" target="_blank">https://github.com/OneKeyHQ/bip39</a>
</p>
<h3></h3>
<ul>
<li>BitcoinJS - <a href="https://github.com/bitcoinjs/bitcoinjs-lib" target="_blank"> https://github.com/bitcoinjs/bitcoinjs-lib</a></li>
<li>jsBIP39 - <a href="https://github.com/iancoleman/jsbip39" target="_blank">https://github.com/iancoleman/jsbip39</a></li>
<li>sjcl - <a href="https://github.com/bitwiseshiftleft/sjcl" target="_blank">https://github.com/bitwiseshiftleft/sjcl</a></li>
<li>jQuery - <a href="https://jquery.com/" target="_blank">https://jquery.com/</a></li>
<li>
Twitter Bootstrap - <a href="http://getbootstrap.com/" target="_blank">http://getbootstrap.com/</a>
</li>
<li>Tailwind CSS - <a href="https://tailwindcss.com/" target="_blank">https://tailwindcss.com/</a></li>
<li>Tippy.js - <a href="https://kabbouchi.github.io/tippyjs-v4-docs/" target="_blank">https://kabbouchi.github.io/tippyjs-v4-docs/</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- QR Code -->
<div class="fixed hidden qr-container top-4 right-4">
<div class="hidden qr-hint">
<div class="ok-notification">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 mr-4 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />
</svg>
<span>点击字段 <span class="font-medium"> 隐藏 </span> 二维码</span>
</div>
</div>
</div>
<div class="qr-hint">
<div class="ok-notification">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 mr-4 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z" />
</svg>
<span>点击字段 <span class="font-medium"> 显示 </span> 二维码</span>
</div>
</div>
</div>
<div class="hidden mt-4 qr-hider">
<div class="flex flex-col items-center ok-notification">
<div class="qr-image"></div>
<div class="text-sm qr-warning">
<div class="flex items-center mt-2 text-yellow-600">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 mr-2 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
扫描仪可能会保留历史记录
</div>
</div>
</div>
</div>
</div>
</div>
<div class="feedback-container">
<div class="fixed max-w-full px-4 py-2 text-white -translate-x-1/2 bg-gray-800 rounded-md shadow-lg feedback left-1/2 bottom-4">加载中...</div>
</div>
<div id="onekey-portal-footer">
</div>
<script>
fetch('https://portal-git-feat-page-footer-for-ex-a3e45d-yggdrasilqhs-projects.vercel.app/zh_CN/internal/footer/')
.then(response => response.text())
.then(data => {
document.getElementById('onekey-portal-footer').attachShadow({ mode: 'open' }).innerHTML = data;
})
.catch(console.error);
</script>
<script type="text/template" id="address-row-template">
<tr>
<td class="index"><span></span></td>
<td class="address"><span data-show-qr></span></td>
<td class="pubkey"><span data-show-qr></span></td>
<td class="privkey private-data"><span data-show-qr></span></td>
</tr>
</script>
<!-- Google Analytic -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-187315652-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-187315652-1');
</script>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bip39-libs.js"></script>
<script src="js/bitcoinjs-extensions.js"></script>
<script src="js/segwit-parameters.js"></script>
<script src="js/ripple-util.js"></script>
<script src="js/jingtum-util.js"></script>
<script src="js/casinocoin-util.js"></script>
<script src="js/cosmos-util.js"></script>
<script src="js/eos-util.js"></script>
<script src="js/fio-util.js"></script>
<script src="js/xwc-util.js"></script>
<script src="js/sjcl-bip39.js"></script>
<script src="js/wordlist_english.js"></script>
<script src="js/wordlist_japanese.js"></script>
<script src="js/wordlist_spanish.js"></script>
<script src="js/wordlist_chinese_simplified.js"></script>
<script src="js/wordlist_chinese_traditional.js"></script>
<script src="js/wordlist_french.js"></script>
<script src="js/wordlist_italian.js"></script>
<script src="js/wordlist_korean.js"></script>
<script src="js/wordlist_czech.js"></script>
<script src="js/wordlist_portuguese.js"></script>
<script src="js/jsbip39.js"></script>
<script src="js/entropy.js"></script>
<script src="js/index.js"></script>
<!-- Customizing JS -->
<script src="js/extend.js"></script>
</body>
</html>