]> git.bitcoin.ninja Git - rust-lightning/commit
Add ShutdownScript for BOLT 2 acceptable scripts
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 22 Jul 2021 01:12:14 +0000 (20:12 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 9 Aug 2021 20:55:25 +0000 (15:55 -0500)
commitecc70757f9863a76ab9d4cc8b6bfe1a9cc9f4977
treeedbda96446514e0f297ecd7e4fa51bb1166ee641
parent2833786084af7ca108b99d5ce0baf6ab1fe98f63
Add ShutdownScript for BOLT 2 acceptable scripts

BOLT 2 enumerates the script formats that may be used for a shutdown
script. KeysInterface::get_shutdown_pubkey returns a PublicKey used to
form one of the acceptable formats (P2WPKH). Add a ShutdownScript
abstraction to encapsulate all accept formats and be backwards
compatible with P2WPKH scripts serialized as the corresponding
PublicKey.
lightning/src/ln/mod.rs
lightning/src/ln/script.rs [new file with mode: 0644]