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

namespace MyTelegram.Schema.E2e;


[TlObject(0xD37DA15A)]
public sealed class THandshakeQR : IHandshakePublic
{
    public uint ConstructorId => 0xD37DA15A;
    public ReadOnlyMemory<byte> BobEphemeralPK { get; set; }
    public ReadOnlyMemory<byte> BobNonce { get; set; }

    public void ComputeFlag()
    {

    }

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

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