Skip to content

Commit

Permalink
Add Malformed Signatures (#290)
Browse files Browse the repository at this point in the history
* Malformed Signatures

* remove extra data from invalid type sign

* Add Invalid Verifying Contract Type case
  • Loading branch information
seaona authored Feb 15, 2024
1 parent 4eae29f commit 5f0221a
Show file tree
Hide file tree
Showing 2 changed files with 385 additions and 1 deletion.
60 changes: 59 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1123,10 +1123,68 @@ <h4>
Result:
<span id="siweResult"></span>
</p>
</div>
</div>
</div>
<div
class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12 d-flex align-items-stretch"
>
<div class="card full-width">
<div class="card-body">
<h4>
Malformed Signatures
</h4>

<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signInvalidType"
disabled
>
Invalid Type
</button>
<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signEmptyDomain"
disabled
>
Empty Domain
</button>

<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signExtraDataNotTyped"
disabled
>
Extra Data not Typed
</button>

<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signInvalidPrimaryType"
disabled
>
Invalid Primary Type
</button>

<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signNoPrimaryTypeDefined"
disabled
>
No Primary Type Defined
</button>
<button
class="btn btn-primary btn-lg btn-block mb-3"
id="signInvalidVerifyingContractType"
disabled
>
Invalid Verifying Contract Type
</button>
<p class="info-text alert alert-warning">
Result:
<span id="signMalformedResult"></span>
</p>
</div>
</div>
</div>
</div>
</section>
Expand Down
Loading

0 comments on commit 5f0221a

Please sign in to comment.