4 "github.com/vapor/protocol/bc"
7 // IntraChainOutput satisfies the TypedOutput interface and represents a intra-chain transaction.
8 type IntraChainOutput struct {
10 // Unconsumed suffixes of the commitment and witness extensible strings.
11 CommitmentSuffix []byte
14 // NewIntraChainOutput create a new output struct
15 func NewIntraChainOutput(assetID bc.AssetID, amount uint64, controlProgram []byte) *TxOutput {
18 TypedOutput: &IntraChainOutput{
19 OutputCommitment: OutputCommitment{
20 AssetAmount: bc.AssetAmount{
25 ControlProgram: controlProgram,
31 func (it *IntraChainOutput) OutputType() uint8 { return IntraChainOutputType }