You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4,7 +4,7 @@ This document provides a comprehensive reference for all FFI (Foreign Function I
4
4
5
5
**Auto-generated**: This documentation is automatically generated from the source code. Do not edit manually.
6
6
7
-
**Total Functions**: 222
7
+
**Total Functions**: 232
8
8
9
9
## Table of Contents
10
10
@@ -130,7 +130,7 @@ Functions: 57
130
130
131
131
### Account Management
132
132
133
-
Functions: 81
133
+
Functions: 92
134
134
135
135
| Function | Description | Module |
136
136
|----------|-------------|--------|
@@ -161,17 +161,28 @@ Functions: 81
161
161
| `account_collection_summary` | Get a human-readable summary of all accounts in the collection Returns a for... | account_collection |
162
162
| `account_collection_summary_data` | Get structured account collection summary data Returns a struct containing a... | account_collection |
163
163
| `account_collection_summary_free` | Free an account collection summary and all its allocated memory # Safety - ... | account_collection |
164
+
| `account_derive_extended_private_key_at` | Derive an extended private key from an account at a given index, using the pr... | account_derivation |
165
+
| `account_derive_extended_private_key_from_mnemonic` | Derive an extended private key from a mnemonic + optional passphrase at the g... | account_derivation |
166
+
| `account_derive_extended_private_key_from_seed` | Derive an extended private key from a raw seed buffer at the given index | account_derivation |
167
+
| `account_derive_private_key_as_wif_at` | Derive a private key from an account at a given chain/index and return as WIF... | account_derivation |
168
+
| `account_derive_private_key_at` | Derive a private key (secp256k1) from an account at a given chain/index, usin... | account_derivation |
169
+
| `account_derive_private_key_from_mnemonic` | Derive a private key from a mnemonic + optional passphrase at the given index | account_derivation |
170
+
| `account_derive_private_key_from_seed` | Derive a private key from a raw seed buffer at the given index | account_derivation |
164
171
| `account_free` | Free an account handle # Safety - `account` must be a valid pointer to an F... | account |
165
172
| `account_get_account_type` | Get the account type of an account # Safety - `account` must be a valid poi... | account |
166
173
| `account_get_extended_public_key_as_string` | Get the extended public key of an account as a string # Safety - `account` ... | account |
167
174
| `account_get_is_watch_only` | Check if an account is watch-only # Safety - `account` must be a valid poin... | account |
168
175
| `account_get_network` | Get the network of an account # Safety - `account` must be a valid pointer ... | account |
176
+
| `bls_account_derive_private_key_from_mnemonic` | No description | account_derivation |
177
+
| `bls_account_derive_private_key_from_seed` | No description | account_derivation |
169
178
| `bls_account_free` | No description | account |
170
179
| `bls_account_get_account_type` | No description | account |
171
180
| `bls_account_get_extended_public_key_as_string` | No description | account |
172
181
| `bls_account_get_is_watch_only` | No description | account |
173
182
| `bls_account_get_network` | No description | account |
Derive an extended private key from an account at a given index, using the provided master xpriv. Returns an opaque FFIExtendedPrivateKey pointer that must be freed with `extended_private_key_free`. Notes: - This is chain-agnostic. For accounts with internal/external chains, this returns an error. - For hardened-only account types (e.g., EdDSA), a hardened index is used. # Safety - `account` and `master_xpriv` must be valid, non-null pointers allocated by this library. - `error` must be a valid pointer to an FFIError or null. - The caller must free the returned pointer with `extended_private_key_free`.
2003
+
2004
+
**Safety:**
2005
+
- `account` and `master_xpriv` must be valid, non-null pointers allocated by this library. - `error` must be a valid pointer to an FFIError or null. - The caller must free the returned pointer with `extended_private_key_free`.
Derive an extended private key from a mnemonic + optional passphrase at the given index. Returns an opaque FFIExtendedPrivateKey pointer that must be freed with `extended_private_key_free`. # Safety - `account` must be a valid pointer to an FFIAccount - `mnemonic` must be a valid, null-terminated C string - `passphrase` may be null; if not null, must be a valid C string - `error` must be a valid pointer to an FFIError or null
2019
+
2020
+
**Safety:**
2021
+
- `account` must be a valid pointer to an FFIAccount - `mnemonic` must be a valid, null-terminated C string - `passphrase` may be null; if not null, must be a valid C string - `error` must be a valid pointer to an FFIError or null
Derive an extended private key from a raw seed buffer at the given index. Returns an opaque FFIExtendedPrivateKey pointer that must be freed with `extended_private_key_free`. # Safety - `account` must be a valid pointer to an FFIAccount - `seed` must point to a valid buffer of length `seed_len` - `error` must be a valid pointer to an FFIError or null
2035
+
2036
+
**Safety:**
2037
+
- `account` must be a valid pointer to an FFIAccount - `seed` must point to a valid buffer of length `seed_len` - `error` must be a valid pointer to an FFIError or null
Derive a private key from an account at a given chain/index and return as WIF string. Caller must free the returned string with `string_free`. # Safety - `account` and `master_xpriv` must be valid pointers allocated by this library - `error` must be a valid pointer to an FFIError or null
2051
+
2052
+
**Safety:**
2053
+
- `account` and `master_xpriv` must be valid pointers allocated by this library - `error` must be a valid pointer to an FFIError or null
Derive a private key (secp256k1) from an account at a given chain/index, using the provided master xpriv. Returns an opaque FFIPrivateKey pointer that must be freed with `private_key_free`. # Safety - `account` and `master_xpriv` must be valid pointers allocated by this library - `error` must be a valid pointer to an FFIError or null
2067
+
2068
+
**Safety:**
2069
+
- `account` and `master_xpriv` must be valid pointers allocated by this library - `error` must be a valid pointer to an FFIError or null
Derive a private key from a mnemonic + optional passphrase at the given index. Returns an opaque FFIPrivateKey pointer that must be freed with `private_key_free`. # Safety - `account` must be a valid pointer to an FFIAccount - `mnemonic` must be a valid, null-terminated C string - `passphrase` may be null; if not null, must be a valid C string - `error` must be a valid pointer to an FFIError or null
2083
+
2084
+
**Safety:**
2085
+
- `account` must be a valid pointer to an FFIAccount - `mnemonic` must be a valid, null-terminated C string - `passphrase` may be null; if not null, must be a valid C string - `error` must be a valid pointer to an FFIError or null
Derive a private key from a raw seed buffer at the given index. Returns an opaque FFIPrivateKey pointer that must be freed with `private_key_free`. # Safety - `account` must be a valid pointer to an FFIAccount - `seed` must point to a valid buffer of length `seed_len` - `error` must be a valid pointer to an FFIError or null
2099
+
2100
+
**Safety:**
2101
+
- `account` must be a valid pointer to an FFIAccount - `seed` must point to a valid buffer of length `seed_len` - `error` must be a valid pointer to an FFIError or null
2102
+
2103
+
**Module:** `account_derivation`
2104
+
2105
+
---
2106
+
1985
2107
#### `account_free`
1986
2108
1987
2109
```c
@@ -2062,6 +2184,26 @@ Get the network of an account # Safety - `account` must be a valid pointer to
Derive key using DIP9 path constants for identity # Safety - `seed` must be a valid pointer to a byte array of `seed_len` length - `error` must be a valid pointer to an FFIError structure or null - The caller must ensure the seed pointer remains valid for the duration of this call
3229
-
3230
-
**Safety:**
3231
-
- `seed` must be a valid pointer to a byte array of `seed_len` length - `error` must be a valid pointer to an FFIError structure or null - The caller must ensure the seed pointer remains valid for the duration of this call
0 commit comments