BOLOS TEE
Functions
bolos_bip32.h File Reference

Interface to low level BIP 32 operations. More...

Go to the source code of this file.

Functions

int bls_bip32_derive_secp256k1_private (uint8_t *privateKey, uint8_t *chainCode, uint32_t index)
 Derive a private key on secp256k1 using BIP 32. More...
 
int bls_bip32_derive_secp256k1_public (uint8_t *publicKey, uint8_t *chainCode, uint32_t index)
 Derive a compressed public key on secp256k1 using BIP 32. More...
 

Detailed Description

Interface to low level BIP 32 operations.

Author
Ledger Firmware Team hello.nosp@m.@led.nosp@m.ger.f.nosp@m.r
Version
1.0
Date
29th of February 2017

This API exposes simple BIP 32 derivation primitives

Function Documentation

int bls_bip32_derive_secp256k1_private ( uint8_t *  privateKey,
uint8_t *  chainCode,
uint32_t  index 
)

Derive a private key on secp256k1 using BIP 32.

Parameters
[in,out]privateKeyPrivate key to derive
[in,out]chainCodeChain code to derive
[in]indexIndex to derive to
Returns
1 if success, 0 if error
int bls_bip32_derive_secp256k1_public ( uint8_t *  publicKey,
uint8_t *  chainCode,
uint32_t  index 
)

Derive a compressed public key on secp256k1 using BIP 32.

Parameters
[in,out]publicKeyCompressed public key to derive
[in,out]chainCodeChain code to derive
[in]indexIndex to derive to
Returns
1 if success, 0 if error