@@ -260,10 +260,7 @@ impl AccountType {
260260 Network :: Dash => {
261261 Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_REGISTRATION_PATH_MAINNET ) )
262262 }
263- Network :: Testnet | Network :: Regtest => {
264- Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_REGISTRATION_PATH_TESTNET ) )
265- }
266- _ => Err ( crate :: error:: Error :: InvalidNetwork ) ,
263+ _ => Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_REGISTRATION_PATH_TESTNET ) )
267264 }
268265 }
269266 Self :: IdentityTopUp {
@@ -272,8 +269,7 @@ impl AccountType {
272269 // Base path with registration index - actual key index added when deriving
273270 let base_path = match network {
274271 Network :: Dash => crate :: dip9:: IDENTITY_TOPUP_PATH_MAINNET ,
275- Network :: Testnet | Network :: Regtest => crate :: dip9:: IDENTITY_TOPUP_PATH_TESTNET ,
276- _ => return Err ( crate :: error:: Error :: InvalidNetwork ) ,
272+ _ => crate :: dip9:: IDENTITY_TOPUP_PATH_TESTNET ,
277273 } ;
278274 let mut path = DerivationPath :: from ( base_path) ;
279275 path. push (
@@ -288,10 +284,7 @@ impl AccountType {
288284 Network :: Dash => {
289285 Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_TOPUP_PATH_MAINNET ) )
290286 }
291- Network :: Testnet | Network :: Regtest => {
292- Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_TOPUP_PATH_TESTNET ) )
293- }
294- _ => Err ( crate :: error:: Error :: InvalidNetwork ) ,
287+ _ => Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_TOPUP_PATH_TESTNET ) )
295288 }
296289 }
297290 Self :: IdentityInvitation => {
@@ -300,10 +293,7 @@ impl AccountType {
300293 Network :: Dash => {
301294 Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_INVITATION_PATH_MAINNET ) )
302295 }
303- Network :: Testnet | Network :: Regtest => {
304- Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_INVITATION_PATH_TESTNET ) )
305- }
306- _ => Err ( crate :: error:: Error :: InvalidNetwork ) ,
296+ _ => Ok ( DerivationPath :: from ( crate :: dip9:: IDENTITY_INVITATION_PATH_TESTNET ) )
307297 }
308298 }
309299 Self :: ProviderVotingKeys => {
@@ -354,10 +344,7 @@ impl AccountType {
354344 // Base DashPay root + account 0' + user_id/friend_id (non-hardened per DIP-14/DIP-15)
355345 let mut path = match network {
356346 Network :: Dash => DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_MAINNET ) ,
357- Network :: Testnet | Network :: Regtest => {
358- DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_TESTNET )
359- }
360- _ => return Err ( crate :: error:: Error :: InvalidNetwork ) ,
347+ _ => DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_TESTNET )
361348 } ;
362349 path. push ( ChildNumber :: from_hardened_idx ( 0 ) . map_err ( crate :: error:: Error :: Bip32 ) ?) ;
363350 path. push ( ChildNumber :: Normal256 {
@@ -376,10 +363,7 @@ impl AccountType {
376363 // Base DashPay root + account 0' + friend_id/user_id (non-hardened per DIP-14/DIP-15)
377364 let mut path = match network {
378365 Network :: Dash => DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_MAINNET ) ,
379- Network :: Testnet | Network :: Regtest => {
380- DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_TESTNET )
381- }
382- _ => return Err ( crate :: error:: Error :: InvalidNetwork ) ,
366+ _ => DerivationPath :: from ( crate :: dip9:: DASHPAY_ROOT_PATH_TESTNET )
383367 } ;
384368 path. push ( ChildNumber :: from_hardened_idx ( 0 ) . map_err ( crate :: error:: Error :: Bip32 ) ?) ;
385369 path. push ( ChildNumber :: Normal256 {
0 commit comments