1.sol的私钥、公钥,签名等管理是采用ed25519_dalek进行的,具体怎么使用如下手册:
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,
}