toBytes method
Implementation
SecretBytes toBytes() => SecretBytes([
keyData.depth.depth,
...keyData.fingerPrint.toBytes(),
...keyData.index.toBytes(Endian.little),
...keyData.chainCode.toBytes(),
...sk.toBytes(),
...keyData.dk.toBytes(),
]);