Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
bcc8f416
Commit
bcc8f416
authored
Oct 17, 2018
by
Clint Mourlevat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Vanity Model
parent
d7c8f900
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
+37
-5
HomeController.cs
Controllers/HomeController.cs
+7
-0
Vanity.cs
Models/Vanity.cs
+8
-0
Vanity.cshtml
Views/Home/Vanity.cshtml
+22
-5
No files found.
Controllers/HomeController.cs
View file @
bcc8f416
...
...
@@ -59,6 +59,13 @@ namespace Stratis.Guru.Controllers
return
View
();
}
[
HttpPost
]
[
Route
(
"vanity"
)]
public
IActionResult
Vanity
(
Vanity
vanity
)
{
return
View
();
}
[
Route
(
"generator"
)]
public
IActionResult
Generator
()
{
...
...
Models/Vanity.cs
0 → 100644
View file @
bcc8f416
namespace
Stratis.Guru.Models
{
public
class
Vanity
{
public
string
Prefix
{
get
;
set
;
}
public
string
Email
{
get
;
set
;
}
}
}
\ No newline at end of file
Views/Home/Vanity.cshtml
View file @
bcc8f416
@model Vanity
@{
ViewBag.Title = "Vanity Address Generator";
Layout = "_Layout";
}
<section class="welcome-area" id="welcome-1">
<
div class="header-token
">
<
form class="header-token" method="post" asp-controller="Home" asp-action="Vanity
">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 align-self-center text-center">
<h1><strong>Vanity </strong>Address Generator</h1>
<p>Generate a vanity address with a prefix that you define, by example <span class="text-warning">STRAT</span>nhRnMqJNoeDiCFUnaug7TKHJocwDd</p>
<a href="https://github.com/clintnetwork/stratis-guru-v2" target="_blank" class="btn-secondary-box"><i class="fa fa-github"></i> Browse Source on Github</a>
<div class="row">
<div class="col-md-8 offset-2">
<div class="input-group mb-3 input-group-lg mt-4 pl-5 pr-5">
<input type="text" class="form-control bg-dark" asp-for="Prefix" placeholder="Enter prefix">
<div class="input-group-prepend">
<span class="input-group-text bg-dark text-white" id="basic-addon1">SR2ZXnhRnMqJNoeDiCFUnaug7TKHJocwDd</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 offset-2">
<div class="form-group mb-3 mt-4 pl-5 pr-5">
<label class="text-left text-white">You will receive the private key by email.</label>
<input type="text" class="form-control bg-dark" asp-for="Email" placeholder="Enter your email address"/>
</div>
</div>
</div>
<button type="submit" href="https://github.com/clintnetwork/stratis-guru-v2" target="_blank" class="btn-secondary-box mt-4"><i class="fa fa-github"></i> Browse Source on Github</button>
</div>
</div>
</div>
</
div
>
</
form
>
</section>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment