2018-03-14 10:36:59 +01:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import "io"
|
|
|
|
|
2019-01-25 14:20:35 +03:00
|
|
|
// TXer is interface that can act as the underlying data of
|
2018-03-14 10:36:59 +01:00
|
|
|
// a transaction.
|
|
|
|
type TXer interface {
|
|
|
|
DecodeBinary(io.Reader) error
|
|
|
|
EncodeBinary(io.Writer) error
|
2019-08-30 11:28:30 +03:00
|
|
|
Size() int
|
2018-03-14 10:36:59 +01:00
|
|
|
}
|