Moves chainCode from the lnd package to the chainreg package, where it is exported and can be used by other packages.