Skip to content

Instantly share code, notes, and snippets.

@kushti
Created November 4, 2020 11:54
Show Gist options
  • Save kushti/cf23bc6448b4b1858a93290bc64651d0 to your computer and use it in GitHub Desktop.
Save kushti/cf23bc6448b4b1858a93290bc64651d0 to your computer and use it in GitHub Desktop.
object SigmaByteArrayEncode extends App {
import scorex.util.encode.Base16
val bs = Base16.decode("10010101d801d601d17300ea0272017201").get
val bac = ByteArrayConstant(bs)
println(Base16.encode(ValueSerializer.serialize(bac)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment