TX_Wallet_Data

和个人相关的有状态的 UTXO.

这里的数据,仅保存在钱包。

// this structure is kept by wallet
type TX_Wallet_Data struct {
    TXdata globals.TX_Output_Data `msgpack:"txdata"` // all the fields of output data

    WAmount      uint64       `msgpack:"wamount"` // actual amount, in case of miner it is verbatim, for other cases it decrypted
    WKey         ringct.CtKey `msgpack:"wkey"`    // key which is used to later send this specific output
    WKimage      crypto.Key   `msgpack:"wkimage"` // key image which gets consumed when this output is spent
    WSpent       bool         `msgpack:"wspent"`  // whether this output has been spent
    WSpentPool   bool         //`msgpack:""`// we built and send out a tx , but it has not been mined
    WPaymentID   []byte       `msgpack:"wpaymentid"`   // payment if if present and decrypted if required
    WSecretTXkey crypto.Key   `msgpack:"wsecrettxkey"` // tx secret which can be be used to prove that the funds have been spent
}

注意,它包含了 TX_Output_Data 数据。

results matching ""

    No results matching ""