Class DeterministicHierarchy

java.lang.Object
com.kryptokrauts.aeternity.sdk.domain.secret.DeterministicHierarchy

public class DeterministicHierarchy
extends java.lang.Object
Data structure to hold the deterministic key hierarchy tree, based on the given master keypair HdKeyPair
  • Field Details

    • ADDRESS_INDEX_DEFAULT

      public static final java.lang.Integer ADDRESS_INDEX_DEFAULT
  • Constructor Details

    • DeterministicHierarchy

      public DeterministicHierarchy​(HdKeyPair master)
  • Method Details

    • addAccount

      public void addAccount​(HdKeyPair accountKeypair)
    • addChain

      public void addChain​(HdKeyPair chainKeypair)
    • addNextAddress

      public void addNextAddress​(HdKeyPair miKeypair, HdKeyPair mi0Keypair, HdKeyPair mi00Keypair)
      Parameters:
      miKeypair - child index keypair
      mi0Keypair - this childs internal chain keypair
      mi00Keypair - this childs actual address keypiar
    • getChildAt

      public HdKeyPair getChildAt​(java.lang.Integer index)
    • getChildKeyPairs

      public java.util.List<HdKeyPair> getChildKeyPairs()
    • getChildKeysIndexMap

      public java.util.Map<java.lang.Integer,​HdKeyPair> getChildKeysIndexMap()
    • getNextChildIndex

      public java.lang.Integer getNextChildIndex()
    • getLastChildKeyPair

      public HdKeyPair getLastChildKeyPair()
    • getMasterKeyPair

      public HdKeyPair getMasterKeyPair()
    • getAccountKeyPair

      public HdKeyPair getAccountKeyPair()
    • getChainKeyPair

      public HdKeyPair getChainKeyPair()