hexresearch / hschain-utxo

UTXO-based contracts for hschain
0 stars 0 forks source link

Problem with bytes representation: catenation of bytes is counterintuitive #206

Open anton-k opened 3 years ago

anton-k commented 3 years ago
 > appendBytes (bytes "12") (bytes "34") == (bytes "1234")
False
anton-k commented 3 years ago

Though in ghci:

("12" <> "34") == ("1234" :: B.ByteString)
True

I think we should use plain fromString instead of decodeBase58