Probably a stupid and obvious question but...

LND returns pre-images that look like:

3KKpToqROgTCoOun1xnEvdr7QrzQKKJ05Kh3WOK0yVE=

But on Zeus I see them looking like:

b9da4a7cb7ace18070d328d9b10803579ec61a5750778dcb6436763976058b01

Two questions:

1) is this is a sha256 hash of the pre-image?

2) why bother hashing it, is this sensitive after it's already been paid?

Reply to this note

Please Login to reply.

Discussion

On my LND I also see preimages in hex.

Preimage is a proof of payment for an invoice. So it may be sensitive data in some scenarios. Also all intermediate nodes on the payment path (nodes routing the payment) know it after the payment is complete, so it helps to trace payment paths - if you publish it, a node in the middle of the path will know that it was your payment that it routed.

It looks like the first one is base 64 encoded and the second is hex

Or something

Aren’t btc addys that start with 3 pay to hash, script to hash or something? Transaction type?