You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public sealed class RAW : Format() {
public companion object : RAW() {
override val name: String get() = "RAW"
}
public data object COMPRESSED : RAW() {
override val name: String get() = "RAW_COMPRESSED"
}
}
Hi, @whyoleg currently the EC public key encoder/decoder only supports the uncompressed format which starts with 04. I plan to add a new compressed format in RAW format. What do you think :)
The text was updated successfully, but these errors were encountered:
Hey!
Yeah, that should be fine with minor API addition: let's add a name for companion object, so that it will be:
publiccompanionobject Uncompressed : RAW()
In this way, both Format.RAW and Format.RAW.Uncompressed will be resolved and first could be used in most of the cases, while explicit name could be used for cases when you need to handle both variants.
Also, on current moment formats with multiple representations uses / as a separator in name, so let's use RAW/COMPRESSED
Hi, @whyoleg currently the EC public key encoder/decoder only supports the uncompressed format which starts with 04. I plan to add a new compressed format in RAW format. What do you think :)
The text was updated successfully, but these errors were encountered: