abstract class Factory[+T] extends AnyRef

Created by chris on 2/26/16. Trait to implement ubiquitous factory functions across our codebase

Linear Supertypes
Known Subclasses
BloomFilter, BloomFlag, BIP39Seed, ChainCode, ExtKey, ExtKeyPubVersion, ExtKeyVersion, ExtPrivateKey, ExtPrivateKeyHardened, ExtPublicKey, Satoshis, FilterType, BIP32Path, Int32, Int64, UInt16, UInt32, UInt5, UInt64, UInt8, AddrMessage, AddrV2Message, BlockMessage, CompactFilterCheckPointMessage, CompactFilterHeadersMessage, CompactFilterMessage, FeeFilterMessage, FilterAddMessage, FilterLoadMessage, GetBlocksMessage, GetCompactFilterCheckPointMessage, GetCompactFilterHeadersMessage, GetCompactFiltersMessage, GetDataMessage, GetHeadersMessage, HeadersMessage, Inventory, InventoryMessage, MerkleBlockMessage, NetworkHeader, NetworkIpAddress, NetworkMessage, NotFoundMessage, PingMessage, PongMessage, ProtocolVersion, RejectMessage, ServiceIdentifier, TransactionMessage, TypeIdentifier, VersionMessage, BigSizeUInt, CompactSizeUInt, Block, BlockHeader, MerkleBlock, ContractDescriptor, ContractInfo, DLCPayoutCurve, DLCTimeouts, DisjointUnionContractInfo, EnumContractDescriptor, EnumSingleOracleInfo, ExactMultiOracleInfo, NumericContractDescriptor, NumericMultiOracleInfo, OracleInfo, SingleContractInfo, SingleOracleInfo, LnInvoiceSignature, PaymentPreimage, PaymentSecret, FundedChannelId, ShortChannelId, NodeId, CLTVScriptPubKey, CLTVScriptSignature, CSVScriptPubKey, CSVScriptSignature, ConditionalScriptSignature, ControlBlock, LockTimeScriptPubKey, MultiSignatureScriptPubKey, MultiSignatureScriptSignature, MultiSignatureWithTimeoutScriptPubKey, NonStandardIfConditionalScriptPubKey, NonStandardNotIfConditionalScriptPubKey, NonStandardScriptPubKey, NonStandardScriptSignature, NonWitnessScriptPubKey, P2PKHScriptPubKey, P2PKHScriptSignature, P2PKScriptPubKey, P2PKScriptSignature, P2PKWithTimeoutScriptPubKey, P2PKWithTimeoutScriptSignature, P2SHScriptPubKey, P2SHScriptSignature, P2WPKHWitnessSPKV0, P2WSHWitnessSPKV0, RawScriptPubKey, ScriptFactory, ScriptPubKey, ScriptSignature, ScriptWitness, TaprootKeyPath, TaprootScriptPath, TaprootScriptPubKey, TaprootWitness, TapscriptControlBlock, UnassignedWitnessScriptPubKey, UnknownControlBlock, WitnessCommitment, WitnessScriptPubKey, WitnessScriptPubKeyV0, AmtToForwardTLV, CETSignaturesV0TLV, ContractDescriptorTLV, ContractDescriptorV0TLV, ContractDescriptorV1TLV, ContractInfoTLV, ContractInfoV0TLV, ContractInfoV1TLV, DLCAcceptTLV, DLCOfferTLV, DLCSignTLV, DigitDecompositionEventDescriptorV0TLV, EnumEventDescriptorV0TLV, ErrorTLV, EventDescriptorTLV, FundingInputV0TLV, FundingSignaturesV0TLV, HyperbolaPayoutCurvePieceTLV, InitTLV, LnMessage, LnMessageFactory, NegotiationFieldsTLV, NegotiationFieldsV1TLV, NegotiationFieldsV2TLV, NoNegotiationFieldsTLVFactory, OldTLVPoint, OracleAnnouncementTLV, OracleAnnouncementV0TLV, OracleAttestmentTLV, OracleAttestmentV0TLV, OracleEventV0TLV, OracleInfoTLV, OracleInfoV0TLV, OracleInfoV1TLV, OracleInfoV2TLV, OracleParamsV0TLV, OutgoingCLTVValueTLV, PaymentDataTLV, PayoutCurvePieceTLV, PayoutFunctionV0TLV, PingTLV, PolynomialPayoutCurvePieceTLV, PongTLV, RoundingIntervalsV0TLV, SendOfferTLV, ShortChannelIdTLV, Signed16PTLVNumber, TLV, TLVDeserializable, TLVFactory, TLVParentFactory, TLVPoint, UnknownTLV, BaseTransaction, OutputReference, Transaction, TransactionInput, TransactionOutPoint, TransactionOutput, WitnessTransaction, GlobalPSBTMap, GlobalPSBTRecord, InputPSBTMap, InputPSBTRecord, PartialSignature, OutputPSBTMap, OutputPSBTRecord, PSBT, PSBTGlobalKeyId, PSBTInputKeyId, PSBTKeyIdFactory, PSBTMapFactory, PSBTOutputKeyId, ScriptConstant, ScriptNumber, ScriptParser, ScriptParser, AesEncryptedData, AesSalt, CurveCoordinate, DoubleSha256Digest, DoubleSha256DigestBE, ECAdaptorSignature, ECDigitalSignature, ECPrivateKey, ECPrivateKeyBytes, ECPublicKey, ECPublicKeyBytes, FieldElement, FiniteFieldObject, HashType, KeyParity, RipeMd160Digest, RipeMd160DigestBE, SchnorrDigitalSignature, SchnorrNonce, SchnorrPublicKey, Sha1Digest, Sha1DigestBE, Sha256Digest, Sha256DigestBE, Sha256Hash160Digest, Sha256Hash160DigestBE, Sha3_256Digest, Sha3_256DigestBE, XOnlyPubKey, MuSigNoncePriv, MuSigNoncePub
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Factory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Factory()

Abstract Value Members

  1. abstract def fromBytes(bytes: ByteVector): T

    Creates a T out of a sequence of bytes.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(hex: String): T

    Creates a T from a hex string.

  5. def apply(bytes: ByteVector): T

    Creates a T out of a sequence of bytes.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def fromBytesLE(bytes: ByteVector): T

    Creates a T out of a sequence of bytes in little endian.

  12. def fromBytesOpt(bytes: ByteVector): Option[T]

    Deserializes the given ByteVector to a T If the ByteVector is not correct, None is returned

  13. def fromBytesT(bytes: ByteVector): Try[T]

    Deserializes the given ByteVector string if the ByteVector is not correct, we give you a Failure

  14. def fromHex(hex: String): T

    Creates a T out of a hex string.

  15. def fromHexLE(hex: String): T

    Creates a T out of a hex string in little endian.

  16. def fromHexOpt(hex: String): Option[T]

    Deserializes the given hex string to a T If the hex is not correct, None is returned

  17. def fromHexT(hex: String): Try[T]

    Deserializes the given hex string if the hex is not correct, we give you a Failure

  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. implicit def self: Factory[T]

    Allows a def foo[C: Factory]() construction.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped