BETA

Challenges > Aleo 101:从零开始,写你的第一个隐私应用 > Leo 入门:学会这门语言

Share

Task 2

Task 2 - Leo 入门:学会这门语言

请将本文件复制到 learn/YourName/ 文件夹中,填写你的答案后提交 PR。

问题

Q1. Leo 中的 "Private by Default"(默认隐私)语义是什么?

A:


Q2. Tuple 包含 array structs 的示例,以及如何访问 struct 中的元素。

A:


Q3. Aleo record 中 owner 字段的作用是什么?

A:


Q4. 程序中的 final 是什么?

A:


Q5. 如何创建 helper functions(辅助函数)?

A:


Q6. helper functions 能否创建 records?

A:


Q7. constructor 的目的是什么?

A:


Q8. 如何组合多个 interfaces(接口)?

A:


Q9. record interface 中 .. 的含义是什么?

A:


Q10. 何时使用 dyn record(动态 record)?

A:


Q11. storage vector 支持的核心操作有哪些?

A:


Resources

  • Testnet FaucetHOT
  • Forum
  • Product Docs

Product

  • Learn
  • Build
  • Developer Profile
  • Feedback
  • On-Chain Contract & Payment

Community

  • Twitter
  • GitHub
  • Telegram
  • LinkedIn
  • Substack
  • Xiaohongshu
  • Bilibili

Company

  • About us
  • Apply for Cooperation
  • Terms of Use Agreement
  • Privacy Policy
  • Press Kit

© 2026 OpenBuild, All rights reserved.