mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-10 19:16:46 +00:00
20 lines
566 B
C#
20 lines
566 B
C#
using GethPlugin;
|
|
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);
|
|
var ethAddress = new EthAddress(account.Address);
|
|
|
|
return new MarketplaceStartResults(ethAddress, account.PrivateKey);
|
|
}
|
|
}
|
|
}
|