Alexander Nemish

Results 13 comments of Alexander Nemish

Wow, I'm surprised somebody is actually using it! :) I'm thinking on migrating to Scala 3, although I'm pretty booked right now so I can't promise any dates, unfortunately.

That's an interesting one. As @xeno_by explained that's because Scala checks overriding during refchecks phase, which apparently is executed after macro expansion. And as after javascript macro expansion there is...

Oh, it's so boring :) I'll fix it anyway.

"A bit later" I've implemented it [87e352252a7722e53b5b8fa808c466ee14c4db7b](https://github.com/nau/scalus/commit/87e352252a7722e53b5b8fa808c466ee14c4db7b)

> One of the commit messages says "DST as byte array." Is this it? How come? String is the most natural type for DST... Yes, I agree. The problem arises...

My main concert is that `DST` is a byte array, and nowhere in any standard it's specified to be ASCII encoded string. It's _assumed_ and _recommended_ to be so, but...

As for `uncompress`. Cardano has builtins `compress`/`uncompress`. ```scala def bls12_381_G1_compress(p: BLS12_381_G1_Element): ByteString def bls12_381_G1_uncompress(bs: ByteString): BLS12_381_G1_Element ``` I didn't find an obvious way to get those in Java bindings. If...

Oh, one more thing. For len(DST) > 255 `DST = H("H2C-OVERSIZE-DST-" || a_very_long_DST)` which results in a byte array that is not a valid UTF-8 string. So essentially, current implementation...