Add required `error` method to `Decoder`

Since rustc pull #16130 there has been a new method in the `Decoder`
trait for signalling application-specific decode errors.
Merge pull request #10 from apoelstra/apperror

Add required `error` method to `Decoder`