Object/Class

fr.acinq.eclair.crypto

ShaChain

Related Docs: class ShaChain | package crypto

Permalink

object ShaChain extends Serializable

see https://github.com/rustyrussell/lightning-rfc/blob/master/early-drafts/shachain.txt

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

Type Members

  1. type Index = Vector[Boolean]

    Permalink
  2. case class Node(value: ByteVector32, height: Int, parent: Option[Node]) extends Product with Serializable

    Permalink

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. def addHash(receiver: ShaChain, hash: ByteVector32, index: Long): ShaChain

    Permalink
  5. def addHash(receiver: ShaChain, hash: ByteVector32, index: Index): ShaChain

    Permalink
    Annotations
    @tailrec()
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def derive(node: Node, directions: Long): Node

    Permalink
  9. def derive(node: Node, directions: Seq[Boolean]): Node

    Permalink
  10. def derive(node: Node, direction: Boolean): Node

    Permalink

    node

    initial node

    direction

    false means left, true means right

    returns

    the child of our node in the specified direction

  11. val empty: ShaChain

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def flip(in: ByteVector32, index: Int): ByteVector32

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def getHash(receiver: ShaChain, index: Long): Option[ByteVector32]

    Permalink
  17. def getHash(receiver: ShaChain, index: Index): Option[ByteVector32]

    Permalink
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. val init: ShaChain

    Permalink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def iterator(chain: ShaChain): Iterator[ByteVector32]

    Permalink
  22. def moves(index: Long): Vector[Boolean]

    Permalink

    index

    64-bit integer

    returns

    a binary representation of index as a sequence of 64 booleans. Each bool represents a move down the tree

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  26. val shaChainCodec: Codec[ShaChain]

    Permalink
  27. def shaChainFromSeed(hash: ByteVector32, index: Long): ByteVector32

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. 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 Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped