A C# client for the GenoBank.io platform 🧬
sequenceDiagram
Client->>+api.genobank.io: {"claim":..., "signature":..., "permitteeSerial":...}
api.genobank.io->>+Client: {"txHash":..., "timestamp":..., "genobankSignature":...}
-
Supported operating systems are macOS, Linux and Windows
-
- ℹ️ This project has been tested on macOS Big Sur / Apple Silicon / .NET SDK (5.0.201)
Get the latest source code from GitHub:
mkdir -p ~/Developer
cd ~/Developer
git clone https://github.com/Genobank/genobankio-dot-net.git
cd genobankio-dot-net
Install dependencies:
dotnet restore
Run the product without arguments to see instructions:
dotnet run
Or include all required parameters to notarize a certificate:
dotnet run --test 'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat' 1 'NAME' 'PASSPORT123' '1' 'N' '' 1611517330
LaboratoryProcedure
,LaboratoryProcedureResult
,Network
are simple records.PermitteeRepresentations
stores everything that the permittee (laboratory) will attest to.PermitteeSigner
performs cryptographic signing on behalf of the permittee.Platform
notarizes the certificate onto the blockchain using GenoBank.io.NotarizedCertificate
is the notarized artifact.Program
is the program entry point.
You are welcome to extend the functionality of this example, for example to connect to an ERP system or add additional information (like birthday) into the name field.
- Project setup
- Git ignore file: https://gist.github.com/kmorcinek/2710267
- Initializing a new C# project https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
- Coding style