Embedded SDK
Embedded SDK
Macros | Functions
bip32.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for bip32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_BIP32_PATH   10
 

Functions

bool bip32_path_read (const uint8_t *in, size_t in_len, uint32_t *out, size_t out_len)
 
bool bip32_path_format (const uint32_t *bip32_path, size_t bip32_path_len, char *out, size_t out_len)
 

Macro Definition Documentation

◆ MAX_BIP32_PATH

#define MAX_BIP32_PATH   10

Maximum length of BIP32 path allowed.

Definition at line 10 of file bip32.h.

Function Documentation

◆ bip32_path_format()

bool bip32_path_format ( const uint32_t *  bip32_path,
size_t  bip32_path_len,
char *  out,
size_t  out_len 
)

Format BIP32 path as string.

Parameters
[in]bip32_pathPointer to 32-bit integer input buffer.
[in]bip32_path_lenMaximum number of BIP32 paths in the input buffer.
[out]outstring Pointer to output string.
[in]out_lenLength of the output string.
Returns
true if success, false otherwise.

Definition at line 45 of file bip32.c.

◆ bip32_path_read()

bool bip32_path_read ( const uint8_t in,
size_t  in_len,
uint32_t *  out,
size_t  out_len 
)

Read BIP32 path from byte buffer.

Parameters
[in]inPointer to input byte buffer.
[in]in_lenLength of input byte buffer.
[out]outPointer to output 32-bit integer buffer.
[in]out_lenNumber of BIP32 paths read in the output buffer.
Returns
true if success, false otherwise.

Definition at line 26 of file bip32.c.