-
Couldn't load subscription status.
- Fork 90
SIP-033: Clarity 4: high-demand new builtins #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Without a `with-stacking`, the body may not stack the STX of the `asset-owner`.
Allowances are now passed in as an argument to the expression, similar to the way `let` works.
Using `u0` for an error code might be confusing, so start at `u1`.
|
Thank you for adding secp256r1 support to SIP-033. This allows Stacks developers to build applications with native passkey integration, unlocking use cases like 2FA for VCs in multisig setups, embedded mints on X with Touch ID purchases, and instant wallet creation with Face ID in seconds. All secured by the user's device secure enclave without third parties. |
Update sip-clarity4.md - stylistic and ordering editing to match late…
|
@obycode now that sip number is assigned, can you rename the folder to |
Done ✅ |
530be02 to
ab1c9e0
Compare
ab1c9e0 to
d7b0517
Compare
|
I'm looking for examples of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great to me. I am hereby signing-off on SIP033.
I see one open comment, I would like to see addressed but I consider that non-blocking for this editor sign-off.
|
Hi @obycode, did the proposal for type-aliases (clarity-lang/reference#6) especially for tuples and list definitions get into this SIP or SIP-034? I think this would really great ergonomic improvement. Thanks for all the great work taking place in the ecosystem! |
Hi @mphizi. Thanks for the input. No, this set of changes described here is all that is included in Clarity 4, but that one is definitely still on the list to include in a future version. |
The Clarity smart contract language powers decentralized applications across a
wide range of domains. Over years of real-world use, developers have encountered
several pain points when interacting with other, sometimes untrusted, contracts.
Securely calling unknown contracts unlocks powerful use cases, but demands
careful safeguards.
This SIP addresses common feedback and requests from builders in the ecosystem.
It proposes new Clarity features to make it easier for developers to write
secure and composable smart contracts. Specifically, it proposes:
enables on-chain contract code validation, for example allowing contract A to
validate that contract B follows a specific template and is therefore safe to
interact with. This is especially useful for enabling bridges and
marketplaces to safely and trustlessly support a dynamic set of assets.
to protect its assets. These allow a contract to safely call arbitrary
external contracts (e.g. passed in as traits) while ensuring that if the
executed code moves assets beyond those specified, the changes will be rolled
back.
string-asciivalues. This function will enable developers to easily convert values like
bools andprincipals into their ASCII string representations,facilitating the generation of string-based messages for interacting with
cross-chain protocols.
Note
Additional feature added 👇
keyword will allow developers to easily access the timestamp of the block
currently being processed, enabling time-based logic and features in their
smart contracts. This is especially important for DeFi applications.