Skip to content

Commit

Permalink
Clean up teaser example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ektrah committed Mar 7, 2018
1 parent 517adc5 commit d7cf22a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/Examples.csproj
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

Expand Down
10 changes: 5 additions & 5 deletions examples/General.cs → examples/Teaser.cs
Expand Up @@ -3,14 +3,14 @@
using NSec.Cryptography;
using Xunit;

namespace Snippets
namespace Examples
{
public static class General
public static class Teaser
{
[Fact]
public static void ReadmeExample()
public static void Example()
{
#region README Example
#region Teaser

// select the Ed25519 signature algorithm
var algorithm = new Ed25519();
Expand All @@ -24,7 +24,7 @@ public static void ReadmeExample()
// sign the data with the private key
var signature = algorithm.Sign(key, data);

// verify signature and data with the public key
// verify data and signature with the public key
algorithm.Verify(key.PublicKey, data, signature);
}

Expand Down
2 changes: 1 addition & 1 deletion index.md
Expand Up @@ -38,7 +38,7 @@ easy to support multiple algorithms or switch algorithms should the need arise.
The following C# example shows how to use NSec to sign data with Ed25519 and
verify the signature.

{{README Example}}
{{Teaser}}


## Installation
Expand Down

0 comments on commit d7cf22a

Please sign in to comment.