Skip to content

Commit 2160c01

Browse files
committed
docs: update api docs
1 parent 07f4844 commit 2160c01

File tree

162 files changed

+2468
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+2468
-166
lines changed

docs/content/docs/modules/core/PrivateKey.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ Added in v2.0.0
183183
## toBech32
184184
185185
Convert a PrivateKey to a Bech32 string.
186-
Format: ed25519e_sk1...
186+
Automatically selects the appropriate prefix based on key length:
187+
188+
- 32 bytes → ed25519_sk1... (normal key)
189+
- 64 bytes → ed25519e_sk1... (extended key)
190+
Compatible with CML.PrivateKey.to_bech32().
187191
188192
**Signature**
189193
@@ -274,7 +278,8 @@ Added in v2.0.0
274278
## fromBech32
275279
276280
Parse a PrivateKey from a Bech32 string.
277-
Expected format: ed25519e_sk1...
281+
Supports both extended (ed25519e_sk1...) and normal (ed25519_sk1...) formats.
282+
Compatible with CML.PrivateKey.from_bech32().
278283
279284
**Signature**
280285

0 commit comments

Comments
 (0)