AI助力智能合約開發,提升加密安全性

🎬 YouTube Premium 家庭 Plan成員一位 只需
HK$148/年

不用提供密碼、不用VPN、無需轉區
直接升級你的香港帳號 ➜ 即享 YouTube + YouTube Music 無廣告播放


立即升級 🔗

智能合約開發者認為AI編碼將使加密貨幣更安全,儘管存在編碼風險的擔憂

儘管早期研究顯示AI生成的代碼可能會引入新的安全風險,但智能合約的開發者和審計員告訴Cointelegraph,人工智能輔助編碼正在改善加密貨幣的安全性。

2024年11月,安全與新興技術中心發佈的一份報告警告說,AI輔助編程可能對網絡安全造成損害。該報告指出,AI生成的代碼存在不安全的問題,並且模型本身也容易受到攻擊和操控。研究人員還提到,生成的代碼可能會對未來的AI訓練產生影響,「我們的評估結果顯示,這五個不同模型生成的代碼片段中幾乎有一半包含錯誤」。

AI輔助編程,開發者不會被取代

Cointelegraph採訪的開發者表示,AI工具是用來補充,而不是取代程序員的工作。以化名0xAw的去中心化交易所Base的首席開發者告訴Cointelegraph,他主要將AI用作快速查詢的工具。他表示,AI能夠生成「模板化」的代碼,並開始讓AI進行代碼的快速檢查,「它現在能處理一些非常明顯的問題」。

另一位區塊鏈開發者Anton Holovchenko則表示,他在工作中使用了集成了AI功能的Cursor開發環境,主要用於自動完成和模板化,並強調程序員應根據自己的需求調整代碼,並修正AI的錯誤。

AI在智能合約編程中變得普遍

0xAw提到,他認識的每個人都在某種程度上使用AI進行編程,「通常是作為輔助工具」。他表示,AI工具對於資深程序員來說是節省時間的好幫手,但通常「不夠精確,無法獨立完成所有工作」。

Mike Tiutin,來自加密取證公司AMLBot的區塊鏈架構師兼首席技術官,告訴Cointelegraph,AI的使用普遍性「相當高」。Holovchenko補充說,他認識的「幾乎每位開發者」都在使用某些AI工具,大多數人依賴於ChatGPT和Cursor。

AI預期將改善Web3安全性

Holovchenko相信,AI輔助編程的普及將在有能力的程序員手中提高代碼質量。他指出:「如果你只是隨意編碼或過度依賴AI,你最終會看到AI的回答是『你的代碼現在是安全的』,而你會相信它,因為你不知道如何編碼,而你的代碼實際上可能並不安全。在我看來,AI可以提高代碼質量,但必須與理解編碼的人合作。」

0xAw提到,他注意到一個趨勢是「初級開發者使用AI,並認為它可以為他們做所有事情」,這通常會導致不良結果。不過,他認為在Web3編程中使用AI是「可以的」,因為「智能合約開發需要大量測試和完善」,因此在部署之前錯誤會得到修正。

他還擔心,如果初級開發者過度依賴AI工具,可能無法晉升到高級角色。Tiutin則認為,AI工具將導致「更多具有更強基線安全性的協議——這意味著更少的粗心錯誤」。他預計,AI將在不影響價格的情況下,為智能合約審計公司帶來成本優化,因為所銷售的主要是審計公司的聲譽,而不是審計本身。

在這個快速發展的領域中,AI的應用無疑是雙刃劍。雖然它為開發者提供了更高的效率和某些安全性,但同時也可能導致對技術的過度依賴,尤其是在初級開發者中。這提醒我們,技術的進步不應取代人類的判斷和專業知識,只有將AI視為輔助工具,才能真正提升整體的編程質量和安全性。

以上文章由特價GPT API KEY所翻譯及撰寫。而圖片則由FLUX根據內容自動生成。

🎨 Nano Banana Pro 圖像生成器|打幾句說話就出圖

想畫人像、產品圖、插畫?SSFuture 圖像生成器支援 Flux Gemini Nano Banana Pro 改圖 / 合成, 打廣東話都得,仲可以沿用上一張圖繼續微調。

