mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-06 15:33:11 +00:00
18 lines
491 B
C#
18 lines
491 B
C#
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);
|
|
}
|
|
}
|
|
}
|