public byte[] Serialize()
 {
     return(new IdentityKeyPairStructure
     {
         PublicKey = ByteString.CopyFrom(_publicKey.Serialize()),
         PrivateKey = ByteString.CopyFrom(_privateKey.Serialize())
     }.ToByteArray());
 }