🆓 Flux 模型即玩,不用登入
🤖 登入後解鎖 Gemini 改圖
📷 支援上載參考圖再生成
⚡ 每天免費額度任你玩
✨ 即刻玩 AI 畫圖
Enhanced AI Image Generation Prompt:

Create a cinematic, studio-quality close-up portrait (9:16 aspect ratio, 4K resolution) of a young East Asian woman on a winter afternoon in Taipei. She stands at the entrance plaza of a bustling shopping mall, bathed in the soft, golden glow of the warm winter sun. She wears a stylish white cocktail dress with a short skirt, her look elegant yet youthful.

Her pose is playful and animated: she raises both hands joyfully above her head, holding a handmade cardboard sign. Written in bold strokes of black marker, the sign reads: "TODAY IS MY BIRTHDAY." Her facial expression is a beautiful blend of joy and gentle shyness—her sparkling eyes and slight blush convey excitement and a touch of bashfulness.

The background subtly hints at the urban Taipei atmosphere, with softly blurred neon signs, modern architecture, and passersby dressed for the season, adding depth and authenticity. Capture delicate details: sunlight warming her skin, the gentle flow of her hair, and the texture of the handwritten sign. The overall mood is warm, festive, and inviting—a true cinematic moment infused with personality and charm.

(四個字是:生日快樂。) Generate an ultra-realistic, highly ultra-detailed, 8k resolution with 1080x1080 pixel portrait of me using the uploaded image for reference (preserved the likeness and the original face for reference) of a cinematic studio portrait of a woman seated on a simple wooden chair with a minimalist design, positioned slightly to the left of the frame. She is captured in a contemplative pose, with her body turned to the left, her left arm resting gracefully on the back of the chair, and her right hand gently touching her face near her lips, conveying a sense of introspection and elegance. Her long, wavy hair cascades naturally over her shoulders, framing her face and adding softness to the composition. She wears an oversized, textured knit sweater that slips off her shoulders, exposing her collarbones and upper chest, emphasizing a relaxed and intimate mood. Her legs are bare, with her right foot flat on the ground and her left knee slightly raised, creating a dynamic line that guides the viewer’s eye through the composition. *** The background is a seamless, deep charcoal or dark brown studio backdrop, providing a rich, neutral setting that enhances the dramatic lighting. The lighting setup features a single, soft yet directional light source positioned to the left of the subject, casting gentle, sculptural shadows that highlight the contours of her face, shoulders, and arms, while creating a subtle gradient across her form. The light accentuates the texture of her sweater and the natural shine of her hair, adding depth and dimension to the image. The color palette is monochromatic with warm, muted tones—shades of gray, brown, and beige—contributing to a timeless, artistic aesthetic. The image is shot with a professional full-frame camera using an 85mm or 50mm lens at a wide aperture (f/1.8 to f/2.😎 to achieve a shallow depth of field, ensuring the subject is in sharp focus while the background remains softly blurred. The resolution is ultra-high, capturing every detail from the fine texture of her sweater to the subtle expression of her pose. The overall style is elegant, contemplative, and refined, emphasizing mood and atmosphere over overt glamour. Post-processing is minimal, maintaining natural skin tones, enhancing contrast and clarity, and preserving the authenticity of the scene. This portrait embodies a delicate balance between simplicity and emotional depth, making it suitable for fine art, editorial, or fashion photography. A young person with short blonde hair squatting confidently in front of a white sports car on a wet city street at night. Captured with a wide-angle fisheye lens for dramatic distortion. Neon signs, Japanese billboards, and glowing city lights reflect on the wet pavement. Moody, cyberpunk-inspired atmosphere with light rain and soft reflections. Casual streetwear—oversized dark sweatshirt, loose grey pants, worn sneakers. Background filled with vibrant nightlife, blurred car headlights, and bustling urban energy. High contrast, teal-orange tones, cinematic depth, film grain, atmospheric haze, shallow depth of field, 35mm film look, poster-style composition, ultra-realistic lighting.