Skip to content

Commit

Permalink
Update keypairs.mdx (MystenLabs#17932)
Browse files Browse the repository at this point in the history
## Description 

Update Doc

---------

Co-authored-by: hayes-mysten <[email protected]>
  • Loading branch information
RandyPen and hayes-mysten authored Jun 4, 2024
1 parent 8a51d26 commit 86190d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/docs/pages/typescript/cryptography/keypairs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You can derive a `Keypair` by converting the 33-byte secret key encoded in Bech3
`Uint8Array` and passing it to the `fromSecretKey` method of a `Keypair` class.

```typescript
import { decodeSuiPrivateKey, encodeSuiPrivateKey } from '@mysten/sui/cryptography/keypair';
import { decodeSuiPrivateKey, encodeSuiPrivateKey } from '@mysten/sui/cryptography';
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';

const encoded = encodeSuiPrivateKey(
Expand Down

0 comments on commit 86190d3

Please sign in to comment.