mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
15 lines
530 B
C#
15 lines
530 B
C#
#nullable enable
|
|
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using BTCPayServer;
|
|
namespace BTCPayServer.Services.WalletFileParsing;
|
|
public class NBXDerivGenericWalletFileParser : IWalletFileParser
|
|
{
|
|
public bool TryParse(BTCPayNetwork network, string data, [MaybeNullWhen(false)] out DerivationSchemeSettings derivationSchemeSettings)
|
|
{
|
|
derivationSchemeSettings = BTCPayServer.DerivationSchemeSettings.Parse(data, network);
|
|
derivationSchemeSettings.Source = "Generic";
|
|
return true;
|
|
}
|
|
}
|