1.sol的私鑰掩宜、公鑰,簽名等管理是采用ed25519_dalek進(jìn)行的,具體怎么使用如下手冊(cè):
https://docs.rs/ed25519-dalek/1.0.1/ed25519_dalek/
Keypair的定義如下:
pub struct Keypair{
/// The secret half of this keypair.
pubsecret: SecretKey,
/// The public half of this keypair.
pubpublic: PublicKey,
}