Package org.ldk.structs
Class Fallback
- java.lang.Object
-
- org.ldk.structs.Fallback
-
- Direct Known Subclasses:
Fallback.PubKeyHash,Fallback.ScriptHash,Fallback.SegWitProgram
public class Fallback extends Object
Fallback address in case no LN payment is possible
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFallback.PubKeyHashstatic classFallback.ScriptHashstatic classFallback.SegWitProgram
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Fallbackclone()Creates a copy of the Fallbackbooleaneq(Fallback b)Checks if two Fallbacks contain equal inner contents.protected voidfinalize()static Fallbackpub_key_hash(byte[] a)Utility method to constructs a new PubKeyHash-variant Fallbackstatic Fallbackscript_hash(byte[] a)Utility method to constructs a new ScriptHash-variant Fallbackstatic Fallbackseg_wit_program(UInt5 version, byte[] program)Utility method to constructs a new SegWitProgram-variant Fallback
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
seg_wit_program
public static Fallback seg_wit_program(UInt5 version, byte[] program)
Utility method to constructs a new SegWitProgram-variant Fallback
-
pub_key_hash
public static Fallback pub_key_hash(byte[] a)
Utility method to constructs a new PubKeyHash-variant Fallback
-
script_hash
public static Fallback script_hash(byte[] a)
Utility method to constructs a new ScriptHash-variant Fallback
-
eq
public boolean eq(Fallback b)
Checks if two Fallbacks contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-