# CKB Skeleton Hash
## Metadata
**Status**:: #x
**Zettel**:: #zettel/literature
**Created**:: [[2023-12-15]]
**Topic**:: [[♯ CKB Co-Build]]
**Freeform**:: [Freeform](https://www.icloud.com.cn/freeform/0cecbfQlH2Tyh88UR2pjRNgig#CKB_typed_transaction)
## Skeleton hash
只包含如下内容:
1. tx hash
2. 当前 tx 中,超出 input cells 数量的 witness
这样与其发送 typed message 加上 CKB 交易(或CKB 交易部分内容),dapp 可以只把 typed message 和 skeleton hash 发送给钱包端。钱包端把 typed message 和 skeleton hash 拼接到一起,进行一次 hash 运算,用得到的结果作为 signing hash 进行签名。
## Sighash
通常按顺序包含如下部分:
1. tx hash
2. 当前 script group 中,第一个 witness 中除了签名之外的部分
3. 当前 script group 中,剩余的所有 witness
4. 当前 tx 中,超出 input cells 数量的 witness
## Differences
Sighash 2, 3 整合进了 typed message 中