转账,也有就数据的处理。那么就有源数据,最终处理结果。

这里指的是源数据里的“输入”相关数据:每一笔金额 + 身份证。

type Input_info struct {
    Amount       uint64      // amount in this input
    Key_image    crypto.Hash // keyimage in this input
    Index        int         // index position within ring members
    Index_Global uint64
    Ring_Members []uint64 // ring members  already sorted absolute
    Pubs         []CtKey  // public keys from ring members ( secret key from our input)
    Sk           CtKey    // secret key for the input
}

构建符合数据结构的交易之前,需要准备一些数据,例如:输入相关数据。

数据基本来源于转账时的钱包数据。

results matching ""

    No results matching ""