public static ECDSAPublicKey ToPublicKey(this byte[] buffer) { return(new ECDSAPublicKey { Buffer = ByteString.CopyFrom(Crypto.DecodePublicKey(buffer, true)) }); }