• Luke Champine's avatar
    UnmarshalSia now takes an io.Reader · fe3120a9
    Luke Champine authored
    Previously, types implementing the SiaMarshaler interface would
    be automatically length-prefixed by encode. However, this makes it
    impossible to add Marshal/Unmarshal methods to a type without
    breaking compatibility; many existing types do not begin with a
    length prefix, e.g. structs.
    fe3120a9
currency_test.go 7.46 KB