Skip to content

LedgerHQ/app-plugin-bricktowers

 
 

Repository files navigation

Ensure compliance with Ledger guidelines Compilation & tests

app-plugin-bricktowers

This plug-in is compatible with Nano S / X, Flex and Stax devices, it enables to interact in a secure way with the Brick Towers staking contracts.

Documentation

The documentation is defined in PLUGIN_SPECIFICATON.md.

Clearsigning

Brick Towers - Batch Deposit

Function: deposit() Clearsigned:

  • tx.value
Single validator deposit

Multiple validators deposit

Withdrawal address differs from the connected address

BLS key as withdrawal credentials

Not supported, fallback to Ethereum plugin

Mixed (multiple different) withdrawal credentials within batch transaction

Not supported, fallback to Ethereum plugin

Brick Towers - Request Voluntary Exit

Function: requestVoluntaryExit() Clearsigned:

  • none as BLS key is not digest to display on device and only owner of the validator can withdraw on its behalf so no attack vector possible.

Brick Towers - Pooled Staking - Deposit

Function: deposit() Clearsigned:

  • tx.value

Brick Towers - Pooled Staking - Update State

Function: updateState() Clearsigned:

  • transaction type = Update State

Brick Towers - Pooled Staking - Deposit through multicall

Function: multicall() Clearsigned:

  • deposit transaction is extracted

Brick Towers - Pooled Staking - Claim Exited Assets through multicall

Function: multicall() Clearsigned:

  • "Claim Exited Assets" transaction is extracted

Formatting

The C source code is expected to be formatted with clang-format 11.0.0 or higher.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 58.4%
  • Python 33.9%
  • CMake 5.2%
  • Makefile 1.6%
  • Other 0.9%