object LnInvoice extends StringFactory[LnInvoice]
- Alphabetic
- By Inheritance
- LnInvoice
- StringFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MAX_TIMESTAMP: BigInt
- val MAX_TIMESTAMP_U64: UInt64
- def apply(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields, privateKey: ECPrivateKey): LnInvoice
- def apply(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields, signature: LnInvoiceSignature): LnInvoice
- def apply(hrp: LnHumanReadablePart, data: Vector[UInt5]): LnInvoice
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build(hrp: LnHumanReadablePart, lnTags: LnTaggedFields, privateKey: ECPrivateKey): LnInvoice
The easiest way to create a LnInvoice is by just passing the given parameters and and then build will create a LnInvoice with a valid LnInvoiceSignature
The easiest way to create a LnInvoice is by just passing the given parameters and and then build will create a LnInvoice with a valid LnInvoiceSignature
- hrp
- lnTags
the various tags in the invoice
- privateKey
\- the key used to sign the invoice
- def build(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields, privateKey: ECPrivateKey): LnInvoice
The easiest way to create a LnInvoice is by just passing the given pareameters and and then build will create a LnInvoice with a valid LnInvoiceSignature
The easiest way to create a LnInvoice is by just passing the given pareameters and and then build will create a LnInvoice with a valid LnInvoiceSignature
- hrp
- timestamp
the timestamp on the invoice
- lnTags
the various tags in the invoice
- privateKey
\- the key used to sign the invoice
- def buildLnInvoiceSignature(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields, privateKey: ECPrivateKey): LnInvoiceSignature
- def buildSigHashData(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields): Sha256Digest
- def buildSignatureData(hrp: LnHumanReadablePart, timestamp: UInt64, lnTags: LnTaggedFields): ByteVector
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createChecksum(hrp: LnHumanReadablePart, data: Vector[UInt5]): Vector[UInt5]
- def decodeTimestamp(u5s: Vector[UInt5]): UInt64
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromString(bech32String: String): LnInvoice
Tries to parse a string to type t, throws an exception if fails
Tries to parse a string to type t, throws an exception if fails
- Definition Classes
- LnInvoice → StringFactory
- def fromStringOpt(string: String): Option[LnInvoice]
Treis to parse a string to type t, returns None if failure
Treis to parse a string to type t, returns None if failure
- Definition Classes
- StringFactory
- def fromStringT(string: String): Try[LnInvoice]
Tries to parse string to type t, returns scala.util.Failure if the fails
Tries to parse string to type t, returns scala.util.Failure if the fails
- Definition Classes
- StringFactory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hrpExpand(lnHumanReadablePart: LnHumanReadablePart): Vector[UInt5]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifyChecksum(hrp: LnHumanReadablePart, u5s: Seq[UInt5]): Boolean
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()