- The traditional way to store data is via an OP_RETURN. On Bitcoin, this is limited to 40 bytes of data. Bitcoin Cash increased this limit to 220 bytes just yesterday. (2018.05.16)
- 이더리엄에도 담을 수 있음
- You can also store arbitrary data (more or less) on ethereum via a smart contract.
트랜잭션상의 삽입 예
OP_RETURN 코드를 사용함으로써 UTXO set에 저장되지 않고, 그럼으로써 UTXO memory pool을 크게 부풀리지(bloat) 않는다.
Unspendable UTXO가 됨
sha256 바이트의 인풋 사이즈의 제한은 없나?
제한은 있지만, 그 사이즈가 어마어마함. SHA-256의 인풋의 사이즈가 64비트 값으로 표현될 수 있도록 규정함.
따라서, (2^64 - 1) / 8 bytes ~= 2,091,752 terabytes
참고 사이트: https://stackoverflow.com/questions/17388177/is-there-a-limit-for-sha256-input