toBytes method

BuBytes toBytes()

Implementation

BuBytes toBytes() => BuBytes([
  keyData.depth.depth,
  ...keyData.fingerPrint.toBytes(),
  ...keyData.index.toBytes(Endian.little),
  ...keyData.chainCode.toBytes(),
  ...fvk.toBytes(),
  ...keyData.dk.toBytes(),
]);