rename xprv struct to XprvNode
extract xprv_fill_public method