cs-codex-dist-tests/CodexPlugin/MarketplaceStarter.cs

18 lines
491 B
C#
Raw Normal View History

2023-09-19 08:24:43 +00:00
using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.Web3.Accounts;
namespace CodexPlugin
{
public class MarketplaceStarter
{
public MarketplaceStartResults Start()
{
var ecKey = Nethereum.Signer.EthECKey.GenerateKey();
var privateKey = ecKey.GetPrivateKeyAsBytes().ToHex();
var account = new Account(privateKey);
return new MarketplaceStartResults(account.Address, account.PrivateKey);
}
}
}