Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
bip32.h
Go to the documentation of this file.
1#pragma once
2
3#include <stddef.h> // size_t
4#include <stdint.h> // uint*_t
5#include <stdbool.h> // bool
6
10#define BIP32_HARDENED_MASK 0x80000000u
11
15#define MAX_BIP32_PATH 10
16
17typedef struct {
18 uint8_t length;
19 uint32_t path[MAX_BIP32_PATH];
21
33bool bip32_path_read(const uint8_t *in, size_t in_len, uint32_t *out, size_t out_len);
34
46bool bip32_path_format(const uint32_t *bip32_path,
47 size_t bip32_path_len,
48 char *out,
49 size_t out_len);
50
61bool bip32_path_format_simple(path_bip32_t *bip32, char *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)
Definition bip32.c:49
bool bip32_path_format_simple(path_bip32_t *bip32, char *out, size_t out_len)
Format a BIP32 path as a string.
Definition bip32.c:92
bool bip32_path_read(const uint8_t *in, size_t in_len, uint32_t *out, size_t out_len)
Definition bip32.c:26
#define MAX_BIP32_PATH
Definition bip32.h:15
uint8_t length
Definition bip32.h:18