Skip to content

shannonzimmons/app-phantasma

 
 

Repository files navigation

app-phantasma

to test use the CLI:

https://github.com/coranos/phantasma-js-hw

nano s

export BOLOS_SDK=/home/coranos/git/LedgerHQ/nanos-secure-sdk

nano x

export BOLOS_SDK=/home/coranos/nano-x/sdk-nanox-1.2.4-1.5

app-phantasma

phantasma ledger app

transaction serialization:
https://github.com/phantasma-io/PhantasmaSDK/blob/master/C%2B%2B/Libs/Blockchain/Transaction.h#L14

address from public key
https://github.com/phantasma-io/PhantasmaSDK/blob/master/C%2B%2B/Libs/Cryptography/Address.h#L147

api docs:
https://docs.phantasma.io/#api-getChain

Prerequisite

Be sure to have your environment correctly set up (see Getting Started) and ledgerblue and installed.

BOLOS_ENV=/opt/bolos-devenv

and do the same with BOLOS_SDK environment variable

BOLOS_SDK=/opt/nanos-secure-sdk

Compilation

make DEBUG=1  # compile optionally with PRINTF
make load     # load the app on the Nano using ledgerblue

Documentation

High level documentation such as APDU, commands and transaction serialization are included in developer documentation which can be generated with doxygen

doxygen .doxygen/Doxyfile

the process outputs HTML and LaTeX documentations in docs/html and docs/latex folders.

Tests & Continuous Integration

The flow processed in GitHub Actions is the following:

It outputs 4 artifacts:

  • phantasma-app-debug within output files of the compilation process in debug mode
  • speculos-log within APDU command/response when executing end-to-end tests
  • code-coverage within HTML details of code coverage
  • documentation within HTML auto-generated documentation

About

phantasma ledger app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 61.9%
  • Python 31.5%
  • Shell 2.4%
  • CMake 2.1%
  • Makefile 1.6%
  • C++ 0.5%