public KeyPathInformation(Derivation derivation, DerivationSchemeTrackedSource derivationStrategy, DerivationFeature feature, KeyPath keyPath, NBXplorerNetwork network) { ScriptPubKey = derivation.ScriptPubKey; Redeem = derivation.Redeem; TrackedSource = derivationStrategy; DerivationStrategy = derivationStrategy.DerivationStrategy; Feature = feature; KeyPath = keyPath; Address = network.CreateAddress(derivationStrategy.DerivationStrategy, keyPath, ScriptPubKey); }
public KeyPathInformation(KeyPathTemplates keyPathTemplates, KeyPath keyPath, DerivationStrategyBase derivationStrategy, NBXplorerNetwork network) { var derivation = derivationStrategy.GetDerivation(keyPath); ScriptPubKey = derivation.ScriptPubKey; Redeem = derivation.Redeem; TrackedSource = new DerivationSchemeTrackedSource(derivationStrategy); DerivationStrategy = derivationStrategy; Feature = keyPathTemplates.GetDerivationFeature(keyPath); KeyPath = keyPath; Address = network.CreateAddress(derivationStrategy, keyPath, ScriptPubKey); }