publicKeyFromProto function
Implementation
PublicKey publicKeyFromProto(pb.PublicKey pmes) {
final unmarshalFunc = PubKeyUnmarshallers[pmes.type];
if (unmarshalFunc == null){
throw Exception("Unsupported public key type : ${pmes.type}");
}
return unmarshalFunc(pmes.writeToBuffer());
}