Exemple #1
0
 public static PrivateKey FromRandom()
 {
     LibP2P.Crypto.PrivateKey privateKey = KeyPair.Generate(KeyType.Ed25519).PrivateKey;
     return(new PrivateKey(privateKey));
 }
Exemple #2
0
 internal PrivateKey(LibP2P.Crypto.PrivateKey privateKey)
 {
     this._privateKey = privateKey;
 }