ChildNumber class

Implemented types

Constructors

ChildNumber(int childNumber, bool isHardened)
ChildNumber.fromIndex(int i)

Properties

hashCode int
The hash code for this object.
no setteroverride
i int
Returns the uint32 encoded form of the path element, including the most significant bit.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(ChildNumber other) int
Compares this object to another object.
override
isHardened() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
num() int
Returns the child number without the hardening bit set (i.e. index in that part of the tree).
toString() String
A string representation of this object.
override

Operators

operator ==(Object otherChild) bool
The equality operator.
override

Static Properties

HARDENED_BIT int
The bit that's set in the child number to indicate whether this key is "hardened". Given a hardened key, it is not possible to derive a child public key if you know only the hardened public key. With a non-hardened key this is possible, so you can derive trees of public keys given only a public parent, but the downside is that it's possible to leak private keys if you disclose a parent public key and a child private key (elliptic curve maths allows you to work upwards).
final
ONE ChildNumber
final
ZERO ChildNumber
final
ZERO_HARDENED ChildNumber
final