Bitcoin Forum
May 16, 2024, 05:41:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Default Lightning Network Features on: October 25, 2023, 08:43:32 AM
Hi all,

Does anyone know which are the default features enabled on the main three Lightning Network node implementations (LND, C-Lightning and Eclair)?
Or where can I find a list?


Best Regards,

SS
2  Bitcoin / Bitcoin Technical Support / Sniffing LN traffic with Wireshark on: October 11, 2023, 08:34:16 AM
Hi all,

I've seen on the Internet that Wireshark can detect protocol packages like Bitcoin and Lightning Network. They are identified in the protocol column.
The problem is that my Wireshark is not classifying those packages, it just says tcp/ip or http/json.
Does anyone know how to solve that?

Note: I know there's a package called lightning dissector but I don't need to read the packages, just identify them. (In the end, I ended up using it)

Thanks in advance!

-SS
3  Bitcoin / Bitcoin Technical Support / [Solved] Connect LND and Core on different machines on: September 28, 2023, 09:20:46 AM
Hi,

I'm trying to connect my LND node to my Core, both on different machines, but my LND is stucked after unlocking the wallet and I cannot make RPC calls as it shows the following error:
Code:
user@ubuntu:/usr$ lncli getinfo
[lncli] rpc error: code = Unknown desc = the RPC server is in the process of starting up, but not yet ready to accept calls

Error from lnd side:
Code:
2023-09-28 11:19:26.524 [DBG] RPCS: [/lnrpc.WalletUnlocker/UnlockWallet] requested
2023-09-28 11:19:27.087 [INF] LNWL: Opened wallet
2023-09-28 11:19:27.132 [INF] CHRE: Primary chain is set to: bitcoin
2023-09-28 11:19:32.512 [DBG] RPCS: [/lnrpc.Lightning/GetInfo] requested
2023-09-28 11:19:32.512 [ERR] RPCS: [/lnrpc.Lightning/GetInfo]: the RPC server is in the process of starting up, but not yet ready to accept calls

