• explodicle@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 hours ago

    Aren’t public keys exposed when Lightning transactions are signed?

    How does segwit provide quantum security?

    • ryannathans@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      Old mining rewards sit in P2PK outputs, which put the full public key on the blockchain permanently. Native SegWit shows only a hash of the key until the coins are spent.

      A quantum computer running Shor’s algorithm would need that public key to work out the private key. P2PK coins can be attacked at leisure but SegWit coins can’t. It’s not that they use post-quantum asymmetric encryption, it’s that the technique itself is quantum-proof until a brief moment during the process of spending those coins.