31 #ifndef __BOLOS_WALLET_H__
32 #define __BOLOS_WALLET_H__
35 #define BLS_WALLET_STATE_INITIALIZED (1 << 0)
37 #define BLS_WALLET_STATE_LOCKED (1 << 1)
39 #define BLS_WALLET_UNLOCK_INAPP (1 << 2)
42 #define BLS_WALLET_DERIVE_PRIVATE (1 << 0)
44 #define BLS_WALLET_DERIVE_PUBLIC (1 << 1)
78 const uint32_t WIDE* path,
size_t pathLength,
105 char WIDE* address,
size_t addressLength,
137 #endif // __BOLOS_WALLET_H__
int bls_wallet_call(uint8_t *apdu)
Call the Ledger Wallet application.
int bls_wallet_derive(uint8_t details, const uint32_t WIDE *path, size_t pathLength, uint8_t *chainCode, bls_ecfp_private_key_t *privateKey, bls_ecfp_public_key_t *publicKey)
Derive a Bitcoin wallet key using BIP 32.
int bls_wallet_get_address(bls_ecfp_public_key_t *publicKey, char WIDE *address, size_t addressLength, bool compressed)
Get the Bitcoin address associated to a given public key.
int bls_wallet_get_state(void)
Return the current state of the Bitcoin wallet.
Definition: bolos_crypto_platform_tee.h:144
Definition: bolos_crypto_platform_tee.h:148
int bls_wallet_approve_sign(bool status)
Approve a signature before calling the Ledger Wallet application.