Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 2.24 KB

MILESTONE-2-REPORT.md

File metadata and controls

53 lines (32 loc) · 2.24 KB

Milestone 2 report

Available documentation

  • Embedano SDK API tour - an executable that showcases available functionality. It is possible to run the code of the tour with following command (see main.rs):

    cargo run -p cardano-embedded-sdk
  • Rust docs for SDK API which can be generated via standard tools: cargo doc -p cardano-embedded-sdk

Test cases

Tests for transaction id signing, data signing, and proving ownership are located in api.rs module.

We also tested our implementation against reference data. Reference data is generated with IOG's CLI tools like cardano-address and cardano-cli for mnemonic all all all all all all all all all all all all.

We use the following reference data:

  • extended root private key
  • pair of extended private and public keys derived from root private key for path /1852'/1815'/0'/0/0
  • transaction id that was signed by derived private key (transaction was built and submitted on private testnet using cardano-cli from cardano-node)
  • signature for transaction above (signature was made with cardano-cli as well)

In tests, we use Embedano SDK to generate the same set of data as we have as a reference. Then we check that generated data is identical to the reference data.

Tests for reference data:

Full details on the reference data can be found here.

QEMU test

It is also possible to run code of Embedano SDK API tour using QEMU emulator on emulated LM3S6965 microcontroller. Nix setup for the project has an option to start development shell with QEMU (be aware, that it will require nix flake feature and download ~1.5 Gb for emulator)

To start dev shell with QEMU:

 nix develop .#withQemu

To test example:

cd examples/qemu-example && cargo run --release

Note: don't forget --release flag, or binary won't fit into device memory.

Source can be found here.