Skip to content

Commit 1294b60

Browse files
committed
feat: update readme
1 parent dcb34ee commit 1294b60

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

ReadMe.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,26 @@
22
- EccSDK is a library that provides a simple way to interact with Chameleon Hash based on the ECC API.
33
- You can search this package in this [nuget page](https://www.nuget.org/packages/EccSDK)
44

5-
## Usage
5+
## Usage for 1.1.*
6+
- add EccGenerator to generate key pair and stored into a file
7+
- add KeyPairDomain model to handle key pair and session key
8+
```csharp
9+
var keyPairDomain = EccGenerator.GetKeyDomain();
10+
11+
var chameleonHashService = new ChameleonHashService(keyPairDomain);
12+
13+
var chameleonSignature = chameleonHashService.Sign("Hello world");
14+
15+
chameleonHashService.Verify(new ChameleonHashVerifyRequest()
16+
{
17+
KeyPairDomain = keyPairDomain,
18+
Message = "Hello world",
19+
StrSignature = chameleonSignature.Value
20+
});
21+
```
22+
---
23+
24+
## Usage for 1.0.*
625
```csharp
726
var keyPair = EccKeyPair.GenerateKeyPair();
827

0 commit comments

Comments
 (0)