forked from TrueCloudLab/neoneo-go
The logic here is that we'll have all binary encoding/decoding done via our io package, which simplifies error handling. This functionality doesn't belong to util, so it's moved. This also expands BufBinWriter with Reset() method to fit the needs of core package.
11 lines
251 B
Go
11 lines
251 B
Go
package transaction
|
|
|
|
import "github.com/CityOfZion/neo-go/pkg/io"
|
|
|
|
// TXer is interface that can act as the underlying data of
|
|
// a transaction.
|
|
type TXer interface {
|
|
DecodeBinary(*io.BinReader) error
|
|
EncodeBinary(*io.BinWriter) error
|
|
Size() int
|
|
}
|