生成账户 (Generating accounts)
表示账户 (Representing accounts)
use namada_sdk::core::types::key::common::{PublicKey, SecretKey};
struct SimpleAccount {
public_key: PublicKey,
private_key: SecretKey
}use namada_sdk::core::types::key::common::{PublicKey, SecretKey};
struct MultisigAccount {
public_keys: Vec<PublicKey>,
private_keys: Vec<SecretKey>
}use namada_sdk::core::types::key::common::{PublicKey, SecretKey};
struct Account {
public_key: PublicKey,
private_key: SecretKey,
revealed: bool
}揭示隐式账户的公钥 (Revealing the public key of an implicit account)
Last updated