Remove some misguided, unused code
MODIFY
HiddenWallet/KeyManagement/Safe.cs
HiddenWallet/KeyManagement/Safe.cs
@@ -30,8 +30,6 @@ namespace HiddenWallet.KeyManagement
ConcurrentDictionary<Tuple<AddressType, int, HdPathType, SafeAccount>, BitcoinAddress> SafeCache = new ConcurrentDictionary<Tuple<AddressType, int, HdPathType, SafeAccount>, BitcoinAddress>();
// GetP2wpkh pubKey.WitHash.ScriptPubKey.GetDestinationAddress(Network);
// GetP2pkhAddress pubKey.Hash.ScriptPubKey.GetDestinationAddress(Network);
- // GetP2shAddress pubKey.Hash.ScriptPubKey.GetScriptAddress(Network);
- // GetP2wshAddress pubKey.WitHash.ScriptPubKey.GetWitScriptAddress(Network);
// GetP2shOverP2wpkhAddress pubKey.WitHash.ScriptPubKey.Hash.ScriptPubKey.GetDestinationAddress(Network);
public BitcoinAddress GetAddress(AddressType type, int index, HdPathType hdPathType = HdPathType.Receive, SafeAccount account = null)
{
@@ -48,14 +46,6 @@ namespace HiddenWallet.KeyManagement
{
address = pubKey.Hash.ScriptPubKey.GetDestinationAddress(Network);
}
- else if (type == AddressType.Pay2ScriptHash)
- {
- address = pubKey.Hash.ScriptPubKey.GetScriptAddress(Network);
- }
- else if (type == AddressType.Pay2WitnessScriptHash)
- {
- address = pubKey.WitHash.ScriptPubKey.GetWitScriptAddress(Network);
- }
else if (type == AddressType.Pay2ScriptHashOverPay2WitnessPublicKeyHash)
{
address = pubKey.WitHash.ScriptPubKey.Hash.ScriptPubKey.GetDestinationAddress(Network);

MODIFY
HiddenWallet/Models/AddressType.cs
HiddenWallet/Models/AddressType.cs
@@ -8,8 +8,6 @@ namespace HiddenWallet.Models
{
Pay2PublicKeyHash,
Pay2WitnessPublicKeyHash,
- Pay2ScriptHash,
- Pay2WitnessScriptHash,
Pay2ScriptHashOverPay2WitnessPublicKeyHash
}
}

Remove some misguided, unused code