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 class
Fallback.PubKeyHash
static class
Fallback.ScriptHash
static class
Fallback.SegWitProgram
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Fallback
clone()
Creates a copy of the Fallbackboolean
eq(Fallback b)
Checks if two Fallbacks contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
long
hash()
Generates a non-cryptographic 64-bit hash of the Fallback.int
hashCode()
static Fallback
pub_key_hash(byte[] a)
Utility method to constructs a new PubKeyHash-variant Fallbackstatic Fallback
script_hash(byte[] a)
Utility method to constructs a new ScriptHash-variant Fallbackstatic Fallback
seg_wit_program(WitnessVersion 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(WitnessVersion 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
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the 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.
-
-