2 using System.Collections.Generic;
5 using System.Threading.Tasks;
10 /// Representation of ECDSA private key
17 private List<byte> privKeyBytes;
20 /// Initialize new instance of CKey as copy of another instance.
22 /// <param name="key">New CKey instance.</param>
25 privKeyBytes = key.privKeyBytes;
29 /// Initialize new instance of CKey using supplied byte sequence.
31 /// <param name="bytes">New CKey instance.</param>
32 public CKey(IEnumerable<byte> bytes)
34 privKeyBytes = new List<byte>(bytes);
38 /// Calculate public key for this private key.
40 /// <returns>New CPubKey instance.</returns>
41 public CPubKey GetPubKey()
45 return new CPubKey((CPubKey)null);