交易签名

生成、验证过程中使用到的数据结构。

// structure using which information is fed from wallet
// these are only used while proving ringct simple
  • 输出
  • 输入

Input_info

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
}

Output_info

type Output_info struct {
    Amount           uint64     // only first output is locked
    Public_View_Key  crypto.Key // taken from address
    Public_Spend_Key crypto.Key // taken from address
    Scalar_Key       crypto.Key // used to encrypt amounts
    // Destination crypto.Key
    //Addr  address.Address
}

results matching ""

    No results matching ""