The Fletcher checksum could be computed using the scodec infrastructure as follows:
Note the checksum is appended to the input BitVector.
With a test
This design is not consistent with the scodec cryptographic signing functionality.
Unfortunately that code is built around the Java security API and the core
java.security.Signature
class is not appropriate for very much simpler checksum functionality.