4 "github.com/bytom/vapor/protocol/bc"
7 // VoteOutput satisfies the TypedOutput interface and represents a vote transaction.
8 type VoteOutput struct {
10 // Unconsumed suffixes of the commitment and witness extensible strings.
11 CommitmentSuffix []byte
15 // NewVoteOutput create a new output struct
16 func NewVoteOutput(assetID bc.AssetID, amount uint64, controlProgram []byte, vote []byte) *TxOutput {
19 TypedOutput: &VoteOutput{
20 OutputCommitment: OutputCommitment{
21 AssetAmount: bc.AssetAmount{
26 ControlProgram: controlProgram,
33 // OutputType implement the txout interface
34 func (it *VoteOutput) OutputType() uint8 { return VoteOutputType }