Created
October 4, 2023 13:39
-
-
Save kushti/2d06a5dfeff216a7312ae97b62744cf0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object SigmaBoolean extends App { | |
val addr = "9hUzb5RvSgDqJdtyCN9Ke496Yy63mpcUJKbRq4swzQ5EQKgygKT" | |
val eae = ErgoAddressEncoder.Mainnet | |
val script = eae.fromString("9hUzb5RvSgDqJdtyCN9Ke496Yy63mpcUJKbRq4swzQ5EQKgygKT").get.asInstanceOf[P2PKAddress].pubkey | |
val bsRaw = Base58.decode("9hUzb5RvSgDqJdtyCN9Ke496Yy63mpcUJKbRq4swzQ5EQKgygKT").get | |
val bs = bsRaw.tail.dropRight(4) | |
println(Base16.encode(bs)) | |
val dlogSerializer = ProveDlogSerializer(ProveDlog.apply) | |
println(Base16.encode(ValueSerializer.serialize(script))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment