Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IdentityWrapper.cs
2using System;
4
6{
11 {
12 private readonly string domain;
13 private readonly LegalIdentity identity;
14
20 public IdentityWrapper(string Domain, LegalIdentity Identity)
21 {
22 this.domain = Domain;
23 this.identity = Identity;
24 }
25
29 public string Id => this.identity.Id;
30
34 public DateTime Created => this.identity.Created;
35
39 public IdentityState State => this.identity.State;
40
44 public string URL => ContractsClient.LegalIdUriString(this.identity.Id);
45
49 public string QrCodeUrl
50 {
51 get
52 {
53 if (string.IsNullOrEmpty(this.domain))
54 return "https://lab.tagroot.io/QR/" + this.URL;
55 else
56 return "https://" + this.domain + "/QR/" + this.URL;
57 }
58 }
59 }
60}
Adds support for legal identities, smart contracts and signatures to an XMPP client.
static string LegalIdUriString(string LegalId)
Legal identity URI, as a string.
IdentityState
Lists recognized legal identity states.