Skip to content
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

WASM32 - Rust- and Typescript-Adapters for internal platform agnostic types #1444

Open
2 of 6 tasks
chrisgitiota opened this issue Nov 25, 2024 · 0 comments
Open
2 of 6 tasks
Assignees
Labels
Rust Related to the core Rust code. Becomes part of the Rust changelog. Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Milestone

Comments

@chrisgitiota
Copy link

chrisgitiota commented Nov 25, 2024

Users of the Identity library for Rust and Typescript should not be aware of our internally used platform agnostic types.

Following platform agnostic types are used internally instead of original SDK types:

SDK Type Internal platform agnostic type
ProgrammableTransaction ProgrammableTransactionBcs
IotaTransactionBlockResponse dyn IotaTransactionBlockResponseT object
TransactionBuilder dyn TransactionBuilderT object

The SDK types are currently used in several public interface functions or structs in the Rust interface (e.g. IntentFn in identity_iota_core/src/rebased/proposals/borrow.rs).

To manage data flow and state changes, adapters need to be developed that can be reused at any public interface function or struct:

For non WASM32 platforms (no wasm-bindings):

  • ProgrammableTransactionBcs
  • dyn IotaTransactionBlockResponseT object
  • dyn TransactionBuilderT object

For WASM32 platforms:

  • ProgrammableTransactionBcs
  • dyn IotaTransactionBlockResponseT object
  • dyn TransactionBuilderT object
@chrisgitiota chrisgitiota added Rust Related to the core Rust code. Becomes part of the Rust changelog. Wasm Related to Wasm bindings. Becomes part of the Wasm changelog labels Nov 25, 2024
@chrisgitiota chrisgitiota added this to the Wasm Rebased milestone Nov 25, 2024
@eike-hass eike-hass modified the milestones: Wasm Rebased, v1.6 Dec 9, 2024
@chrisgitiota chrisgitiota self-assigned this Dec 11, 2024
@chrisgitiota chrisgitiota moved this from Product Backlog to In Progress in IOTA Identity - Framework Developments Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Related to the core Rust code. Becomes part of the Rust changelog. Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants