5 // CrossChainOutput is the result of a transfer of value. The value it contains
6 // can never be accessed on side chain, as it has been transfered back to the
8 // CrossChainOutput satisfies the Entry interface.
9 // (Not to be confused with the deprecated type TxOutput.)
11 func (CrossChainOutput) typ() string { return "crosschainoutput1" }
12 func (o *CrossChainOutput) writeForHash(w io.Writer) {
13 mustWriteForHash(w, o.Source)
14 mustWriteForHash(w, o.ControlProgram)
17 // NewCrossChainOutput creates a new CrossChainOutput.
18 func NewCrossChainOutput(source *ValueSource, controlProgram *Program, ordinal uint64) *CrossChainOutput {
19 return &CrossChainOutput{
21 ControlProgram: controlProgram,