4 "github.com/vapor/protocol/bc"
7 // VetoInput satisfies the TypedInput interface and represents a veto transaction.
8 type VetoInput struct {
9 VetoCommitmentSuffix []byte // The unconsumed suffix of the output commitment
10 Arguments [][]byte // Witness
11 Vote []byte // voter xpub
15 // NewVetoInput create a new VetoInput struct.
16 func NewVetoInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID, amount, sourcePos uint64, controlProgram []byte, vote []byte) *TxInput {
17 sc := SpendCommitment{
18 AssetAmount: bc.AssetAmount{
23 SourcePosition: sourcePos,
25 ControlProgram: controlProgram,
29 TypedInput: &VetoInput{
37 // InputType is the interface function for return the input type.
38 func (ui *VetoInput) InputType() uint8 { return VetoInputType }