1 btc = 10^8 sat
Bitcoin UTXO模型:input、output、fee、locking script、unlocking script、sig
https://medium.portto.com/dive-into-how-bitcoin-ordinals-nfts-work-ca5634da73d
https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch06.asciidoc
因为block的size有上限(1 MB),所以矿工会优先打包fee_rate=fee/size
高的交易,以获取最高的fee回报
如何唯一标识每个sat
以每个sat被挖出的顺序作为序号
sat的一些表示方法
sat进入交易后如何追踪
first-in-first-out:[a b] [c] [d e f] → [a b c d] [e f]
fee的追踪
[a b] [c] [d e f] → [a b c d]
[SUBSIDY] [e f] → [SUBSIDY e f]
完整例子
https://medium.portto.com/dive-into-how-bitcoin-ordinals-nfts-work-ca5634da73d
衍生玩法:稀有聪(Rare Satoshi)
一些特殊block被挖出的sat
存储位置:segregated witness (segwit)
https://www.exodus.com/news/segwit-explained/
tx_size = body_size + witness_size/4
存储格式:Taproot
前一笔交易的output,P2TR (Pay-To-Taproot)
后一笔交易的input,在witness的Taproot script中嵌入特定格式的内容
https://docs.ordinals.com/inscriptions.html