// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.E2e;


[TlObject(0x6C4F8C98)]
public sealed class TKeyContactByPublicKey : IKey
{
    public uint ConstructorId => 0x6C4F8C98;
    public ReadOnlyMemory<byte> PublicKey { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.WriteRawBytes(PublicKey);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        PublicKey = buffer.ReadInt256();
    }
}