George Fournier, an Indian and an enrolled member of the Devils Lake Sioux Tribe, was arrested without a warrant on February 3, 1968, within the exterior boundaries of the Fort Totten Indian Reservation by a deputy sheriff of Ramsey County. The reservation lies within Benson County but is adjacent to Ramsey County. Immediately after arresting Mr. Fournier the deputy sheriff transported him to the Ramsey County jail.
On the same date a complaint was filed with the County Justice of Ramsey County, charging Mr. Fournier with the commission of the crime of larceny of an automobile, a felony under our law; and thereupon the county justice set a preliminary hearing for February 7. Later the case was continued to February 10, when a preliminary hearing was commenced and evidence was presented for the purpose of determining whether a public offense had been committed, and, if so, whether there was sufficient cause to believe that Mr. Fournier had committed it.
At the close of the testimony Mr. Four-nier moved for dismissal of the criminal complaint on the ground that the Ramsey County law enforcement officer had exceeded his jurisdiction by making the arrest on the Indian reservation and thus the arrest was illegal, justifying Mr. Fournier’s release.
As Mr. Fournier on February 9 had sought a writ of habeas corpus from the District Court of Ramsey County and that court on February 10 had issued a writ of habeas corpus commanding the Sheriff of Ramsey County to bring Mr. Fournier before the court on February 14 for a determination of his application for his release through a writ of habeas corpus, the county justice postponed making any decision on the motion, and, as far as our record discloses, has not yet determined whether a public offense was committed, and, if so, whether there is probable cause to believe that Mr. Fournier committed it.
Following the hearing on February 14, the district judge, the Honorable Douglas B. Heen, rendered his memorandum decision, setting forth his reasons for denying Mr. Fournier’s release and for quashing the writ. There is no provision under our law for appeal from this decision; accordingly, pursuant to § 87 of our constitution, the petitioner has now filed with our court a petition for a writ of habeas corpus, praying for his release upon the same grounds asserted in the district court.
Although the scope of the inquiry in an application to this court for a writ of ha-beas corpus was not made an issue by the petitioner or by the State, our court has struggled much with this question. One view apparently is that if the trial court has jurisdiction, in a narrow sense, of the *460offense and of the person of the defendant, habeas corpus will not lie for his discharge, notwithstanding that the Constitution or laws or treaties of the United States may have been violated in the taking into custody of the petitioner.
In light of the development of the law surrounding the Great Writ, as set forth in Fay v. Noia, 372 U.S. 391, 83 S. Ct. 822, 9 L.Ed.2d 837 (1963), by Justice Brennan for the majority and by Justice Harlan for the minority, it is the opinion of the majority of this court that the scope of the inquiry in an application to this court for a writ of habeas corpus is much broader than that expressed above when the application is based upon grounds asserting that the petitioner has been illegally restrained of his liberty in violation of the Constitution or laws or treaties of the United States.
In Fay Justice Brennan, speaking for ■the majority, said:
Nor is it true that at common law ha-beas corpus was available only to inquire into the jurisdiction, in a narrow sense, of the committing court. Bushell’s Case is again in point. Chief Justice Vaughan did not base his decision on the. theory that the Court of Oyer and Terminer had no jurisdiction to commit persons for contempt, but on the plain denial of due process, violative of Magna Charta, of a court’s imprisoning the jury because it disagreed with the verdict:
“ * * * [W]hen a man is brought by Habeas Corpus to the Court, and upon retorn of it, it appears to the Court, That he was against Law imprison’d and detain’d, * * * he shall never be by the Act of the Court remanded to his unlawful imprisonment, for then the Court should do an act of Injustice in imprisoning him, de novo, against Law, whereas the great Charter is Quod nullus libet homo imprisonetur nisi per legem terrae; This is the present case, and this was the case upon all the Presidents [precedents] produc’d and many more that might be produc’d, where upon Ha-beas Corpus, many have been discharg’d * *
“This appears plainly by many old Books, if the Reason of them be rightly taken, For insufficient causes are as no causes retorn’d; and to send a man back to Prison for no cause retorn’d, seems unworthy of a Court.” Vaughan, at 156, 124 Eng.Rep., at 1016, 9 Howell’s State Trials, at 1023.
To the same effect, we read in Bacon’s Abridgment:
“[I]f the commitment be against law, as being made by one who had no jurisdiction of the cause, or for a matter for which hy law no man ought to he punished, the court are to discharge him * * *; and the commitment is liable to the same objection where the cause is so loosely set forth, that the court cannot adjudge whether it were a reasonable ground of imprisonment or not.”
Thus, at the time that the Suspension Clause was written into our Federal Constitution and the first Judiciary Act was passed conferring habeas corpus jurisdiction upon the federal judiciary, there was respectable common-law authority for the proposition that habeas was available to remedy any kind of governmental restraint contrary to fundamental law. * * * (footnote omitted)
Fay v. Noia, 372 U.S. 391, 404-405, 83 S.Ct. 822, 830, 9 L.Ed.2d 837.
Emphasizing the breadth of the Great Writ, Justice Brennan continued:
Furthermore, our decision today affects all procedural hurdles to the achievement of swift and imperative justice on habeas corpus * * *.
Fay v. Noia, supra, 372 U.S. 391, 435, 83 S.Ct. 822, 847.
Justice Harlan dissented from the majority opinion in Fay because he believed *461that the state conviction on which Noia’s detention was based rested on an adequate and independent non-federal ground, that ground being that the relevant facts concerning the claim of a coerced confession were reasonably available and yet Noia had allowed the time for a direct appeal to lapse without seeking a review by the state appellate court. However, Justice Harlan and those who joined him in his dissent agreed that there had been considerable development of the law of habeas corpus. He pointed out that during the pre-1915 period the federal courts, in considering applications for habeas corpus which complained of detention pursuant to a judgment of conviction and sentence, purported to examine only the jurisdiction of the sentencing tribunal. We quote:
In the leading case of Ex parte Watkins, 3 Pet. 193, 7 L.Ed. 650, the Court stated:
“An imprisonment under a judgment cannot be unlawful, unless that judgment be an absolute nullity; and it is not a nullity if the court has general jurisdiction of the subject, although it should be erroneous.” 3 Pet. at 203.
Many subsequent decisions, dealing with both state and federal prisoners, and involving both original applications to this Court for habeas corpus and review of lower court decisions, reaffirmed the limitation of the writ to consideration of the sentencing court’s jurisdiction over the person of the defendant and the subject matter of the suit, (citations omitted)
Fay v. Noia, supra, 372 U.S. 391, 450, 83 S.Ct. 822, 854 (dissenting opinion of Harlan, J.)
He discussed the broadening of the writ during the 1915-53 period beginning with Frank v. Mangum, 237 U.S. 309, 35 S.Ct. 582, 59 L.Ed. 969 (1915):
It is clear that a new dimension was added to habeas corpus in this case [Frank], for in addition to questions previously thought of as “jurisdictional,” the federal courts were now to consider whether the applicant had been given an adequate opportunity to raise his constitutional claims before the state courts. And if no such opportunity had been afforded in the state courts, the federal claim would be heard on its merits. * * *
Fay v. Noia, supra, 372 U.S. 391, 456, 83 S.Ct. 822, 858 (dissenting opinion of Harlan, J.)
He described a further stage of expansion of the writ which began with Brown v. Allen, 344 U.S. 443, 73 S.Ct. 397, 97 L.Ed. 469 (1953):
In 1953, this Court rendered its landmark decisions in Brown v. Allen, 344 U.S. 443, 73 S.Ct. 397, 97 L.Ed. 469, and Daniels v. Allen, reported therewith, 344 U.S., at 482-487, 73 S.Ct. at 420-422. Both cases involved applications for federal habeas corpus by prisoners who were awaiting execution pursuant to state convictions. In both cases, the constitutional contentions made were that the trial court had erred in ruling confessions admissible and in overruling motions to quash the indictment on the basis of alleged discrimination in the selection of jurors.
In Brown, these contentions had been presented to the highest court of the State, on direct appeal from the conviction, and had been rejected by that court on the merits, State v. Brown, 233 N.C. 202, 63 S.E.2d 99, after which this Court had denied certiorari, 341 U.S. 943, 71 S.Ct. 997, 95 L.Ed. 1369. At this point, the Court held, Brown was entitled to full reconsideration of these constitutional claims, with a hearing if appropriate, in an application to a Federal District Court for habeas corpus.
It is manifest that this decision substantially expanded the scope of inquiry on an application for federal habeas corpus. Frank v. Mangum and Moore v. *462Dempsey [261 U.S. 86, 43 S.Ct. 265, 67 L.Ed. 543] had denied that the federal courts in habeas corpus sat to determine whether errors of law, even constitutional law, had been made in the original trial and appellate proceedings. Under the decision in Brown, if a petitioner could show that the validity of a state decision to detain rested on a determination of a constitutional claim, and if he alleged that determination to be erroneous, the federal court had the right and the duty to satisfy itself of the correctness of the state decision, (footnotes omitted)
Fay v. Noia, supra, 372 U.S. 391, 460-461, 83 S.Ct. 860 (dissenting opinion of Harlan, J.)
In light of the law of the writ as it has developed, we must inquire in this case into whether the detention of the petitioner has violated the Constitution or the laws or the treaties of the United States in such a way that he is being restrained in violation of fundamental law, entitling him to his release through a writ of habeas corpus. Fay v. Noia, supra, 372 U.S. 391, 411-412, 83 S.Ct. 822.
This is the view that the federal courts are required to take by the federal habeas corpus statute, which provides, among other things, that the writ of habeas corpus shall not extend to a prisoner unless he is in custody in violation of the Constitution or laws or treaties of the United States. 28 U.S.C.A. § 2241(c) (3).
If we were to take a more limited view of the scope of our inquiry on an application for a writ of habeas corpus, our decisions would not meet the crucial fed•eral issues, and thus our proceedings would merely be a dfelay en route to the federal courts, where those issues would ultimately be met and decided.
In this view, then, we must analyze the petitioner’s contentions which are grounded in federal law, upon which he hopes he may gain his freedom through the writ of habeas corpus.
N.D.C.C. § 29-06-15(3) permits a peace officer to make an arrest without a warrant when a felony in fact has been committed and the officer has reasonable cause to believe the person arrested committed it. Federal law is to the same effect. See U.S. C.A. tit. 18, §§ 3052 (powers of Federal Bureau of Investigation), 3053 (powers of marshals and deputies), and other federal statutes setting forth the powers of law enforcement officials.
There is no contention in this case that a felony was not committed or that the officer did not have reasonable grounds to believe that the petitioner committed it. Therefore, the crucial issue is whether the arrest of the petitioner, an Indian, on the reservation by a deputy sheriff of a county adjacent to the reservation for a felony committed in that county deprived the petitioner of his rights under the Constitution or the laws or the treaties of the United States, so that he is entitled to be released from custody.
The petitioner contends that through the disclaimer clauses of the Enabling Act under which North Dakota was admitted to the Union and of the Constitution of the State of North Dakota, the deputy sheriff was prevented from arresting him on the reservation.
The pertinent section of the Enabling Act reads:
4. * * * And said convention shall provide by ordinances irrevocable without the consent of the United States and the people of said states: * * *
Second. That the people inhabiting said proposed states do agree and declare that they forever disclaim all right and title to the unappropriated public lands lying within the boundaries thereof, and to all lands lying within said limits owned or held by any Indian or Indian tribes; and that until the title thereto shall have been extinguished by the United States, the same shall be and remain subject to the disposition of the United States, and said Indian lands shall remain under the *463absolute jurisdiction and control of the congress of the United States; * * *.
The pertinent part of our state constitution originally read:
ARTICLE XVI
COMPACT WITH THE UNITED STATES
The following article shall he irrevocable without the consent of the United States and the people of this state:
Section 203. * * *
Second. The people inhabiting this state do agree and declare that they forever disclaim all right and title to the unappropriated public lands lying within the boundaries thereof, and to all lands lying within said limits owned or held by any Indian or Indian tribes, and that until the title thereto shall have been extinguished by the United States, the same shall be and remain subject to the disposition of the United States, and that said Indian lands shall remain under the absolute jurisdiction and control of the congress of the United States; * * *.
In 1953 Congress enacted Public Law 83-280, which, in addition to conferring jurisdiction on certain enumerated states of criminal offenses and civil causes of action committed on or arising on Indian reservations within such states, gave the consent of the United States to the people of any state to amend their state constitutions and existing statutes to remove. any legal impediment to the assuming of civil and criminal jurisdiction in accordance with the provisions of the Act. It provided in part:
Sec. 6. Notwithstanding the provisions of any Enabling Act for the admission of a State, the consent of the United States is hereby given to the people of any State to amend, where necessary, their State constitution or existing statutes, as the case may be, to remove any legal impediment to the assumption of civil and criminal jurisdiction in accord-anee with the provisions of this Act: Provided, That the provisions of this Act shall not become effective with respect to such assumption of jurisdiction by any such State until the people thereof have appropriately amended their State constitution or statutes as the case may be.
Sec. 7. The consent of the United States is hereby given to any other State not having jurisdiction with respect to criminal offenses or civil causes of action, or with respect to both, as provided for in this Act, to assume jurisdiction at such time and in such manner as the people of the State shall, by affirmative legislative action, obligate and bind the State to assumption thereof.
Act of Aug. 15, 1953, Pub. L. No. 83-280, §§ 6, 7, 67 Stat. 588.
In 1958 the people of North Dakota approved an amendment of the second part of § 203 of our state constitution. The part of that amendment that relates to this case reads:
The people inhabiting this state do agree and declare that they forever disclaim all right and title to the unappropriated public lands lying within the boundaries thereof, and to all lands lying within said limits owned or held by any Indian or Indian tribes, and that until the title thereto shall have been extinguished by the United States, the same shall be and remain subject to the disposition of the United States, and that said Indian lands shall remain under the absolute jurisdiction and control of the Congress of the United States, provided, however, that the Legislative Assembly of the state of North Dakota may, upon such terms and conditions as it shall adopt, provide for the acceptance of such jurisdiction as may be delegated to the state by act of Congress; * * *. (emphasis added)
Laws of North Dakota 1959, ch. 430.
The change that was made in § 203 is the part we have italicized, the provision permitting the legislative assembly to pro*464vide for acceptance by the State of jurisdiction over Indian lands.
Pursuant to Senate Concurrent Resolution “RR” and House Concurrent Resolution “T-l” of the Thirty-seventh Legislative Assembly (1961), the Legislative Research Committee made a study of the field of Indian affairs. The committee recommended that the state not assume criminal jurisdiction over Indian reservations, giving as reasons (1) the objection to such jurisdiction by substantial numbers of Indian citizens and (2) the costs. In making this recommendation the committee said:
Since the Committee does not recommend the assumption of criminal jurisdiction over Indian reservations because of the objection by substantial numbers of Indian citizens and because of the costs involved, the present morass of complex legal questions in the criminal field will continue to plague the Federal Government, the U. S. Bureau of Indian Affairs, the State of North Dakota and its political subdivisions, tribal governments, reservation residents, and citizens at large. * * *
Report of the North Dakota Legislative Research Committee, Thirty-eighth Legislative Assembly (1963), at 39.
In 1963 our state legislature, proclaiming that it was acting in accordance with the provisions of Public Law 280 of the 83d Congress and § 203 of the North Dakota Constitution, enacted Senate Bill 30, which provided, among other things, for the method of acceptance of civil jurisdiction on reservations, including a method of acceptance by an individual as well as by a tribe. Laws of North Dakota 1963, ch. 242 (now N.D.C.C. ch. 27-19). Neither that session of the legislature nor any subsequent session has acted to provide for the assumption of criminal jurisdiction on reservations.
In April 1968 Congress passed the Civil Rights Act, Title IV of which provided in part:
Sec. 401. (a) The consent of the United States is hereby given to any State not having jurisdiction over criminal offenses committed by or against Indians in the areas of Indian country situated within such State to assume, with the consent of the Indian tribe occupying the particular Indian country or part thereof which could be affected by such assumption, such measure of jurisdiction over any or all of such offenses committed within such Indian country or any part thereof as may be determined by such State to the same extent that such State has jurisdiction over any such offense committed elsewhere within the State, and the criminal laws of such State shall have the same force and effect within such Indian country or part thereof as they have elsewhere within that State.
Act of Apr. 11, 1968, Pub. L. No. 90-284.
Section 402 of the Act relates to civil jurisdiction, and Section 403(b) repealed Section 7 of Public Law 83-280 (Act of Aug. 15, 1953), 67 Stat- 588.
The petitioner argues that as the legislature did not act to assume criminal jurisdiction over Indian country, the arrest in this case was illegal and void, and thus his detention is illegal.
Although the legislature did not specifically authorize the arrest of an Indian on a reservation, for an offense committed off the reservation, by a peace officer of a county adjacent to that in which the Indian land is situated, we note that the legislature intended in Senate Bill 30 of the 1963 session to give the courts of this state such power over Indian country as would permit the courts to maintain their dignity and enforce their orders. This power was contained in § 7 of Senate Bill 30 and reads:
In addition to other authority conferred by this Act, the courts of this state shall have the power to hold persons in civil or criminal contempt of court in order to maintain the dignity of the courts and enforce their orders.
*465Laws of North Dakota 1963, ch. 242 (now N.D.C.C. § 27-19-07).
Although in this instance there is no civil or criminal contempt, what is involved is whether the state courts will be able to be effective in performing their function, or whether they will become helpless when an offense is committed off the reservation by an Indian who escapes to the reservation before he is apprehended.
Is the State, through its failure to assume full criminal jurisdiction on Indian reservations, now to be deprived of the exercise of its sovereign power of the enforcement of law and order within its boundaries outside the Indian reservations?
Because law and order are at stake, and the objective of law and order is justice for all, we will not infer a prohibition against the exercise of this power by the State but will require that we be shown that the State is prohibited from exercising such power by some specific provision of the Constitution or laws or treaties of the United States before we will hold that the State does not have such power. This we have not been shown.
None of the decisions which have been referred to us by the petitioner concerns the specific issue which we have before us, and thus they are of little aid to us in determining that issue. The reason that no such decision has been referred to us could be that no one has ever before thought to question a power which is so fundamental to the preservation of the state.
The decision referred to us by the petitioner as supporting his position which most closely resembles this case in facts and issue is In the Matter of the Application for a Writ of Habeas Corpus of Wayne Turtle, Sr., an unreported case of the United States District Court for the State of Arizona. We have reviewed the papers left with us, which purport to be the briefs filed by the respective parties and the order of the federal district court requiring the petitioner’s release. The order does not set forth the reasoning of the court and thus is of no value to us.
One of the cases referred to us by the petitioner and designated as a landmark case is that of Worcester v. Georgia, decided by the United States Supreme Court in the year 1831. That case concerned a prosecution by the State of Georgia of a white citizen of Vermont who had gone onto the Cherokee Indian Reservation in Georgia with the apparent consent of the Cherokee Indians but without a license or permit from the Governor of Georgia as required by Georgia law. In reversing the judgment of conviction of the petitioner and ordering his release, the Supreme Court, speaking through Chief Justice Marshall, said:
The Cherokee nation, then, is a distinct community, occupying its own territory, with boundaries accurately described, in which the laws of Georgia can have no force, and which the citizens of Georgia have no right to enter, but with the assent of the Cherokees themselves, or in conformity with treaties and with the acts of congress. The whole intercourse between the United States and this nation is, by our constitution and laws, vested in the government of the United States.
Worcester v. Georgia, 10 U.S. (6 Pet.) 214, 243, 8 L.Ed. 483 (1831).
In writing this opinion, Chief Justice Marshall discussed the policy of the United States in Indian affairs before the adoption of the Constitution and how such affairs were considered by the early settlers. In addition, he pointed out that through the United States Constitution, the regulation of commerce among the Indian tribes was given to Congress. In deciding the case, however, he seemed to place the most importance on the various treaties that had been entered into between the Cherokees and the United States. In dis*466cussing the significance of the treaties, he said:
What is a treaty? The answer is, it is a compact formed between two nations or communities, having the right of self-government.
Is it essential that each party shall possess the same attributes of sovereignty, to give force to the treaty? This will not be pretended: for, on this ground, very few valid treaties could be formed. The only requisite is, that each ■of the contracting parties shall possess the right of self-government, and the power to perform the stipulations of the treaty.
Worcester v. Georgia, supra, 10 U.S. (6 Pet.) 214, 260.
We think it is noteworthy that Chief Justice Marshall believed that there could be a change through an evolutionary process in the relationship between victor and vanquished or between two nations or communities that have entered into treaties. We quote:
Every state is more or less dependent on those which surround it; but, unless this dependence shall extend so far as to merge the political existence of the protected people into that of their protectors, they may still constitute a state. They may exercise the powers not relinquished, and bind themselves as a distinct and separate community.
Worcester v. Georgia, supra, 10 U.S. (6 Pet.) 214, 261.
In the instant case we have been referred to no pertinent treaties between the Sioux Indians and the United States Government, and thus we do not have treaties to guide us.
The status of the Indian in North Dakota has changed considerably since statehood, the most important change, we believe, being the amendment of our state constitution which now gives the Indian the full status of citizenship, entitling him to an equal vote with all other citizens of the state. Section 121 of Article V of the North Dakota Constitution, which originally extended the franchise to no Indians except those who were male and who had severed their tribal relations two years earlier, has since 1958 given it to “every person of the age of twenty-one or upwards who is a citizen of the United States and who shall have resided in the state one year and in the county ninety days and in the precinct thirty days next preceding any election.” This amendment evinces an attitude on the part of the other people of North Dakota to accept Indians as equals. With civic rights go responsibilities, including the responsibility of obeying the laws of the state as they are in effect outside the reservation.
Another case referred us by the petitioner is that of Organized Village of Kake v. Egan, decided by the United States Supreme Court in 1962. In it Justice Frankfurter, speaking for the court, said:
The general notion drawn from Chief Justice Marshall’s opinion in Worcester v. Georgia, 6 Pet. 515, 561, 8 L.Ed. 483; The Kansas Indians, 5 Wall. 737, 755— 757, 18 L.Ed. 667; and The New York Indians, 5 Wall. 761, 18 L.Ed. 708, that an Indian reservation is a distinct nation within whose boundaries state law cannot penetrate, has yielded to closer analysis when confronted, in the course of subsequent developments, with diverse concrete situations. By 1880 the Court no longer viewed reservations as distinct nations. On the contrary, it was said that a reservation was in many cases a part of the surrounding State or Territory, and subject to its jurisdiction except as forbidden by federal law, Utah & Northern R. Co. v. Fisher, 116 U.S. 28, 31, 6 S.Ct. 246, 247, 29 L.Ed. 542. In Langford v. Monteith, 102 U.S. 145, 26 L.Ed. 53, the Court held that process might be served within a reservation for a suit in territorial court between two non-Indians, in United States v. McBratney, 104 U.S. 621, 21 S.Ct. 924, 45 *467L.Ed. 1032, and Draper v. United States, 164 U.S. 240, 17 S.Ct. 107, 41 L.Ed. 419, the Court held that murder of one non-Indian by another on a reservation was a matter for state law. (footnote omitted)
Organized Village of Kake v. Egan, 369 U.S. 60, 72-73, 82 S.Ct. 562, 569, 7 L.Ed.2d 573 (1962).
Justice Frankfurter quoted Williams v. Lee, another recent decision of the United States Supreme Court, setting forth the rule of applicability of state law to Indian reservations:
In the latest decision, Williams v. Lee, 358 U.S. 217, 79 S.Ct. 269, 3 L.Ed.2d 251, we held that Arizona had no jurisdiction over a civil action brought by a non-Indian against an Indian for the price of goods sold the latter on the Navajo Reservation. The applicability of state law, we there said, depends upon “whether the state action infringed on the right of reservation Indians to make their own laws and he ruled by them,” 358 U.S., at 220, 79 S.Ct. at 271. Another recent statement of the governing principle was made in a decision reaffirming the authority of a State to punish crimes committed by non-Indians against non-Indians on reservations: “[I]n the absence of a limiting treaty obligation or Congressional enactment each state had a right to exercise jurisdiction over Indian reservations within its boundaries,” New York ex rel. Ray v. Martin, 326 U.S. 496, 499, 66 S.Ct. 307, 308, 90 L.Ed. 261.
These decisions indicate that even on reservations state laws may be applied to Indians unless such application would interfere with reservation self-government or impair a right granted or reserved by federal law. * * *
Organized Village of Kake v. Egan, supra, 369 U.S. 60, 74-75.
The arrest made by the deputy sheriff of Ramsey County, even though it was made in Benson County, was proper under our law. As a private person may, under N.D.C.C. § 29-06-20(3), arrest another when a felony has in fact been committed and he has reasonable ground to believe that the person arrested committed it, certainly a peace officer has the same power. People v. McCarty, 164 Cal.App.2d 322, 330 P.2d 484, 488 (1958).
Applying the principle stated by Justice Frankfurter to our case, we believe that our law should apply, as the arrest did not interfere with the reservation self-government nor impair any right granted or reserved to the petitioner by federal law or treaty.
The foregoing discussion disposes of the federal grounds asserted by the petitioner as justifying his release on a writ of ha-beas corpus.
In addition to the federal grounds, however, the petitioner asserts what he believes to be a state ground for his release under a writ of habeas corpus. That ground is that his detention is illegal because he was not taken upon his arrest without a warrant on the reservation, which is situated in Benson County, to a magistrate in that county but instead was taken to a magistrate in the adjacent county of Ramsey, where the offense was triable.
In determining whether a writ of habeas corpus based upon state grounds should be granted, N.D.Const. § 87 and N.D.C.C. ch. 32-22 must be considered:
Section 87. It [the Supreme Court] shall have power to issue writs of habeas corpus, mandamus, quo warranto, cer-tiorari, injunction and such other original and remedial writs as may be necessary to the proper exercise of its jurisdiction, and shall have authority to hear and determine the same; provided, however, that no jury trial shall be allowed in said supreme court, but in proper cases questions of fact may be sent by said court to a district court for trial. North Dakota Constitution.
*468The sections of ch. 32-22 pertinent to this issue follow:
32-22-16. When person restrained must be discharged — If no legal cause is shown for the imprisonment or restraint or for the continuation thereof, the court must discharge the party from the custody or restraint under which he is held.
32-22-17. Causes for discharge of person restrained. — If it appears on the return of the writ that the party is in custody by virtue of process from any court of this state, or any judge or officer thereof, such person may be discharged in any of the following cases, subject to the restrictions of section 32-22-02:
1. When the jurisdiction of such court or officer has been exceeded;
2. When the imprisonment was at first lawful, but by some act, omission, or event which has taken place afterward, the party has become entitled to a discharge;
3. When the process is defective in some matter of substance required by law rendering such process void;
4. When the process, though regular in form, has been issued in a case not allowed by law;
5. When the person having the custody of the party is not the person allowed by law to detain him;
6. When the process is not authorized by any order or judgment of any court nor by any provisions of law;
7. When a party has been committed on a criminal charge without reasonable or probable cause; or
8. When the process appears to have been obtained by false pretense or bribery.
North Dakota Century Code.
We shall examine the petitioner’s claim in light of subsection 2. Having previously decided herein that the arrest was legal, we must now determine whether by some act, omission, or event which has taken place after the arrest, the petitioner has become entitled to his discharge.
The part of our code pertinent to this question reads:
29-06-25. Procedure against person arrested without warrant. — When an arrest is made by a peace officer or a private person without a warrant, the person arrested without unnecessary delay must be taken:
1. Before the nearest or most accessible magistrate in the county where the arrest is made;
2. If there is no magistrate in said county qualified to act, then before the nearest or most accessible magistrate authorized to act for the county where the arrest is made.
A complaint stating the charge against the person arrested must be made before such magistrate, as is provided in section 29-05-04.
North Dakota Century Code.
This issue was also raised by the petitioner in his application to the District Court of Ramsey County for a writ of ha-beas corpus. In quashing the writ which he had previously issued, the district judge acknowledged that there is authority that a statute providing that a prisoner shall be taken before a designated magistrate is mandatory, but held that the better rule is that nonconformance with such a requirement does not render the arrest illegal. In support of his decision the judge cited People v. McCarty, supra.
In McCarty the defendant was arrested without a warrant in Los Angeles County by an officer from Ventura County, who took the defendant before a magistrate in Ventura County. In discussing this issue *469the District Court of Appeal pointed out the conflict under California law at the time of McCarty’s arrest:
It appearing that after his arrest defendant was taken before a magistrate in Ventura County, the further contention is made that the arrest was rendered unlawful ah initio by the failure of the arresting officer promptly to take defendant before the nearest or most accessible magistrate in the county in which the arrest was made, as required by provisions of section 849 Penal Code then in effect. Prior to its amendment in 1957, section 849 appeared to be in conflict with section 145 of the same code. Under section 145 the arresting officer is guilty of a misdemeanor if he delays taking the arrested person before a magistrate having jurisdiction to take his examination. Under Article I, Section 8, of the California Constitution, only a magistrate in the county in which the offense charged is triable has jurisdiction to take the examination. This apparent conflict was eliminated by the 1957 amendment to section 849, which requires the arrested person to be taken before a magistrate in the county in which the offense is triable.
People v. McCarty, 164 Cal.App.2d 322, 330 P.2d 484, 488 (1958).
We have no such conflict under our law.
Notwithstanding that the California law required (as does ours) that a person arrested without a warrant be taken before the nearest or most accessible magistrate of the county in which the arrest is made, the court concluded that the arrest was legal:
But assuming, arguendo, that the officer’s conduct in taking defendant before the Ventura County magistrate was unlawful, it would not follow that either the antecedent arrest or the search and seizure incidental thereto were.illegal. There is nothing in the circumstances here shown to provide any basis for the application of the exclusionary rule of People v. Cahan, 44 Cal.2d 434, 282 P.2d 905, 50 A.L.R.2d 513. Unlawful activity which does not produce the evidence sought to be suppressed and which is entirely unrelated and collateral to the securing of such evidence affords no basis for applying a rule of exclusion, (citations omitted)
People v. McCarty, supra, 488.
For the reasons hereafter stated we concur with the District Court of Ramsey County in its conclusion that the failure of the officer to take the petitioner before the magistrate of Benson County does not justify his release on a writ of habeas corpus.
Two sections of our code seem pertinent to the discussion of this issue. They read:
29-05-17. Requirements of warrant for accused from other county — Complaint to accompany.- — Whenever there is laid before a magistrate a complaint of the commission of a crime or public offense triable in another county of this state, but showing that the accused is in the county where the complaint is laid, the proceedings prescribed in this chapter must be had, except that the warrant must require the accused to be taken before the nearest and most accessible magistrate of the county in which the offense is triable, and the complaint, with the depositions, if any, of the witnesses who may have been produced, must be delivered by the magistrate issuing the warrant to the officer to whom the warrant is delivered.
29-05-18. Accused taken to proper county — Delivery with him of complaint —Depositions.—The officer who executes a warrant for an offense triable in another county must take the accused before the nearest or most accessible magistrate of the county in which the offense is triable and must deliver to him the complaint and the depositions, if any, and the warrant, with his return en*470dorsed thereon, and the magistrate then must proceed in the same manner as upon a warrant issued by himself.
North Dakota Century Code.
If the deputy sheriff of Ramsey County had laid before the magistrate of Benson County, in which the reservation is situated, a complaint that the petitioner had committed the felony in Ramsey County, while showing that the petitioner was in the comity where the complaint was laid, the magistrate of Benson County, had he found from an examination of the complainant reasonable ground to believe that the offense had been committed and that the petitioner had committed it, would have had to issue a warrant requiring the petitioner to be taken before the nearest and most accessible magistrate of the county in which the offense was triable, namely, Ramsey County.
There being no contention that the deputy sheriff did not have reasonable grounds to believe that the offense charged had not been committed by the petitioner, it is logical to assume that had a complaint been properly laid before the magistrate of Benson County, the magistrate would have had reasonable grounds to believe that the offense had been committed and that the petitioner had committed it.
The record discloses that a preliminary hearing has been held, and accordingly it is now the duty of the magistrate of Ramsey County to determine whether there is probable cause to believe that the offense charged has been committed by the petitioner.
N.D.C.C. § 29-07-18, relating to the magistrate’s duty in a preliminary hearing, provides in part that after hearing the evidence on behalf of the respective parties, the magistrate must determine whether a public offense has been committed and whether there is sufficient cause to believe the defendant guilty thereof. Unless the magistrate finds that a public offense has been committed and that there is sufficient cause to believe that the defendant committed it, he must order the defendant discharged. We need not determine at this time what the result would be were the magistrate to find that a misdemeanor rather than a felony was committed, both being public offenses.
We therefore believe the error was without prejudice to the petitioner and was not such as would justify his release.
For the reasons stated the writ of habeas corpus issued by this court for a consideration of the contentions of the petitioner is hereby quashed, and it is ordered that the petitioner be remanded to the custody of the Sheriff of Ramsey County to be returned to the Ramsey County jail so that he may promptly press for a determination by the county justice of whether a public offense was committed and whether there is sufficient cause to believe the petitioner guilty thereof.
PAULSON, and STRUTZ, JJ., concur.