Skip to content

better example style (rust + wasm) #1592

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

Open
4 tasks
eike-hass opened this issue Mar 6, 2025 · 0 comments
Open
4 tasks

better example style (rust + wasm) #1592

eike-hass opened this issue Mar 6, 2025 · 0 comments
Assignees

Comments

@eike-hass
Copy link
Collaborator

eike-hass commented Mar 6, 2025

Principles:
lower number examples should introduce a principle
higher number examples should re-use it (or use a helper function with the same content)

  • Align naming, logging and flow between examples and languages
  • Add example to use Identity object with IOTA SDK
    • Idea:
      1. Create Asset/Coin? using IOTA SDK
      2. Transfer to (Identity) Object
      3. Access transferred Object using borrow proposal
  • Demonstrate difference between localnet and wellknown networks
    • remove package ID from examples/README.md
  • Multi control example
    • Idea:
      1. Create single controller identity
      2. Add second controller
      3. Demonstrate threshold process
  • Also consider splitting up the helper functions into separate files, which might make the references from the wiki to the example code less affected by line number changes. Bonus questions:
    • Could we just insert a reference to the entire file? (less hassle to maintain)
    • Would the repeated license header in the wiki in that case be okay or just visual noise?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Sprint Backlog
Development

No branches or pull requests

2 participants