Skip to content

Commit

Permalink
deploy: 8c2f2fa
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Aug 2, 2024
1 parent c657bd2 commit 2f3a571
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion zh/guides/batch-inscribing.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h1 class="menu-title">Ordinal Theory Handbook</h1>
<div id="content" class="content">
<main>
<h1 id="批量铸造"><a class="header" href="#批量铸造">批量铸造</a></h1>
<p>Multiple inscriptions can be created at the same time using the <a href="./../inscriptions/pointer.html">pointer field</a>. This is especially helpful for collections, or other cases when multiple inscriptions should share the same parent, since the parent can passed into a reveal transaction that creates multiple children.</p>
<p>可以使用<a href="./../inscriptions/pointer.html">指针字段</a>来批量创建多个铭文. 这在创建需要共享同一父系的合集或者其他情况下就特别有用,因为父犀铭文可以传递到创建多个子铭文的揭示交易中。</p>
<p>创建批量铭文,使用批处理文件<code>batch.yaml</code>, 运行</p>
<pre><code class="language-bash">ord wallet batch --fee-rate 21 --batch batch.yaml
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion zh/guides/collecting/sparrow-wallet.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h2 id="导入-ord-钱包"><a class="header" href="#导入-ord-钱包">导入 <c
<p>目前存在一个<a href="https://github.com/ordinals/ord/issues/1589">程序错误</a> 导致导入的钱包无法自动重新扫描区块链。为解决这个问题,你需要手动触发重新扫描,使用比特币核心命令行界面:</p>
<p>然后,你可以使用<code>ord wallet inscriptions</code>检查你的钱包的铭文.</p>
<p>注意,如果你之前已经用 <code>ord</code> 创建过一个钱包,那么你已经有一个默认名称的钱包,需要给你导入的钱包取一个不同的名称。你可以在所有的 <code>ord</code>命令中使用 <code>--wallet</code> 参数来引用不同的钱包,例如:</p>
<p><code>ord wallet --name ord_from_sparrow wallet restore --from mnemonic</code></p>
<p><code>ord</code> 钱包可以从助记词恢复:</p>
<p><code>ord wallet --name ord_from_sparrow wallet inscriptions</code></p>
<p><code>bitcoin-cli -rpcwallet=ord_from_sparrow rescanblockchain 767430</code></p>
<h2 id="使用麻雀钱包发送铭文"><a class="header" href="#使用麻雀钱包发送铭文">使用麻雀钱包发送铭文</a></h2>
Expand Down
96 changes: 48 additions & 48 deletions zh/guides/sat-hunting.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,114 +250,114 @@ <h1 class="menu-title">Ordinal Theory Handbook</h1>
<div id="content" class="content">
<main>
<h1 id="猎聪"><a class="header" href="#猎聪">猎聪</a></h1>
<p>Ordinal hunting is difficult but rewarding. The feeling of owning a wallet full of UTXOs, redolent with the scent of rare and exotic sats, is beyond compare.</p>
<p>Ordinals are numbers for satoshis. Every satoshi has an ordinal number and every ordinal number has a satoshi.</p>
<h2 id="preparation"><a class="header" href="#preparation">Preparation</a></h2>
<p>There are a few things you'll need before you start.</p>
<p>寻找稀有序数是困难但有回报的。拥有一个钱包,里面装满了散发着稀有和奇特聪的香气的 UTXO,这种感觉无与伦比。</p>
<p>序数是为聪(satoshi)编号的数字。每个聪都有一个序数,每个序数都对应一个聪。如果你想成为稀有聪的猎人,你应该认真阅读本章节的内容</p>
<h2 id="准备工作"><a class="header" href="#准备工作">准备工作</a></h2>
<p>在开始之前,你应该需要做的一些事情</p>
<ol>
<li>
<p>First, you'll need a synced Bitcoin Core node with a transaction index. To turn on transaction indexing, pass <code>-txindex</code> on the command-line:</p>
<p>首先,你需要一个已同步的带有交易索引的 Bitcoin Core 节点。要开启交易索引,在命令行里使用 <code>-txindex</code> :</p>
<pre><code class="language-sh">bitcoind -txindex
</code></pre>
<p>Or put the following in your <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md#configuration-file-path">Bitcoin configuration file</a>:</p>
<p>或者将以下内容放入你的 <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md#configuration-file-path">比特币配置文件</a></p>
<pre><code>txindex=1
</code></pre>
<p>Launch it and wait for it to catch up to the chain tip, at which point the following command should print out the current block height:</p>
<p>启动它并等待其同步到链尖,此时以下命令应打印出当前的区块高度:</p>
<pre><code class="language-sh">bitcoin-cli getblockcount
</code></pre>
</li>
<li>
<p>Second, you'll need a synced <code>ord</code> index.</p>
<p>其次,你需要一个已同步的 <code>ord</code> 索引。</p>
<ul>
<li>
<p>Get a copy of <code>ord</code> from <a href="https://github.com/ordinals/ord/">the repo</a>.</p>
<p><a href="https://github.com/ordinals/ord/">ord 仓库</a> 获取 <code>ord</code> 的副本。</p>
</li>
<li>
<p>Run <code>ord --index-sats server</code>. It should connect to your bitcoin core node and start indexing.</p>
<p>运行 <code>ord --index-sats server</code>。它应该会连接到你的比特币核心节点并开始索引。</p>
</li>
<li>
<p>Once it has finished indexing, leave the server running and submit new <code>ord</code> commands in a separate terminal session.</p>
<p>一旦索引完成,保持服务器运行,并在一个单独的终端会话中提交新的 <code>ord</code> 命令。</p>
</li>
</ul>
</li>
<li>
<p>Third, you'll need a wallet with UTXOs that you want to search.</p>
<p>第三,你需要一个包含你想要搜索的 UTXO 的钱包。</p>
</li>
</ol>
<h2 id="searching-for-rare-ordinals"><a class="header" href="#searching-for-rare-ordinals">Searching for Rare Ordinals</a></h2>
<h3 id="searching-for-rare-ordinals-in-a-bitcoin-core-wallet"><a class="header" href="#searching-for-rare-ordinals-in-a-bitcoin-core-wallet">Searching for Rare Ordinals in a Bitcoin Core Wallet</a></h3>
<p>The <code>ord wallet</code> command is just a wrapper around Bitcoin Core's RPC API, so searching for rare ordinals in a Bitcoin Core wallet is Easy. Assuming your wallet is named <code>foo</code>:</p>
<h2 id="搜索稀有的序数"><a class="header" href="#搜索稀有的序数">搜索稀有的序数</a></h2>
<h3 id="在一个bitcoin-core的钱包里搜索稀有的序数"><a class="header" href="#在一个bitcoin-core的钱包里搜索稀有的序数">在一个Bitcoin Core的钱包里搜索稀有的序数</a></h3>
<p>命令 <code>ord wallet</code> 只是比特币核心 RPC API 的一个封装,所以在比特币核心钱包中搜索稀有序数很容易。假设你的钱包名为 <code>foo</code></p>
<ol>
<li>
<p>Load your wallet:</p>
<p>加载你的钱包</p>
<pre><code class="language-sh">bitcoin-cli loadwallet foo
</code></pre>
</li>
<li>
<p>Display any rare ordinals wallet <code>foo</code>'s UTXOs:</p>
<p>显示钱包 <code>foo</code> 的 UTXO 中的任何稀有序数:</p>
<pre><code class="language-sh">ord --index-sats wallet --name foo sats
</code></pre>
</li>
</ol>
<h3 id="searching-for-rare-ordinals-in-a-non-bitcoin-core-wallet"><a class="header" href="#searching-for-rare-ordinals-in-a-non-bitcoin-core-wallet">Searching for Rare Ordinals in a Non-Bitcoin Core Wallet</a></h3>
<p>The <code>ord wallet</code> command is just a wrapper around Bitcoin Core's RPC API, so to search for rare ordinals in a non-Bitcoin Core wallet, you'll need to import your wallet's descriptors into Bitcoin Core.</p>
<p><a href="https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md">Descriptors</a> describe the ways that wallets generate private keys and public keys.</p>
<p>You should only import descriptors into Bitcoin Core for your wallet's public keys, not its private keys.</p>
<p>If your wallet's public key descriptor is compromised, an attacker will be able to see your wallet's addresses, but your funds will be safe.</p>
<p>If your wallet's private key descriptor is compromised, an attacker can drain your wallet of funds.</p>
<h3 id="在非bitcoin-core钱包里搜索稀有的序数ordinals"><a class="header" href="#在非bitcoin-core钱包里搜索稀有的序数ordinals">在非Bitcoin Core钱包里搜索稀有的序数Ordinals</a></h3>
<p>命令 <code>ord wallet</code> 只是比特币核心 RPC API 的一个封装,所以要在非比特币核心钱包中搜索稀有序数,你需要将钱包的描述符导入到比特币核心中。</p>
<p><a href="https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md">描述符</a> 描述了钱包生成私钥和公钥的方式。</p>
<p>你应该只将钱包公钥的描述符导入到比特币核心中,而不是私钥。</p>
<p>如果你的钱包公钥描述符被泄露,攻击者将能够看到你的钱包地址,但你的资金将是安全的。</p>
<p>如果你的钱包私钥描述符被泄露,攻击者可以耗尽你钱包中的资金。</p>
<ol>
<li>
<p>Get the wallet descriptor from the wallet whose UTXOs you want to search for rare ordinals. It will look something like this:</p>
<p>从你想要搜索稀有序数的 UTXO 所在的钱包中获取钱包描述符。它看起来会像这样:</p>
<pre><code>wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29
</code></pre>
</li>
<li>
<p>Create a watch-only wallet named <code>foo-watch-only</code>:</p>
<p>创建一个名为 foo-watch-only 的仅观察钱包:</p>
<pre><code class="language-sh">bitcoin-cli createwallet foo-watch-only true true
</code></pre>
<p>Feel free to give it a better name than <code>foo-watch-only</code>!</p>
<p>你可以给它起一个比 foo-watch-only 更好的名字!</p>
</li>
<li>
<p>Load the <code>foo-watch-only</code> wallet:</p>
<p>加载 <code>foo-watch-only</code> 钱包:</p>
<pre><code class="language-sh">bitcoin-cli loadwallet foo-watch-only
</code></pre>
</li>
<li>
<p>Import your wallet descriptors into <code>foo-watch-only</code>:</p>
<p>将你的钱包描述符descriptors导入到 foo-watch-only 中:</p>
<pre><code class="language-sh">bitcoin-cli importdescriptors \
'[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":0 }]'
</code></pre>
<p>If you know the Unix timestamp when your wallet first started receive transactions, you may use it for the value of <code>"timestamp"</code> instead of <code>0</code>. This will reduce the time it takes for Bitcoin Core to search for your wallet's UTXOs.</p>
<p>如果你知道你的钱包首次开始接收交易的 Unix 时间戳,你可以使用它来替代 "timestamp" 的值 0。这将减少比特币核心搜索你钱包 UTXO 所需的时间。</p>
</li>
<li>
<p>Check that everything worked:</p>
<p>检查一切是否正常</p>
<pre><code class="language-sh">bitcoin-cli getwalletinfo
</code></pre>
</li>
<li>
<p>Display your wallet's rare ordinals:</p>
<p>显示你钱包里的稀有序数Ordinals</p>
<pre><code class="language-sh">ord wallet sats
</code></pre>
</li>
</ol>
<h3 id="searching-for-rare-ordinals-in-a-wallet-that-exports-multi-path-descriptors"><a class="header" href="#searching-for-rare-ordinals-in-a-wallet-that-exports-multi-path-descriptors">Searching for Rare Ordinals in a Wallet that Exports Multi-path Descriptors</a></h3>
<p>Some descriptors describe multiple paths in one descriptor using angle brackets, e.g., <code>&lt;0;1&gt;</code>. Multi-path descriptors are not yet supported by Bitcoin Core, so you'll first need to convert them into multiple descriptors, and then import those multiple descriptors into Bitcoin Core.</p>
<h3 id="在导出多路径描述符的钱包里搜索稀有的序数ordinals"><a class="header" href="#在导出多路径描述符的钱包里搜索稀有的序数ordinals">在导出多路径描述符的钱包里搜索稀有的序数Ordinals</a></h3>
<p>一些描述符使用尖括号(例如 <code>&lt;0;1&gt;</code>)在一个描述符中描述多个路径。比特币核心目前还不支持多路径描述符,所以你需要先将它们转换为多个描述符,然后将这些多个描述符导入到比特币核心中。</p>
<ol>
<li>
<p>First get the multi-path descriptor from your wallet. It will look something like this:</p>
<p>首先从你的钱包获取多路径描述符。它看起来会像这样:</p>
<pre><code>wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/&lt;0;1&gt;/*)#fw76ulgt
</code></pre>
</li>
<li>
<p>Create a descriptor for the receive address path:</p>
<p>创建接收地址路径的描述符:</p>
<pre><code>wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)
</code></pre>
<p>And the change address path:</p>
<p>以及找零地址路径的描述符:</p>
<pre><code>wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)
</code></pre>
</li>
<li>
<p>Get and note the checksum for the receive address descriptor, in this case <code>tpnxnxax</code>:</p>
<p>获取并记下接收地址描述符的校验和,在这个例子中是 <code>tpnxnxax</code></p>
<pre><code class="language-sh">bitcoin-cli getdescriptorinfo \
'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)'
</code></pre>
Expand All @@ -369,7 +369,7 @@ <h3 id="searching-for-rare-ordinals-in-a-wallet-that-exports-multi-path-descript
"hasprivatekeys": false
}
</code></pre>
<p>And for the change address descriptor, in this case <code>64k8wnd7</code>:</p>
<p>以及找零地址描述符的校验和,在这个例子中是 <code>64k8wnd7</code>7:</p>
<pre><code class="language-sh">bitcoin-cli getdescriptorinfo \
'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)'
</code></pre>
Expand All @@ -383,12 +383,12 @@ <h3 id="searching-for-rare-ordinals-in-a-wallet-that-exports-multi-path-descript
</code></pre>
</li>
<li>
<p>Load the wallet you want to import the descriptors into:</p>
<p>加载你要导入描述符的钱包:</p>
<pre><code class="language-sh">bitcoin-cli loadwallet foo-watch-only
</code></pre>
</li>
<li>
<p>Now import the descriptors, with the correct checksums, into Bitcoin Core.</p>
<p>现在将带有正确校验和的描述符导入到比特币核心中:</p>
<pre><code class="language-sh">bitcoin-cli \
importdescriptors \
'[
Expand All @@ -402,27 +402,27 @@ <h3 id="searching-for-rare-ordinals-in-a-wallet-that-exports-multi-path-descript
}
]'
</code></pre>
<p>If you know the Unix timestamp when your wallet first started receive transactions, you may use it for the value of the <code>"timestamp"</code> fields instead of <code>0</code>. This will reduce the time it takes for Bitcoin Core to search for your wallet's UTXOs.</p>
<p>如果你知道你的钱包首次开始接收交易的 Unix 时间戳,你可以使用它来替代 <code>"timestamp" </code>字段中的 <code>0</code>。这将减少比特币核心搜索你钱包 UTXO 所需的时间。</p>
</li>
<li>
<p>Check that everything worked:</p>
<p>检查一切是否正常</p>
<pre><code class="language-sh">bitcoin-cli getwalletinfo
</code></pre>
</li>
<li>
<p>Display your wallet's rare ordinals:</p>
<p>显示你钱包里的稀有序数Ordinals</p>
<pre><code class="language-sh">ord wallet sats
</code></pre>
</li>
</ol>
<h3 id="exporting-descriptors"><a class="header" href="#exporting-descriptors">Exporting Descriptors</a></h3>
<h3 id="输出描述符"><a class="header" href="#输出描述符">输出描述符</a></h3>
<h4 id="麻雀钱包"><a class="header" href="#麻雀钱包">麻雀钱包</a></h4>
<p>Navigate to the <code>Settings</code> tab, then to <code>Script Policy</code>, and press the edit button to display the descriptor.</p>
<h3 id="transferring-ordinals"><a class="header" href="#transferring-ordinals">Transferring Ordinals</a></h3>
<p>The <code>ord</code> wallet supports transferring specific satoshis by using the name of the satoshi. To send the satoshi <code>zonefruits</code>, do:</p>
<p>导航到 <code>设置 </code>标签,然后到 <code>脚本策略</code>,按下编辑按钮以显示描述符。</p>
<h3 id="转移ordinals"><a class="header" href="#转移ordinals">转移Ordinals</a></h3>
<p><code>ord</code> 钱包支持通过使用 satoshi 的名称来转移特定的 satoshi。要发送名为 <code>zonefruits</code> 的 satoshi,可以执行以下操作:</p>
<pre><code>ord wallet send &lt;RECEIVING_ADDRESS&gt; zonefruits --fee-rate 21
</code></pre>
<p>You can also use the <code>bitcoin-cli</code> commands <code>createrawtransaction</code>, <code>signrawtransactionwithwallet</code>, and <code>sendrawtransaction</code>, but this method can be complex and is outside the scope of this guide.</p>
<p>你也可以使用 <code>bitcoin-cli</code> 命令<code> createrawtransaction</code><code>signrawtransactionwithwallet</code> <code>sendrawtransaction</code>,但这种方法可能比较复杂,超出了本指南的范围。</p>

</main>

Expand Down
2 changes: 1 addition & 1 deletion zh/guides/teleburning.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ <h2 id="以太坊"><a class="header" href="#以太坊">以太坊</a></h2>
<p>以太坊的燃烧传送teleburn地址是根据取铭文ID的SHA-256哈希的前20字节来生成的 这个哈希被序列化为36字节,其中前32字节包含交易ID, 最后四个字节包含大端序的铭文索引,并将其解释为一个Ethereum地址。</p>
<h2 id="示例"><a class="header" href="#示例">示例</a></h2>
<p>ENS 域名 <a href="https://app.ens.domains/rodarmor.eth">rodarmor.eth</a>, 被燃烧传输teleburned 到 <a href="https://ordinals.com/inscription/6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0">inscription zero</a>.</p>
<p>The inscription ID of inscription zero is <code>6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0</code>.</p>
<p>零号铭文的铭文ID是<code>6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0</code>.</p>
<p>使用teleburn命令 <code>6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0</code></p>
<pre><code class="language-bash">$ ord teleburn 6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0
</code></pre>
Expand Down
Loading

0 comments on commit 2f3a571

Please sign in to comment.