(reader io.Reader, isCoinBase bool)
| 221 | } |
| 222 | |
| 223 | func (s *Script) Unserialize(reader io.Reader, isCoinBase bool) (err error) { |
| 224 | return s.Decode(reader, isCoinBase) |
| 225 | } |
| 226 | |
| 227 | func (s *Script) EncodeSize() uint32 { |
| 228 | return util.VarIntSerializeSize(uint64(len(s.data))) + uint32(len(s.data)) |