기술 증명: 스캘핑 방지

블록체인 스마트 컨트랙트가 어떻게 비정상적인 티켓 이동을 원천 차단하는지 직접 확인하세요.

나의 NFT 티켓
현재 보유 중인 디지털 자산
Owned

BTS World Tour 2025

Seoul Olympic Stadium

TOKEN ID#8291
Owner
0x742...5f0b

실제 환경에서는?

사용자는 "전송" 버튼조차 볼 수 없습니다. 이 데모는 해커가 코드를 조작하여 강제로 전송 함수를 호출했을 때 블록체인이 이를 어떻게 막아내는지 보여줍니다.

Smart Contract (Solidity)
contracts/TicketNFT.sol
858687888990919293949596979899100101102103104105106107108109
function _update(
address to,
uint256 tokenId,
address auth
) internal override returns (address) {
address from = _ownerOf(tokenId);
// 1. Allow Minting (Creation)
if (from == address(0)) {
return super._update(to, tokenId, auth);
}
// 2. Allow Burn (Destruction)
if (to == address(0)) {
return super._update(to, tokenId, auth);
}
// 3. Allow Refund (Return to Admin)
if (to == owner()) {
return super._update(to, tokenId, auth);
}
// 🛑 4. BLOCK ALL P2P TRANSFERS
revert("P2P transfer is not allowed.");
}

이 코드는 블록체인에 영구적으로 기록되며, 개발자조차 배포 후에는 수정할 수 없습니다.