時価総額: $2.8982T -1.050%
ボリューム(24時間): $107.4617B -19.040%
  • 時価総額: $2.8982T -1.050%
  • ボリューム(24時間): $107.4617B -19.040%
  • 恐怖と貪欲の指数:
  • 時価総額: $2.8982T -1.050%
暗号
トピック
暗号化
ニュース
暗号造園
動画
トップニュース
暗号
トピック
暗号化
ニュース
暗号造園
動画
bitcoin
bitcoin

$93215.179206 USD

0.38%

ethereum
ethereum

$1786.943555 USD

0.06%

tether
tether

$1.000175 USD

0.00%

xrp
xrp

$2.203069 USD

-0.65%

bnb
bnb

$605.391706 USD

-1.23%

solana
solana

$149.256425 USD

0.61%

usd-coin
usd-coin

$0.999535 USD

-0.03%

dogecoin
dogecoin

$0.174954 USD

-3.17%

cardano
cardano

$0.688461 USD

0.13%

tron
tron

$0.244971 USD

-1.16%

sui
sui

$3.000916 USD

9.45%

chainlink
chainlink

$14.767585 USD

3.50%

avalanche
avalanche

$22.085304 USD

-0.60%

unus-sed-leo
unus-sed-leo

$9.165805 USD

1.11%

stellar
stellar

$0.263078 USD

-1.40%

暗号通貨のニュース記事

op_returnを使用して、ビットコインブロックチェーンにメッセージを残します

2025/04/24 09:11

ブロックチェーンの世界で特別なコミュニケーション方法として、オンチェーンメッセージは、近年、さまざまなセキュリティインシデントで頻繁に使用されています。

op_returnを使用して、ビットコインブロックチェーンにメッセージを残します

Author:Lisa

著者:リサ

Editor: Sherry

編集者:シェリー

Recently, blockchain security incidents have frequently occurred, and attackers often leave messages on-chain to communicate with the victims or the white hat team. On-chain messages, as a special communication method in the blockchain world, have been used in various security incidents in recent years. For example, SlowMist recently assisted KiloEx in conducting multiple rounds of communication with the attacker through on-chain messages, and finally successfully facilitated the return of all stolen funds of US$8.44 million. In an anonymous environment, on-chain messages can be used as an effective tool to establish initial dialogues and lay the foundation for subsequent fund recovery.

最近、ブロックチェーンのセキュリティインシデントが頻繁に発生しており、攻撃者はしばしば犠牲者やホワイトハットチームと通信するためにメッセージをチェーン上に残しています。ブロックチェーンの世界で特別なコミュニケーション方法として、オンチェーンメッセージは、近年、さまざまなセキュリティインシデントで使用されています。たとえば、SlowMistは最近、Kiloexがオンチェーンメッセージを介して攻撃者との複数回のラウンドのコミュニケーションを実施するのを支援し、最終的に844万米ドルのすべての盗まれた資金の返還を促進しました。匿名の環境では、オンチェーンメッセージは、初期の対話を確立し、その後のファンド回復の基礎を築くための効果的なツールとして使用できます。

In our previous article "First aid guide for stolen funds: On-chain messages", we introduced in detail the message method on Ethereum. The Bitcoin network also supports on-chain messages, but the implementation methods of the two are slightly different. The core tool for Bitcoin on-chain messages is the OP_RETURN instruction. It allows users to embed 80 bytes of custom data in transactions. This part of data will not be used by nodes for transaction verification, nor will it affect the status of UTXO. It is purely used to record information and will be fully recorded in the blockchain.

以前の記事「盗まれた資金のための応急処置ガイド:オンチェーンメッセージ」では、Ethereumのメッセージメソッドを詳細に紹介しました。ビットコインネットワークもオンチェーンメッセージをサポートしていますが、2つの実装方法はわずかに異なります。ビットコインオンチェーンメッセージのコアツールは、op_return命令です。ユーザーは、トランザクションに80バイトのカスタムデータを埋め込むことができます。データのこの部分は、トランザクション検証のためにノードによって使用されず、UTXOのステータスにも影響しません。情報を記録するために純粋に使用され、ブロックチェーンに完全に記録されます。

How to use OP_RETURN to leave messages on the chain

op_returnを使用してチェーンにメッセージを残す方法

Step 1: Encode the message content

ステップ1:メッセージコンテンツをエンコードします

First, convert the text information to be sent into hexadecimal (HEX) format. The OP_RETURN instruction on the Bitcoin chain only accepts HEX format data.

最初に、送信するテキスト情報を16進(16進)形式に変換します。ビットコインチェーンに関するOP_RETURN命令は、HEX形式のデータのみを受け入れます。

For example, if you want to leave a message:

たとえば、メッセージを残したい場合:

This is a test.

これはテストです。

The converted HEX is:

変換された六角形は次のとおりです。

54686973206973206120746573742e

54686973206973206120746573742E

This can be done using an online format conversion tool or via a Python script:

これは、オンライン形式の変換ツールを使用して、またはPythonスクリプトを使用して実行できます。

text = "Hello, this is a test."hex_text = text.encode("utf-8").hex()print(hex_text)

text = "こんにちは、これはテストです。" hex_text = text.encode( "utf-8")。hex()print(hex_text)

The message content must be less than 160 hexadecimal characters, or 80 bytes. If the length exceeds this limit, it is recommended to simplify the message or send it in multiple messages.

