1. 01 Feb, 2016 1 commit
    • David Vorick's avatar
      clean up types/currency.go · 1f0440a4
      David Vorick authored
      switch from DEBUG wrapped panics to calls to build.Critical. Also add
      some docstrings, and make the tests compatible with the calls to
      build.Critical.
      1f0440a4
  2. 22 Sep, 2015 1 commit
  3. 21 Sep, 2015 1 commit
  4. 12 Sep, 2015 1 commit
    • Luke Champine's avatar
      MarshalSia now takes an io.Writer · c87dde78
      Luke Champine authored
      This makes sense, symmetry-wise, and it also means that we can
      encode large objects (e.g. blocks) to streams without having to
      hold the entire byte slice in memory.
      c87dde78
  5. 11 Sep, 2015 1 commit
    • 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
  6. 25 Aug, 2015 1 commit
    • Luke Champine's avatar
      marshal Currency as JSON string · f568ec46
      Luke Champine authored
      Previously, the Currency type was marshalled as a JSON number.
      This caused the value to be cast to a double when the JSON was
      parsed by JavaScript.
      f568ec46
  7. 02 Aug, 2015 1 commit
  8. 07 Jul, 2015 1 commit
  9. 04 Apr, 2015 2 commits
  10. 03 Apr, 2015 1 commit
  11. 02 Apr, 2015 3 commits