pub fn load_keypair(
keystore_path: &Path,
expected_address: &Address,
) -> Result<Ed25519PrivateKey>Expand description
Load the Ed25519 private key and derive its address from the zing keystore.
The keystore is a JSON array of base64-encoded flag || privkey (33 bytes).
flag 0x00 = Ed25519, remaining 32 bytes = private key.