File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 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
726var keyPair = EccKeyPair .GenerateKeyPair ();
827
You can’t perform that action at this time.
0 commit comments