With a quick search on the Internet, I found that this could be because Core is not completely sync but it's:
Code:
{
  "version": 220000,
  "blocks": 809706,
  "headers": 809706,
  "verificationprogress": 0.9999983770795251,
....
Checking mempool.space 809706 is the last block.

The bitcoin.conf and lnd.conf are the following ones:

[Bitcoin.conf]
Code:
server=1
daemon=1

# Allows LND to connect to the Bitcoin node via an RPC user & pass
rpcuser=*********
rpcpassword=**********

# Allows LND & Bitcoin Core to communicate via ZeroMQ
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

# Allows other machines apart from localhost to connect to rpc server
rpcallowip=x.x.x.x/24
rpcbind=127.0.0.1


dbcache=20480

shrinkdebugfile=0


[LND]

Code:
[Application Options]
externalip=x.x.x.x

[Bitcoin]
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind



[Bitcoind]
bitcoind.rpchost=CoreIP (same network as externalip)
bitcoind.rpcuser=*******
bitcoind.rpcpass=********

bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333


Thanks in advance,
-SS
4  Bitcoin / Bitcoin Technical Support / Decrypt Lightning Node Client Traffic on: September 20, 2023, 08:57:33 AM
Hi,

I need to sniff traffic from the p2p Lightning Network and check it using Wireshark or some other package capture program.
The issue here is that the traffic is encrypted. Is there any node implementation that has some option to extract the key used for encrypting that traffic?

If you know of any other solution to take that traffic and be able to read it without extracting the key from the node for example doing some man in the middle between the Node and the P2P network please, let me know.


Thank for reading!


Best Regards,
SS
5  Bitcoin / Development & Technical Discussion / [NOT A DISCUSION ABOUT INCREMENTING BLOCK SIZE] Bitcoin blocks size on: June 21, 2023, 07:40:37 PM
Hi,

Could someone point me to the code file where the block size is defined?
I need to know the theoretical max block size if we ignore SegWit, etc.

Thanks in advace.


Regards,
SS
6  Bitcoin / Bitcoin Technical Support / Bitcoin Core RPC remote not Working on: June 18, 2023, 10:09:03 AM
Hi,

I've been trying to configure my bitcoin core node to be able to use rpc commands from another laptop in the same network, but I'm unable to do it. Idk if I am leaving out any necessary settings.
Please, see bellow the bitcoin.conf file

Code:
pi@raspberrypi:/mnt/btc_blockchian-externalDisk/bitcoin/data $ cat bitcoin.conf
proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
prune=100000

server=1

rpcuser=****
rpcpassword=****

[main]
rpcbind=127.0.0.1
rpcbind=192.168.1.2
rpcallowip=192.168.1.0/24
rpcallowip=127.0.0.1

Proxy settings on the top are for Tor connection, just ignore it.

I think the problem is that port 8332 is only open for loopback and not for the entire net.
Code:
pi@raspberrypi:~ $ sudo netstat -tulpn | grep LISTEN
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      545/tor
tcp        0      0 127.0.0.1:9051          0.0.0.0:*               LISTEN      545/tor
tcp        0      0 127.0.0.1:8334          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 127.0.0.1:8332          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 127.0.0.1:8333          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      540/sshd: /usr/sbin
tcp6       0      0 :::22                   :::*                    LISTEN      540/sshd: /usr/sbin

Also, nmap from the other laptop shows port 8332, 8333 and 8334 closed.
Code:
PORT     STATE  SERVICE VERSION
8332/tcp closed unknown
8333/tcp closed bitcoin
8334/tcp closed unknown

Note: there are no iptables or something like that closing those ports. (at least that I know)


Thanks for your time!

SS
7  Bitcoin / Bitcoin Technical Support / Unable to spend UTXO from an old commitment transaction on: May 02, 2023, 05:43:59 PM
Hi all,

First of all thanks for taking your time to read this. I will give you some context so you can understand why I'm doing this and maybe would be easier for you to help me.

I'm doing a study about the response of the nodes when they're victims of a Contract Breach Attack. In a nutshell a Contract Breach Attack consist in broadcasting an old commitment transaction of a LN channel trying to win money of an old state that is not the actual one.

Note: I'm doing this in a simulator, not on real channels. Currantly using Polar.

I've been able to replicate that attack. And the victims respond correctly, as expected, taking all funds of the channel with a penalty transaction.
The issue comes when I disconnect the victim node before attacking, so he cannot respond and the attacker should be able to take the funds after a defined amount of time (num of blocks specific in the script). I mined like 500 blocks and I still unable to take the funds. My attacker node does not recognize the UTXOs as their UTXOs, so, I cannot spend it.


Could anyone help me with this? I just need to be able to spend that UTXO from my attacker node.

I tried to spend it using "lightning-cli withdraw" command, but it does not work as it does not detect the UTXO on their "lightning-cli listbalance" UTXO set.


Please, don't hesitate to ask for more information or instructions if you want to replicate the attack so you can check on your own experimental environment.
Thanks again for reading.


Best Regards,

SS





Additional interesting information:
  - Attacker node implementation --> C-Lighting

  - Channel funding transaction in raw -->  02000000000101d26448c4f74bc2a1d67cbf3b020fec6eab7ca057d8b3f95677541099b36cd89c0 100000000fdffffff02f6cf030000000000160014de1b0aafa4abf814dd1f8b498f4a8642e790c8 4f90d0030000000000220020c8aea95160aa2288daf781f158edda793531202af95a122daeb011b 1a0b97bdf0247304402205eee39e29b07a27615bafcc0381f736f5b1c1d53d22ff3582def157d08 2c40ed0220496699204fbd9dce6154bfb63ace05e933938b5b258ab675c4b0f99ca577f7b701210 2465e45bea01f3fbfd296e279a18efe87c2abeca9649d57d3010ffc2fcac7c8cd6b000000

  - Malicious commitment transaction in raw --> 020000000001016b49869e036602c7612c30b1fc7c0ceb11ba9e9e85b175b07404730e707df4bd0 10000000086d0c980023075000000000000160014dea667f2fb02ad8a324802011b93bda8731f44 8ba95a030000000000220020ba0debe6ad86cd924a6158afd200b9ae3444ad7e8b7b8b9956204fd 34f15e493040047304402202ac1513ddc07e2e020aa1be5dd1ceabd52c158a4517c9d63c94a87c7 1b788b870220079b64978ecbd12a627f687a5614f07f86a83aab205219a19e714da925cc51d9014 7304402206d50abc880e23ba5a924f7e68f383233fdec06c676d1f55f9f6bd2ab47a738b102207a 728a19b68b0c1c255a190de5f6b2dd1693421fa2cb3f90a9234b45ab02470401475221033f4a9ca 985fddd1884d6ae98b4e926de07b53881629c11cd191f6b541413e3ef210380ab7bdecadd57ad80 0872930bb45ee6811897fcb1668999dade2e4b8418a0d552ae70cb2920
8  Bitcoin / Bitcoin Technical Support / Get funding transaction pointer from C-Lightning Node on: April 09, 2023, 04:45:16 PM
Hi all,

I'm trying to get the funding transaction id from a lightning network channel using a C-Lightning Node.
While in LND it's easy to do it as "listchannels" command returns you all the information needed, I cannot see any way to do it in a C-Lighting Node.


LND:

Code:
lnd@alice:/$ lncli listchannels
{
    "channels": [
        {
            "active": true,
            "remote_pubkey": "022a2dba6a75a2b79ac5af55781d3e90709b3369da652a35c527ac32b16f424422",
            "channel_point": "d4792176757a8cba7b403584e8b247c076318a6543a725c4faa63dcdb75fe998:0",
            "chan_id": "118747255865344",
            "capacity": "250000",
            "local_balance": "0",
            "remote_balance": "249817",
     .......


C-Lighting:

Code:
clightning@bob:/$ lightning-cli listchannels
{
   "channels": [
      {
         "source": "022a2dba6a75a2b79ac5af55781d3e90709b3369da652a35c527ac32b16f424422",
         "destination": "0369e70480f6437cb2d36fadd0acabad272d161fd38b20e5663a54efdb4fe164d4",
         "short_channel_id": "108x1x0",
         "public": true,
         "satoshis": 250000,
         "amount_msat": "250000000msat",
         "message_flags": 1,
         "channel_flags": 0,
         "active": true,
         "last_update": 1681057970,
         "base_fee_millisatoshi": 1,
         "fee_per_millionth": 10,
         "delay": 6,
         "htlc_minimum_msat": "1msat",
         "htlc_maximum_msat": "247500000msat",
         "features": ""
      },
      {
         "source": "0369e70480f6437cb2d36fadd0acabad272d161fd38b20e5663a54efdb4fe164d4",
         "destination": "022a2dba6a75a2b79ac5af55781d3e90709b3369da652a35c527ac32b16f424422",
         "short_channel_id": "108x1x0",
         "public": true,
         "satoshis": 250000,
         "amount_msat": "250000000msat",
         "message_flags": 1,
         "channel_flags": 1,
         "active": true,
         "last_update": 1681057974,
         "base_fee_millisatoshi": 1000,
         "fee_per_millionth": 1,
         "delay": 40,
         "htlc_minimum_msat": "1000msat",
         "htlc_maximum_msat": "250000000msat",
         "features": ""
      }
   ]
}

In summary I'm looking how to get the "channel_point" value from the LND output but from C-Lightning Node.


Thanks all in advance!


Best Regards,
SS
9  Bitcoin / Bitcoin Technical Support / Remote RPC queries to C-Lighting Node on: March 21, 2023, 06:42:16 PM
Hi all,

I am starting with the lighting network, specifically with Core Lighting (C-lighting). I was looking for information about how to execute remote commands on the node.
I mean, locally you can execute "lighting-cli $option" commands but I'm looking for a way to do it remotely without SSH connection.
I thought the node had an API where I could do petitions but, I do not find anything on the Internet regarding this without using additional server.

Does this API exist? If it does, please could someone share some documentation about this?
If not, please feel free to share your sugestions about how could I interact with the node remotely without SSH.

Thanks in advance.


Best Regards,
SS
10  Bitcoin / Bitcoin Technical Support / Extract commitment transactions (LN) on: March 12, 2023, 07:24:44 PM
Hi all,

I need to extract a commitment transaction on a simulated environment for a university project.
The idea is to analyze on different LN node implementations how they react to a channel breach attack.
Obviously LN clients don't have an option to extract commitment transactions, so I would need to know how could I extract manually this commitment transaction.
I can work with c-lightning (core lightning), LND and Eclair.


Thanks for reading and your help.


Best regards,
SS
11  Bitcoin / Bitcoin Technical Support / Running a Full Bitcoin Core Node on a Raspberry (need to move location) on: December 27, 2022, 04:08:36 PM
Hi everyone,

I'm trying to run a node on my raspberry pi. I followed this simple guide: https://snapcraft.io/install/bitcoin-core/raspbian.
My raspberry uses a micro sd as main memory, so I have no enough space. I mounted an external disk with enough space to store all the data.
The question here is: how can I configure Core in order to use that external disk to save all the information?

Note that I don't have a GUI, I connect to my raspberry using ssh.

Thanks in advance.

Best Regards,
SS
12  Bitcoin / Bitcoin Technical Support / Privacy wallets on: December 23, 2022, 11:03:13 AM
Hello everyone,

I am writing this looking for information about privacy in wallets.

It is known that the major closed source wallets use their own servers to provide information about the balance of addresses or to make new transactions.
I would like to know if some open source wallets like Electrum have their own servers to do that job or if they work with the public nodes of the bitcoin network.
I'm also interested to know if there are any hardware wallets that do that. If not, I would like to know if there is a way to check the balance of an address using the btc network and not a blockchain explorer, for example with some node calls running btc core.

Thank you all for taking the time to read!!!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!