Skip to content

Commit

Permalink
update doc for C#
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jul 25, 2022
1 parent f59e76e commit 4feb8e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ffi/cs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,24 @@ git clone https://github.com/herumi/bls
cd bls
mklib dll
```
bls/bin/*.dll are created
bls/bin/\*.dll are created

# How to build a sample

Open bls/ffi/cs/bls.sln and exec it.

# bls.cs and bls\_eth.cs

- `bls.cs` is for the dll built by `mklib dll`.
- `bls_eth.cs` is for the dll built by `mklib dll eth`.

# class and API

## API

* `Init(int curveType = BN254);`
* initialize this library with a curve `curveType`.
* curveType = BN254 or BLS12_381
* curveType = BN254 or BLS12\_381
* `SecretKey ShareSecretKey(in SecretKey[] msk, in Id id);`
* generate the shared secret key from a sequence of master secret keys msk and Id.
* `SecretKey RecoverSecretKey(in SecretKey[] secVec, in Id[] idVec);`
Expand Down

0 comments on commit 4feb8e1

Please sign in to comment.