4 "github.com/vapor/protocol/bc"
7 // VoteTxOutput satisfies the TypedOutput interface and represents a vote transaction.
8 type VoteTxOutput 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: &VoteTxOutput{
20 OutputCommitment: OutputCommitment{
21 AssetAmount: bc.AssetAmount{
26 ControlProgram: controlProgram,
33 func (it *VoteTxOutput) OutputType() uint8 { return VoteOutputType }