设置钱包 (Setting up a wallet)
设置 SDK 钱包 (Setting up an SDK wallet)
相关导入 (Relevant imports)
通用导入 (General imports)
// namada_sdk::Namada is a high level interface in order to interact with the Namada SDK
use namada_sdk::Namada;
// The NamadaImpl provides convenient implementations to frequently used Namada SDK interactons
use namada_sdk::NamadaImpl;钱包特定导入 (Wallet specific imports)
// SecretKey, common and SchemeType give access to Namada cryptographic keys and their relevant implementations. Namada supports ED25519 and SECP256K1 keys.
use namada_sdk::core::types::key::common::SecretKey;
use namada_sdk::core::types::key::{common, SchemeType};
// Filesystem wallet utilities (stores the path of the wallet on the filesystem)
use namada_sdk::wallet::fs::FsWalletUtils;从助记词创建钱包 (Creating a wallet from a mnemonic)
生成新钱包并将其保存到文件系统 (Generating a new wallet and saving it to the filesystem)
Last updated