HDKeyInfo class
Information in addition to the FROST key required for BIP32 derivation
Constructors
- HDKeyInfo.new({required Uint8List chaincode, required int depth, required int index, required int parentFingerprint})
- HDKeyInfo.fromBytes(Uint8List bytes)
-
Convenience constructor to construct from serialised
bytes
. - HDKeyInfo.fromHex(String hex)
-
Convenience constructor to construct from encoded
hex
. - HDKeyInfo.fromReader(BytesReader reader)
Properties
- chaincode → Uint8List
-
final
- depth → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
final
- parentFingerprint → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Obtains the cached size of the object
no setterinherited
Methods
-
deriveTweakAndInfo(
ECCompressedPublicKey groupKey, int index) → (Uint8List, HDKeyInfo) - Given the group public key and index to derive a child key, a tuple is returned that contains the required tweak and new HDKeyInfo.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List -
Obtains a cached Uint8List with data serialized for this object
inherited
-
toHex(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Writer writer) → void -
Override to write data into
writer
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- fixedChaincode ↔ Uint8List
-
This chaincode is the SHA256 hash of the string "FrostTaprootBIP32".
This can be public without allowing people to derive any information
without also knowing the master public key.
getter/setter pair
- master ↔ HDKeyInfo
-
Fixed master HD information using the fixedChaincode.
getter/setter pair
Static Methods
-
checkIndex(
int index) → void