Exemplo n.º 1
0
 private BitcoinExtKey GetBaseXPriv(NRustLightningNetwork network)
 {
     if (BaseXPrivs.TryGetValue(network, out var baseKey))
     {
         return(baseKey);
     }
     baseKey = new BitcoinExtKey(new ExtKey(_keysRepository.GetNodeSecret().ToBytes()).Derive(network.BaseKeyPath), network.NBitcoinNetwork);
     BaseXPrivs.TryAdd(network, baseKey);
     return(baseKey);
 }
 private BitcoinExtKey GetBaseXPriv(NRustLightningNetwork network)
 {
     return(new BitcoinExtKey(new ExtKey(_keysRepository.GetNodeSecret().ToBytes()), network.NBitcoinNetwork).Derive(network.BaseKeyPath));
 }