Exemple #1
0
 public WalletKey(ExtKey rootKey, KeyPath keyPath, Network net)
 {
     _net      = net;
     PrivKey   = rootKey.Derive(keyPath);
     PublicKey = PrivKey.PrivateKey.PubKey;
     KeyPath   = keyPath;
     ScriptKey = PublicKey.ScriptPubKey.Hash.ScriptPubKey;
     Address   = PublicKey.GetAddress(net);
     Consumed  = false;
 }
 private PrivateKeyNotWallet(PrivateKey key)
 {
     PrivateKey = key;
     PublicKey  = key.GetPublicKey();
     Address    = PublicKey.GetAddress();
 }