public PrivateKey(ECKeyPair ecKeyPair) { if (ecKeyPair.privKey == null) throw new ArgumentException("ECKeyPair does not contain private key."); this.ecKeyPair = ecKeyPair; this.pubKey = new PublicKey(ecKeyPair); }
public PrivateKey() { Byte[] pk = new Byte[32]; RandomNumberGenerator rng = new RNGCryptoServiceProvider(); rng.GetBytes(pk); this.ecKeyPair = new ECKeyPair(pk, null, false); this.pubKey = new PublicKey(ecKeyPair); }
public PrivateKey(Byte[] privKey, Boolean compress) { this.ecKeyPair = new ECKeyPair(privKey, null, compress); this.pubKey = new PublicKey(ecKeyPair); }
public PublicKey(ECKeyPair ecKeyPair) { this.ecKeyPair = ecKeyPair; this.address = new Address(ecKeyPair.pubKey); }
public PublicKey(Byte[] pubKey) { this.ecKeyPair = new ECKeyPair(null, pubKey); this.address = new Address(ecKeyPair.pubKey); }