시가총액: $2.8926T -1.350%
거래량(24시간): $105.3401B -24.820%
  • 시가총액: $2.8926T -1.350%
  • 거래량(24시간): $105.3401B -24.820%
  • 공포와 탐욕 지수:
  • 시가총액: $2.8926T -1.350%
암호화
주제
암호화
소식
cryptostopics
비디오
최고의 뉴스
암호화
주제
암호화
소식
cryptostopics
비디오
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

저자 : 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가 온 체인 메시지를 통해 공격자와 여러 라운드의 커뮤니케이션을 수행하는 데 도움을 주었으며, 마침내 840 만 달러의 모든 도난 자금의 수익을 성공적으로 촉진했습니다. 익명 환경에서 온 체인 메시지는 초기 대화를 설정하고 후속 펀드 복구를위한 토대를 마련하는 효과적인 도구로 사용될 수 있습니다.

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.

이전 기사 "도난 자금에 대한 응급 처치 안내서 : 온 체인 메시지"에서 우리는 이더 리움에서 메시지 방법을 자세히 소개했습니다. 비트 코인 네트워크는 또한 온쇄 메시지를 지원하지만이 둘의 구현 방법은 약간 다릅니다. 비트 코인 온 체인 메시지의 핵심 도구는 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 명령은 16 진 형식 데이터 만 허용합니다.

For example, if you want to leave a message:

예를 들어, 메시지를 남기려면 다음과 같습니다.

This is a test.

이것은 테스트입니다.

The converted HEX is:

변환 된 16 진수는 다음과 같습니다.

54686973206973206120746573742e

54686973206973206120746573742E

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

온라인 형식 변환 도구 또는 파이썬 스크립트를 통해 수행 할 수 있습니다.

text = "Hello, this is a test."hex_text = text.encode("utf-8").hex()print(hex_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 개의 16 진 문자 또는 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:

비트 코인 코어를 예로 들어 CreateRawTransaction을 사용하여 OP_RETURN 출력을 수동으로 추가하십시오.

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

Bitcoin-Cli Createrawtransaction '[{ "txid": "your_input_txid", "vout": 0}]' '[{ "data": "5468697320693206120746573742e"}]' '

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 지갑 전송 인터페이스를 입력하고 "고급 모드"를 켜십시오. "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 거래는 실제로 자금을 양도하지 않기 때문에 처리 할 채굴 수수료를 포함하고 광부가 블록에 포장 될 때까지 기다려야합니다. 거래가 확인되면 메시지는 Bitcoin 블록 체인에 영구적으로 저장됩니다.

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 출력의 특성으로 인해 해당 거래로 전송 된 비트 코인은 연소되어 사용할 수 없습니다. 통계에 따르면,이 사용자는이 일련의 작업에서 30 만 달러 이상의 비트 코인을 태웠다.

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

온쇄 메시지, 특히 Bitcoin 네트워크의 OP_Return은 익명, 공개 및 변조 방지 통신 방법을 제공하며, 이는 자금 복구의 초기 접촉 및 정보 전송에 자주 사용됩니다. 그러나 공격자가 피해자가 악의적 인 링크를 방문하거나 위험한 작업 (예 : 개인 키 암호 해독 등을 입력하는 등)을 안내하기 위해 공격자가 온 체인 메시지를 사용할 수도 있으므로, 경계를 유지하고 신뢰할 수없는 장치에서 의심스러운 정보를보고 처리하지 않아야합니다. 보안 사고가 발생하면 분석을 지원하고 펀드 복구의 성공률을 향상시키기 위해 가능한 한 빨리 전문 보안 팀에 연락하는 것이 좋습니다. 동시에 사용자와 프로젝트 당사자는해야합니다

부인 성명:info@kdj.com

제공된 정보는 거래 조언이 아닙니다. kdj.com은 이 기사에 제공된 정보를 기반으로 이루어진 투자에 대해 어떠한 책임도 지지 않습니다. 암호화폐는 변동성이 매우 높으므로 철저한 조사 후 신중하게 투자하는 것이 좋습니다!

본 웹사이트에 사용된 내용이 귀하의 저작권을 침해한다고 판단되는 경우, 즉시 당사(info@kdj.com)로 연락주시면 즉시 삭제하도록 하겠습니다.

2025年04月24日 에 게재된 다른 기사