Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Compact Standard Library: A Verified Reference to Every Export

DEV Community·Harrie·28 days ago
#y7Io7wOQ
Reading 0:00
15s threshold

I got frustrated trying to use the Compact standard library. The docs list types like CurvePoint , Scalar , MerkleTree as if they work. Other articles repeat those names. You copy the pattern, run the compiler, and get an error telling you the name was deprecated two versions ago. Or that the function signature is wrong. Or that the type simply doesn't exist. So I ran every single export through the compiler. Not "tested the general concept" — ran actual contracts through Compact v0.30.0 until they compiled or didn't. What follows is what I found: exact signatures, working code, and a clear note wherever something that's documented doesn't actually work yet. Every code block in this article compiles. Where something doesn't, that's stated explicitly, with the error. The companion repo — github.com/IamHarrie-Labs/compact-stdlib-reference — has all seven contracts as standalone .compact files you can run yourself.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More