メッセージコンテンツは、160の160文字未満、または80バイト未満でなければなりません。長さがこの制限を超える場合は、メッセージを簡素化するか、複数のメッセージで送信することをお勧めします。

Step 2: Construct a transaction with OP_RETURN

ステップ2:op_returnでトランザクションを構築します

Next, you need to use a Bitcoin wallet or tool that supports custom transactions to create a transaction with an OP_RETURN output.

次に、カスタムトランザクションをサポートするビットコインウォレットまたはツールを使用して、OP_RETURN出力でトランザクションを作成する必要があります。

Taking Bitcoin Core as an example, use createrawtransaction to manually add OP_RETURN output:

Bitcoin Coreを例にとると、CreaterAwTransactionを使用してOp_return出力を手動で追加します。

bitcoin-cli createrawtransaction '[{"txid":"your_input_txid","vout":0}]' '[{"data":"54686973206973206120746573742e"}]'

bitcoin-cri createrawtransaction '[{"txid": "your_input_txid"、 "vout":0}]' '[{"data": "54686973206973206120746573742e"}]'

The transaction constructed in this way will not actually transfer the money, but will only write the message on the chain.

この方法で構築されたトランザクションは、実際にはお金を転送するのではなく、チェーンにメッセージを書くだけです。

Take the imToken wallet as an example. Enter the BTC wallet transfer interface and turn on "Advanced Mode". Enter the hexadecimal information in the "OP_RETURN" input box. Click "Next" to complete the transaction information confirmation. Enter the transaction password to successfully send the transaction with OP_RETURN information. Please make sure that "Input amount = Output amount + Miner's fee".

例としてimtokenウォレットを取ります。 BTCウォレット転送インターフェイスを入力し、「Advanced Mode」をオンにします。 「op_return」入力ボックスに16進情報を入力します。 [次へ]をクリックして、トランザクション情報確認を完了します。トランザクションパスワードを入力して、OP_RETURN情報を使用してトランザクションを正常に送信します。 「入力量=出力額 +マイナー料金」を確認してください。

Step 3: Broadcast the transaction

ステップ3:トランザクションをブロードキャストします

The signed transaction is broadcasted through the Bitcoin network. Since OP_RETURN transactions do not actually transfer funds, they must include mining fees to be processed and wait for miners to pack them into blocks. Once the transaction is confirmed, the message will be permanently stored in the Bitcoin blockchain.

署名されたトランザクションは、ビットコインネットワークを介してブロードキャストされます。 Op_returnトランザクションは実際には資金を譲渡しないため、採掘料を処理するために採掘料を含め、鉱夫がそれらをブロックに詰めるのを待つ必要があります。トランザクションが確認されると、メッセージはビットコインブロックチェーンに永久に保存されます。

Step 4: View the message content

ステップ4:メッセージコンテンツを表示します

After completing the transaction, you will get a TXID, which can be viewed through the block browser. The browser will usually automatically decode the OP_RETURN hexadecimal data back to ASCII, for example:

トランザクションを完了すると、TXIDが取得されます。これは、ブロックブラウザーを介して表示できます。ブラウザは通常、op_return 16進数データをASCIIに自動的にデコードします。たとえば、:

When this user posted these warnings, he did not just leave a message, but also burned a large amount of Bitcoin. Due to the characteristics of OP_RETURN output, any Bitcoin sent to such transactions will be burned and cannot be used. According to statistics, this user burned more than $300,000 worth of Bitcoin in this series of operations.

このユーザーがこれらの警告を投稿したとき、彼はメッセージを残すだけでなく、大量のビットコインを燃やしました。 OP_Return出力の特性により、そのようなトランザクションに送信されるビットコインは焼かれ、使用できません。統計によると、このユーザーは、この一連の運用で300,000ドル以上のビットコインを燃やしました。

Summarize

要約します

On-chain messages, especially OP_RETURN in the Bitcoin network, provide an anonymous, public and tamper-proof communication method, which is frequently used in the initial contact and information transmission of fund recovery. However, it should be noted that on-chain messages may also be used by attackers to guide victims to visit malicious links or perform risky operations (such as entering private key decryption, etc.), so be sure to remain vigilant and avoid viewing and processing suspicious information on untrusted devices. When encountering a security incident, it is recommended to contact a professional security team as soon as possible to assist in analysis and improve the success rate of fund recovery. At the same time, users and project parties should

オンチェーンメッセージ、特にビットコインネットワークのOp_returnは、ファンドリカバリの最初の連絡先と情報伝達で頻繁に使用される匿名、パブリック、改ざん防止通信方法を提供します。ただし、攻撃者は、攻撃者が悪意のあるリンクを訪問したり、危険な操作を実行したり(秘密鍵の復号化などを入力するなど)、攻撃者が攻撃者によって使用することもできます。セキュリティインシデントに遭遇した場合は、分析を支援し、ファンド回復の成功率を改善するために、できるだけ早く専門的なセキュリティチームに連絡することをお勧めします。同時に、ユーザーとプロジェクトパーティーが必要です

免責事項:info@kdj.com

提供される情報は取引に関するアドバイスではありません。 kdj.com は、この記事で提供される情報に基づいて行われた投資に対して一切の責任を負いません。暗号通貨は変動性が高いため、十分な調査を行った上で慎重に投資することを強くお勧めします。

このウェブサイトで使用されているコンテンツが著作権を侵害していると思われる場合は、直ちに当社 (info@kdj.com) までご連絡ください。速やかに削除させていただきます。

2025年04月24日 に掲載されたその他の記事