抽取交易的部分数据(可完全公开),然后进行补充,可以方便后续使用。
在数据里单独存放它们。
type Index_Data struct {
InKey ringct.CtKey // 随机数(公钥)+ 接收方一次地址
ECDHTuple ringct.ECdhTuple // encrypted Amounts,也相当于 commitment
// Key crypto.Hash // stealth address key
// Commitment crypto.Hash // commitment public key
Height uint64 // height to which this belongs
Unlock_Height uint64 // height at which it will unlock
}
和 TX_Output_Data 关系很亲近。
真正想要存储的是“交易输出数据”,“索引数据”只不过是一个引子。