mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
24 lines
569 B
C#
24 lines
569 B
C#
using GethPlugin;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace KeyMaker.Controllers
|
|
{
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class KeyController : ControllerBase
|
|
{
|
|
[HttpGet]
|
|
public KeyResponse Get()
|
|
{
|
|
var account = EthAccountGenerator.GenerateNew();
|
|
|
|
return new KeyResponse
|
|
{
|
|
Public = account.EthAddress.Address,
|
|
Private = account.PrivateKey,
|
|
Secure = "Not Secure! For demo/development purposes only!"
|
|
};
|
|
}
|
|
}
|
|
}
|