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