Class/Object

fr.acinq.eclair.crypto

LocalKeyManager

Related Docs: object LocalKeyManager | package crypto

Permalink

class LocalKeyManager extends KeyManager

This class manages secrets and private keys. It exports points and public keys, and provides signing methods

Linear Supertypes
KeyManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalKeyManager
  2. KeyManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LocalKeyManager(seed: ByteVector, chainHash: ByteVector32)

    Permalink

    seed

    seed from which keys will be derived

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def channelKeyPath(localParams: LocalParams, channelVersion: ChannelVersion): KeyPath

    Permalink
    Definition Classes
    KeyManager
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. def commitmentPoint(channelKeyPath: KeyPath, index: Long): PublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  8. def commitmentSecret(channelKeyPath: KeyPath, index: Long): PrivateKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  9. def delayedPaymentPoint(channelKeyPath: KeyPath): ExtendedPublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def fundingPublicKey(channelKeyPath: KeyPath): ExtendedPublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def htlcPoint(channelKeyPath: KeyPath): ExtendedPublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def newFundingKeyPath(isFunder: Boolean): KeyPath

    Permalink

    isFunder

    true if we're funding this channel

    returns

    a partial key path for a new funding public key. This key path will be extended:

    • with a specific "chain" prefix
    • with a specific "funding pubkey" suffix
    Definition Classes
    LocalKeyManagerKeyManager
  19. val nodeId: PublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  20. val nodeKey: ExtendedPrivateKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. def paymentPoint(channelKeyPath: KeyPath): ExtendedPublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  24. def revocationPoint(channelKeyPath: KeyPath): ExtendedPublicKey

    Permalink
    Definition Classes
    LocalKeyManagerKeyManager
  25. def sign(tx: TransactionWithInputInfo, publicKey: ExtendedPublicKey, remoteSecret: PrivateKey): ByteVector64

    Permalink

    Ths method is used to spend revoked transactions, with the corresponding revocation key

    Ths method is used to spend revoked transactions, with the corresponding revocation key

    tx

    input transaction

    publicKey

    extended public key

    remoteSecret

    remote secret

    returns

    a signature generated with a private key generated from the input keys's matching private key and the remote secret.

    Definition Classes
    LocalKeyManagerKeyManager
  26. def sign(tx: TransactionWithInputInfo, publicKey: ExtendedPublicKey, remotePoint: PublicKey): ByteVector64

    Permalink

    This method is used to spend funds send to htlc keys/delayed keys

    This method is used to spend funds send to htlc keys/delayed keys

    tx

    input transaction

    publicKey

    extended public key

    remotePoint

    remote point

    returns

    a signature generated with a private key generated from the input keys's matching private key and the remote point.

    Definition Classes
    LocalKeyManagerKeyManager
  27. def sign(tx: TransactionWithInputInfo, publicKey: ExtendedPublicKey): ByteVector64

    Permalink

    tx

    input transaction

    publicKey

    extended public key

    returns

    a signature generated with the private key that matches the input extended public key

    Definition Classes
    LocalKeyManagerKeyManager
  28. def signChannelAnnouncement(fundingKeyPath: KeyPath, chainHash: ByteVector32, shortChannelId: ShortChannelId, remoteNodeId: PublicKey, remoteFundingKey: PublicKey, features: ByteVector): (ByteVector64, ByteVector64)

    Permalink

    Sign a channel announcement message

    Sign a channel announcement message

    fundingKeyPath

    BIP32 path of the funding public key

    chainHash

    chain hash

    shortChannelId

    short channel id

    remoteNodeId

    remote node id

    remoteFundingKey

    remote funding pubkey

    features

    channel features

    returns

    a (nodeSig, bitcoinSig) pair. nodeSig is the signature of the channel announcement with our node's private key, bitcoinSig is the signature of the channel announcement with our funding private key

    Definition Classes
    LocalKeyManagerKeyManager
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from KeyManager

Inherited from AnyRef

Inherited from Any

Ungrouped