using System.Security.Cryptography;

using FrostFS.SDK.ClientV2;
using FrostFS.SDK.Cryptography;

namespace FrostFS.SDK.SmokeTests;

public abstract class SmokeTestsBase
{
    protected readonly string key = "KzPXA6669m2pf18XmUdoR8MnP1pi1PMmefiFujStVFnv7WR5SRmK";
    protected readonly string url = "http://172.23.32.4:8080";

    protected ECDsa Key { get; }

    protected FrostFsOwner OwnerId { get; }

    protected FrostFsVersion Version { get; }

    protected Context Ctx { get; }

    protected SmokeTestsBase()
    {
        Key = key.LoadWif();
        OwnerId = FrostFsOwner.FromKey(Key);
        Version = new FrostFsVersion(2, 13);

        Ctx = new Context { Key = Key, OwnerId = OwnerId, Version = Version };
    }
}