🟧 Clarity 4 is officially live! With Bitcoin block 923222, SIP-033 has been activated unlocking key new functions for developers across the Stacks ecosystem. For ALEX the most important are: 🔸 (contract-hash?) - Fetch the hash of a contact's code body This enables on-chain contract code validation, for example allowing one contract to validate that another contract 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. 🔸(restrict-assets?) - Allow a contract to set post-conditions Allow a contract to set post-conditions. These functions 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.
3.779
12
Der Inhalt dieser Seite wird von Drittparteien bereitgestellt. Sofern nicht anders angegeben, ist OKX nicht der Autor der zitierten Artikel und erhebt keinen Anspruch auf das Urheberrecht an den Materialien. Die Inhalte dienen ausschließlich zu Informationszwecken und spiegeln nicht die Ansichten von OKX wider. Sie stellen keine Form der Empfehlung dar und sind weder als Anlageberatung noch als Aufforderung zum Kauf oder Verkauf digitaler Assets zu verstehen. Soweit generative KI zur Bereitstellung von Zusammenfassungen oder anderen Informationen eingesetzt wird, kann der dadurch erzeugte Inhalt ungenau oder widersprüchlich sein. Mehr Infos findest du im verlinkten Artikel. OKX haftet nicht für Inhalte, die auf Drittpartei-Websites gehostet werden. Digitale Assets, einschließlich Stablecoins und NFT, bergen ein hohes Risiko und können stark schwanken. Du solltest sorgfältig überlegen, ob der Handel mit oder das Halten von digitalen Assets angesichts deiner finanziellen Situation für dich geeignet ist.