getExtended method
Returns an extended key value for the specified key type.
Implementation
String? getExtended(ExtendedKeyType type) {
switch (type) {
case ExtendedKeyType.p2pkh:
return p2pkh.toRadixString(16).padLeft(8, '0');
case ExtendedKeyType.p2sh:
return p2sh.toRadixString(16).padLeft(8, '0');
case ExtendedKeyType.p2wpkh:
return p2wpkh?.toRadixString(16).padLeft(8, '0');
case ExtendedKeyType.p2wpkhInP2sh:
return p2wpkhInP2sh?.toRadixString(16).padLeft(8, '0');
case ExtendedKeyType.p2wsh:
return p2wsh?.toRadixString(16).padLeft(8, '0');
default:
return p2wshInP2sh?.toRadixString(16).padLeft(8, '0');
}
}