Example #1
0
 public CustomAddressPath(uint[] path)
 {
     foreach (var value in path)
     {
         AddressPathElements.Add(new AddressPathElement {
             Value = value
         });
     }
 }
 public BIP44AddressPath(bool isSegwit, uint coinType, uint account, bool isChange, uint addressIndex)
 {
     AddressPathElements.Add(new AddressPathElement {
         Value = isSegwit ? (uint)49 : 44, Harden = true
     });
     AddressPathElements.Add(new AddressPathElement {
         Value = coinType, Harden = true
     });
     AddressPathElements.Add(new AddressPathElement {
         Value = account, Harden = true
     });
     AddressPathElements.Add(new AddressPathElement {
         Value = isChange ? 1 : (uint)0, Harden = false
     });
     AddressPathElements.Add(new AddressPathElement {
         Value = addressIndex, Harden = false
     });
 }