2019 m. balandžio 28 d., sekmadienis

Anglų rašinys: Drugs

Drugs

INTRODUCTION
Drug, substance that affects the function of living cells, used in medicine to diagnose, cure, prevent the occurrence of diseases and disorders, and prolong the life of patients with incurable conditions.
Since 1900 the availability of new and more effective drugs such as antibiotics, which fight bacterial infections, and vaccines, which prevent diseases caused by bacteria and viruses, has increased the average American’s life span from about 60 years to about 75 years. Drugs have vastly improved the quality of life. Today, drugs have contributed to the eradication of once widespread and sometimes fatal diseases such as poliomyelitis and smallpox.
II

CLASSIFICATION
Drugs can be classified in many ways: by the way they are dispensed——over the counter or by prescription; by the substance from which they are derived—plant, mineral, or animal; by the form they take—capsule, liquid, or gas; and by the way they are administered—by mouth, injection, inhalation, or direct application to the skin (absorption). Drugs are also classified by their names. All drugs have three names: a chemical name, which describes the exact structure of the drug; a generic or proprietary name, which is the official medical name assigned by the United States Adopted Name Council (a group composed of pharmacists and other scientists); and a brand or trade name given by the particular manufacturer that sells the drug. If a company holds the patent on a drug—that is, if the company has the exclusive right to make and sell a drug, then the drug is available under one brand name only. After the patent expires, typically after 17 years in the United States, other companies can also manufacture the drug and market it under the generic name, or give it a new brand name.
Another way to categorize drugs is by the way they act against diseases or disorders: chemotherapeutic drugs attack specific organisms that cause a disease without harming the host, while pharmocodynamic drugs alter the function of bodily systems by stimulating or depressing normal cell activity in a given system. The most common way to categorize a drug is by its effect on a particular area of the body or a particular condition.
A

Endocrine Drugs
Endocrine drugs correct the overproduction or underproduction of the body’s natural hormones. For example, insulin is a hormone used to treat diabetes. The female sex hormones estrogen and progesterone are used in birth control pills. Estrogen may be given as a replacement therapy to relieve uncomfortable symptoms associated with menopause including sweating, hot flashes, and mood swings. Estrogen replacement therapy may also delay some long-term consequences of menopause including osteoporosis and atherosclerosis.
B

Anti-infective Drugs
Anti-infective drugs are classified as antibacterials, antivirals, or antifungals depending on the type of microorganism they combat. Anti-infective drugs interfere selectively with the functioning of a microorganism while leaving the human host unharmed.
Antibacterial drugs, or antibiotics—sulfa drugs, penicillins, cephalosporins, and many others—either kill bacteria directly or prevent them from multiplying so that the body’s immune system can destroy invading bacteria. Antibacterial drugs act by interfering with some specific characteristics of bacteria. For example, they may destroy bacterial cell walls or interfere with the synthesis of bacterial proteins or deoxyribonucleic acid (DNA)—the chemical that carries the genetic material of an organism. Antibiotics often cure an infection completely. However, bacteria can spontaneously mutate, producing strains that are resistant to existing antibiotics.
Antiviral drugs interfere with the life cycle of a virus by preventing its penetration into a host cell or by blocking the synthesis of new viruses. Antiviral drugs may cure, but often only suppress, viral infections; and flare-ups of an infection can occur after symptom-free periods. With some viruses, such as human immunodeficiency virus (HIV), which causes acquired immunodeficiency syndrome (AIDS), antiviral drugs can only prolong life, not cure the disease.
Vaccines are used as antiviral drugs against diseases such like mumps, measles, smallpox, poliomyelitis, and influenza. Vaccines are made from either live, weakened viruses or killed viruses, both of which are designed to stimulate the immune system to produce antibodies, proteins that attack foreign substances. These antibodies protect the body from future infections by viruses of the same type (see Immunization).
Antifungal drugs selectively destroy fungal cells by altering cell walls. The cells’ contents leak out and the cells die. Antifungal drugs can cure, or may only suppress, a fungal infection.
C

Cardiovascular Drugs
Cardiovascular drugs affect the heart and blood vessels and are divided into categories according to function. Antihypertensive drugs reduce blood pressure by dilating blood vessels and reducing the amount of blood pumped by the heart into the vascular system. Antiarrhythmic drugs normalize irregular heartbeats and prevent cardiac malfunction and arrest.
D

Drugs that Affect the Blood
Antianemic drugs, such as certain vitamins or iron, enhance the formation of red blood cells. Anticoagulants like heparin reduce blood-clot formation and ensure free blood flow through major organs in the body. Thrombolytic drugs dissolve blood clots, which can block blood vessels and deprive the heart or brain of blood and oxygen, possibly leading to heart attack or stroke.
E

Central Nervous System Drugs
Central nervous system drugs—that is, drugs that affect the spinal cord and the brain—are used to treat several neurological (nervous system) and psychiatric problems. For instance, antiepileptic drugs reduce the activity of overexcited brain areas and reduce or eliminate seizures.
Antipsychotic drugs are used to regulate certain brain chemicals called neurotransmitters, which do not function properly in people with psychoses, major mental disorders often characterized by extreme behaviors and hallucinations, such as in schizophrenia. Antipsychotic drugs can often significantly alleviate hallucinations and other abnormal behaviors.
Antidepressant drugs reduce mental depression. Antimanic drugs reduce excessive mood swings in people with manic-depressive illness, which is characterized by behavioral fluctuations between highs of extreme excitement and activity and lows of lethargy and depression. Both types of drugs act by normalize chemical activity in the emotional centers of the brain. Antianxiety drugs, also referred to as tranquilizers, treat anxiety by decreasing the activity in the anxiety centers of the brain.
Sedative-hypnotic drugs are used both as sedatives to reduce anxiety and as hypnotics to induce sleep. Sedative-hypnotic drugs act by reducing brain-cell activity. Stimulatory drugs, on the other hand, increase neuronal (nerve cell) activity and reduce fatigue and appetite.
Analgesic drugs reduce pain and are generally categorized as narcotics and non-narcotics. Narcotic analgesics, also known as opioids, include opium and the natural opium derivatives codeine and morphine; synthetic derivatives of morphine such as heroin; and synthetic drugs such as meperidine and propoxyphene hydrochloride. Narcotics relieve pain by acting on specific structures, called receptors, located on the nerve cells of the spinal cord or brain. Non-narcotic analgesics such as aspirin, acetaminophen, and ibuprofen reduce pain by inhibiting the formation of nerve impulses at the site of pain. Some of these drugs can also reduce fever and inflammation.
General anesthetics, used for surgery or painful procedures, depress brain activity, causing a loss of sensation throughout the body and unconsciousness. Local anesthetics are directly applied to or injected in a specific area of the body, causing a loss of sensation without unconsciousness; they prevent nerves from transmitting impulses signaling pain (see Anesthesia).
F

Anticancer Drugs
Anticancer drugs eliminate some cancers or reduce rapid growth and spread. These drugs do not affect all cancers but are specific for cancers in certain tissues or organs such as the bladder, brain, liver, or bones. Anticancer drugs interfere with specific cancer-cell components. For example, alkylating agents are cytotoxic (cell-poisoning) drugs that alter the DNA of cancer cells. Vinca alkaloids, chemicals produced by the periwinkle plant, prevent cancer cell division.
G

Other Drugs
Many other categories of drugs also exist, such as anti-inflammatory, antiallergic, antiParkinson (see Parkinson Disease), antiworm (see Anthelmintic Drugs), diuretic, gastrointestinal, pulmonary, and muscle-relaxant drugs. Often a drug in one category can also be used for problems in other categories. For example, lidocaine can be used as a local anesthetic or as a cardiac drug.
III

HOW DRUGS MOVE THROUGH THE BODY


The effect of a drug on the body depends on a number of processes that the drug undergoes as it moves through the body. All these processes together are known as pharmacokinetics (literally, “motion of the drug”). First in these processes is the administration of the drug after which it must be absorbed into the bloodstream. From the bloodstream, the drug is distributed throughout the body to various tissues and organs. As the drug is metabolized, or broken down and used by the body, it goes through chemical changes that produce metabolites, or altered forms of the drug, most of which have no effect on the body. Finally, the drug and its metabolites are eliminated from the body.
A

Administration




Depending on the drug and its desired effect, there are a variety of administration methods. Most drugs are administered orally—that is, through the mouth. Only drugs that will not be destroyed by the digestive processes of the stomach or intestines can be given orally. Drugs can also be administered by injection into a vein (intravenously), which assures quick distribution through the bloodstream and a rapid effect; under the skin (subcutaneously) into the tissues, which results in localized action at a particular site as with local anesthetics; or into a muscle (intramuscularly), which enables rapid absorption through the many blood vessels found in muscles. An intramuscular injection may also be given as a depot preparation, in which the drug is combined with other substances so that it is slowly released into the blood.




Inhaled drugs are designed to act in the nose or lungs. General anesthetics may be given through inhalation. Some drugs are administered through drug-filled patches that stick to the skin. The drug is slowly released from the patch and enters the body through the skin. Drugs may be administered topically—that is, applied directly to the skin; or rectally—absorbed through an enema (an injection of liquid into the rectum) or a rectal suppository (a pellet of medication that melts when inserted in the rectum).
B

Absorption
Absorption is the transfer of a drug from its site of administration to the bloodstream. Drugs that are inhaled or injected enter the bloodstream more quickly than drugs taken orally. Oral drugs are absorbed by the stomach or small intestine and then passed through the liver before entering the bloodstream.
C

Distribution
Distribution is the transport of a drug from the bloodstream to tissue sites where it will be effective, as well as to sites where the drug may be stored, metabolized, or eliminated from the body. Once a drug reaches its intended destination, the drug molecules move from blood through cellular barriers to various tissues. These barriers include the walls of blood vessels, the walls of the intestines, the walls of the kidneys, and the special barrier between the brain and the bloodstream that acts as a filtration system to protect the brain from exposure to potentially harmful substances.
The drug molecules move from an area of high drug concentration—the bloodstream—to an area of low drug concentration—the tissues—until a balance between the two areas is reached. This process is known as diffusion. When a drug reaches its highest concentration in the tissues, the body begins to eliminate the drug and its effect on the body begins to diminish. The time it takes for the level of a drug to fall by 50 percent is known as the drug’s half-life. Depending on the drug, this measurement can vary from a few minutes to hours or even days. For example, if a drug’s highest concentration level in the blood is 1 mg/ml and this level falls to 0.5 mg/ml after five hours, the half-life of the drug is five hours. A drug’s half-life is used to determine frequency of dosage and the amount of drug administered.
Distribution of a drug may be delayed by the binding of the drug to proteins in the blood. Because the proteins are too large to pass through blood vessel walls, the drug remains in the blood for a longer period until it is eventually released from the proteins. While this process may increase the amount of time the drug is active in the body, it may decrease the amount of the drug available to the tissues.
D

Metabolism and Elimination
While circulating through the body, a drug undergoes chemical changes as it is broken down in a process called metabolism, or biotransformation. Most of these changes occur in the liver, but they can take place in other tissues as well. Various enzymes oxidize (add oxygen to), reduce (remove oxygen from), or hydrolyze (add water to) the drug. These changes produce new chemicals or metabolites that may continue to be medically active in the body or may have no activity at all. A drug may be broken down into many different metabolites. Eventually, most drugs or their metabolites circulate through the kidney, where they are discharged, or eliminated, into the urine. Drugs can also be excreted in the body’s solid waste products, or evaporated through perspiration or the breath.
E

Dose-Response Relationship
The extent of the body’s response to a drug depends on the amount administered, called the dose. At a low dose, no response may be apparent. A higher dose, however, may produce the desired effect. An even higher dose may produce an undesirable or harmful response. For example, to relieve a headache most adults require two tablets of aspirin. A half tablet may provide no relief from pain while ten tablets may cause burning pain in the stomach or nausea.
The doses prescribed by physicians are those recommended by each drug’s manufacturer to produce the best therapeutic, or medically beneficial, responses in the majority of patients. However, doses may need to be adjusted in certain individuals. For example, a person may be born without the enzyme required to metabolize a particular drug while other individuals may suffer from lung disorders that prevent them from absorbing inhaled drugs. Factors such as alcohol consumption, age, the method of drug administration, and whether or not the individual has taken the drug previously can affect an individual’s response to a drug.
F

Receptors
Drugs interact with cell receptors, small parts of proteins that control a multitude of chemical reactions and functions in the body. Receptors have a specific, chemical structure compatible only with certain drugs or endogenous compounds—substances that originate within the body such as hormones and neurotransmitters. This relationship can be compared to that of a lock and key: A drug molecule—the “key”—attaches briefly to its specific receptor—the “lock” that only this molecule can open. The lock-and-key combination of the drug and receptor results in a cascade of chemical events. The extent of the response is determined by the number of receptors activated. Stimulation of only a few receptors may not produce a response while stimulation of a certain number of receptors is needed to produce the desired effect.
IV

THERAPEUTIC RESPONSES AND ADVERSE REACTIONS
The same receptors can be found in different tissues and organs in the body, but receptors produce different responses depending on their location. As a result, a specific drug can affect the body in more than one way. Desirable effects are called therapeutic or beneficial responses. Undesirable or harmful effects are called adverse reactions. Some adverse reactions, or side effects, can be predicted. The most common side effects are drowsiness, headache, sleeplessness, nausea, and diarrhea. Other reactions, such as those that occur only in specific individuals for unexpected reasons, called idiosyncratic reactions, and those that occur with the triggering of the body’s immune system, called allergic reactions, are less predictable.
Drug toxicity, or poisoning, can occur when drugs are given in too large a dose or when individuals take a particular drug over a long period of time—the drug may build up to dangerous levels in the kidneys and liver and damage these organs. For some drugs, such as those used to treat epilepsy, the difference between therapeutic and toxic concentrations is small. Physicians constantly monitor the precise levels of such drugs in an individual’s bloodstream to prevent drug poisoning.
Other drugs, such as those used to treat cancer, are known to have toxic effects; however, the benefits outweigh the risks—that is, treatment without them may result in death.



When taken together, drugs can interact with one another and produce desirable or undesirable results. Some drugs have an additive effect—that is, they increase the effect of other drugs. For example, alcoholic beverages intensify the drowsiness-producing effect of some sedatives. Drugs that displace, or take the place of other drugs present in blood proteins, make the displaced drugs more active in the body, increasing their effect. Other drugs have a reducing effect—that is, they interfere with the action of drugs already present in the body. For example, antacids prevent antibiotics from being absorbed by the stomach. Some drugs combine with other drugs to create a substance that has no medical benefit. In some cases, however, drug interactions can produce desirable results. Doctors have found that using three drugs to fight AIDS is more effective than one drug used alone.
Drugs are most effective when properly prescribed by physicians and taken correctly by patients. Missing doses, taking drugs at the wrong time of the day or with instead of before meals, and stopping drug use too soon can markedly reduce the medical benefits of many drugs.
V

DRUG ABUSE
Drug abuse is characterized by taking more than the recommended dose of prescription drugs such as barbiturates without medical supervision, or using government-controlled substances such as marijuana, cocaine, heroin, or other illegal substances. Legal substances, such as alcohol and nicotine, are also abused by many people. Abuse of drugs and other substances can lead to physical and psychological dependence (see Drug Dependence).
Drug abuse can cause a wide variety of adverse physical reactions. Long-term drug use may damage the heart, liver, and brain. Drug abusers may suffer from malnutrition if they habitually forget to eat, cannot afford to buy food, or eat foods lacking the proper vitamins and minerals. Individuals who abuse injectable drugs risk contracting infections such as hepatitis and HIV from dirty needles or needles shared with other infected abusers. One of the most dangerous effects of illegal drug use is the potential for overdosing—that is, taking too large or too strong a dose for the body’s systems to handle. A drug overdose may cause an individual to lose consciousness and to breathe inadequately. Without treatment, an individual may die from a drug overdose.
Drug addiction is marked by a compulsive craving for a substance. Successful treatment methods vary and include psychological counseling, or psychotherapy, and detoxification programs—medically supervised programs that gradually wean an individual from a drug over a period of days or weeks. Detoxification and psychotherapy are often used together.
The illegal use of drugs was once considered a problem unique to residents of poor, urban neighborhoods. Today, however, people from all economic levels, in both cities and suburbs, abuse drugs. Some people use drugs to relieve stress and to forget about their problems. Genetic factors may predispose other individuals to drug addiction. Environmental factors such as peer pressure, especially in young people, and the availability of drugs, also influence people to abuse drugs.
VI

HISTORY
Humans have always experimented with substances derived from minerals, plants, and animal parts to treat pain, illness, and restore health. In ancient Egypt, physicians prescribed figs, dates, and castor oil as laxatives and used tannic acid to treat burns. The early Chinese and Greek pharmacies included opium, known for its pain-relieving qualities, while Hindus used the cannabis and henbane plants as anesthetics and the root of the plant Rauwolfia serpentina, which contains reserpine, as a tranquilizer.
A school of pharmacy established in Arabia from 750 to 1258 ad discovered many substances effective against illness, such as burned sponge (which contains iodine) for the treatment of goiters—a noncancerous enlargement of the thyroid gland, visible as a swelling at the front of the neck. In Europe, the 15th century Swiss physician and chemist Philippus Aureolus Paracelsus identified the characteristics of numerous diseases such as syphilis, a chronic infectious disease usually transmitted in sexual intercourse, and used ingredients such as sulfur and mercury compounds to counter the diseases.
During the 17th and 18th centuries, physicians treated malaria, a disease transmitted by the bite of an infected mosquito, with the bark of the cinchona tree (which contains quinine). Heart failure was treated with the leaves of the foxglove plant (which contains digitalis); scurvy, a disease caused by vitamin C deficiency, was treated with citrus fruit (which contains vitamin C); and smallpox was prevented using inoculations of cells infected with a similar viral disease known as cowpox. The therapy developed for smallpox stimulated the body’s immune system, which defends against disease-causing agents, to produce cowpox- and smallpox-specific antibodies.
In the 19th century scientists continued to discover new drugs including ether, morphine, and a vaccine for rabies, an infectious, often fatal, viral disease of mammals that attacks the central nervous system and is transmitted by the bite of infected animals. These substances, however, were limited to those occurring naturally in plants, minerals, and animals. A growing understanding of chemistry soon changed the way drugs were developed. Heroin and aspirin, two of the first synthetic drugs created from other elements or compounds using chemical reactions, were produced in the late 1800s. This development, combined with the establishment of a new discipline called pharmacology, the study of drugs and their actions on the body, signaled the birth of the modern drug industry.
VII

DRUG DEVELOPMENT
Today most drugs are synthesized by chemists in the laboratory. Synthetic drugs are better controlled than those occurring naturally, which ensures that each dose imparts the same effect. Some new synthetic drugs are developed by modifying the structure of existing substances. These new drugs are called analogues. For example, prednisone is an analogue of the hormone cortisone (see Hydrocortisone). Because scientists can selectively alter the drug’s structure, analogues may be more effective and cause fewer side effects than the drugs from which they were derived.
One of the newer methods for developing drugs involves the use of gene splicing, or recombinant DNA (see Genetic Engineering). In drug research, this technique joins the DNA of a specific type of human cell to the DNA of a second organism, usually a harmless bacterium, to produce a recombinant (or “recombined”) DNA. The altered organism then begins to produce the substance produced by the human cell. This substance is extracted from the bacteria and purified for use as a drug.
The first drug produced in this manner was the hormone insulin in 1982, which was created in large quantities by inserting the human insulin gene in Escherichia coli (E. coli) bacteria. Since 1982 other genetically engineered drugs for humans have been developed, including tissue plasminogen activator (tPA), an enzyme used to dissolve blood clots in people who have suffered heart attacks, and erythropoetin, a hormone used to stimulate the production of red blood cells in people with severe anemia.
Because of the great expense and time involved, most new drugs are created by large, well-funded pharmaceutical companies. From idea to production, the development of a new drug can take up to ten years and cost about $200 million. The process usually starts with the idea that an existing chemical substance has therapeutic value or that the structure of an existing drug can be modified for new clinical uses. Out of 10,000 chemicals tested in a laboratory, only one may eventually become a drug.
Once drug researchers have determined that a new substance may have medical value, an elaborate testing program begins. The drug is tested first on small animals such as rats and mice, and then on larger animals such as monkeys and dogs. If these tests indicate that the new drug is effective against its intended target—such as a particular disease—and shows an acceptably low level of toxicity, the drug company requests permission from the Food and Drug Administration (FDA), an agency of the U.S. Department of Health and Human Services, to test the drug in humans.
If the agency approves the request, clinical trials on humans can begin. These experiments are usually divided into three phases, each of which can last from several months to several years. In the first phase, the drug is tested on a small number of healthy individuals to determine its effect on the body. The second phase tests the drug on a small number of people who have the disease or disorder the drug manufacturer hopes the drug will treat. These individuals are divided into two groups: those who receive the drug and those who receive a placebo, or inactive compound. Neither the investigating physicians nor the members of the test group know who is receiving the drug or who is receiving the placebo. This technique, called a double-blind study, ensures that no one consciously or unconsciously influence the drug’s effect. The third phase tests the drug on a much larger group of people and determines specific doses, possible interactions with other drugs, responses related to gender, and other information used for drug labeling. At the end of the third phase, a drug manufacturer compiles the results of the clinical trials and submits them to the FDA in a new product application. If the drug has been proven effective and safe, and its benefits outweigh any risks, the agency approves the drug for marketing. FDA approval of a new drug may take up to 18 months; however, the agency is working to reduce the time to 12 months for most drugs and 6 months for highly effective drugs that treat previously incurable conditions.
VIII

DRUG REGULATION
Because drugs can produce harmful effects when manufactured or taken improperly, most governments control drug development as well as availability. In the United States, the FDA determines how drugs are produced and how they are sold. Drugs that can be sold over the counter (OTC)—that is, without a prescription from a physician—are called proprietary drugs. They are considered safe for unsupervised use by the general population. Drugs that must be prescribed by physicians and dispensed by pharmacists are known as ethical drugs. Their use is monitored closely by medical personnel.
The FDA regulates the sale and manufacture of drugs in the United States as outlined in applicable laws enacted over the past century. Legal standards for composition and preparation of drugs in the United States are found in the publication known as the United States Pharmacopeia (USP). Drugs that can be abused, such as the powerful narcotic heroin, are regulated by the Drug Enforcement Administration (DEA) of the U.S. Department of Justice to ensure that they are not prescribed or sold illegally.
Before 1900 any individual could sell a drug and claim it offered therapeutic benefits without medical proof. This changed after 1906 with the passage of the Pure Food and Drug Act, which required drug manufacturers to state the content, strength, and purity of each drug they produced. The Pure Food and Drug Act ended the practice of including morphine, cocaine, and heroin in drugs without the public’s knowledge. In 1914 the U.S. legislature began to strictly regulate the trade of narcotics with the enactment of the Harrison Narcotic Act; in 1937 the government added marijuana to this list of controlled substances (the Marijuana Tax Act).
The Federal Food, Drug, and Cosmetic Act was enacted in 1938 requiring that new drugs be safe for humans; however, it did not require that manufacturers prove their drugs’ effectiveness. It would be 24 years before legislation was passed that would require proof of the efficacy of new drugs (the Kefaver-Harris Amendments, 1962). Enforcement of this law was entrusted to the FDA.
Two laws enacted in the 1960s strengthened the FDA’s efforts to reduce drug abuse. The Drug Abuse Control Amendments of 1965 provided penalties for the illegal sale or possession of stimulants, sedatives, and hallucinogens, and the Narcotic Addict Rehabilitation Act of 1966 set up a federal program for addicts that provided them with the option of receiving treatment for their drug problems in place of a prison sentence.
In 1970 the Comprehensive Drug Abuse Prevention and Control Act established rules for manufacturing and prescribing habit-forming drugs. It stipulated that physicians can prescribe all drugs, but a special license is required to prescribe drugs with a high abuse potential. This license is issued by the Drug Enforcement Administration.
The Anti-Drug Abuse Acts, signed into law in 1986 and 1988, set up funding for the treatment of drug abuse and for the creation of law-enforcement programs to fight the illegal sale of drugs. These acts also detailed severe punishments for individuals selling and possessing drugs illegally. Harsh penalties for using anabolic steroids (hormones that promote the storage of protein and the growth of tissue that are sometimes abused by competitive athletes) were included in the 1988 act, along with the requirement that all alcoholic beverages be labeled with warnings about alcohol’s potentially dangerous effect on the body. The 1988 act also established the Office of National Drug Control Policy to develop an action plan that would involve the public, as well as private agencies, in eliminating the illegal sale of drugs; in helping individuals who use drugs to stop; and in preventing nonusers from ever starting to use drugs.
The U.S. government and its regulatory agencies continually monitor the development and use of all drugs sold in the United States to ensure that the American public has access only to drugs that are safe and effective. Recently, the FDA introduced legislation requiring warning labels on all over-the-counter medication after research indicated that the nonaspirin pain reliever acetaminophen can cause liver damage when taken in high doses with large quantities of alcohol.

Alcohol

Alcoholism, chronic and usually progressive illness,. Alcoholism is thought to arise from a combination of a wide range of physiological, psychological, social, and genetic factors. It is characterized by an emotional and often physical dependence on alcohol, and it frequently leads to brain damage or early death.
More males than females are affected by alcoholism, but drinking among the young and among women is increasing. Consumption of alcohol is apparently on the rise in the United States, as is the total alcohol consumption and prevalence of alcohol-related problems in the former communist countries of Eastern Europe and the former Soviet Union. This increase is paralleled in other countries, including developing nations. After 1980, however, consumption remained relatively stable in many western European nations.
Development
Alcoholism, as opposed to merely excessive or irresponsible drinking, has been thought of as a symptom of psychological or social stress or as a learned, maladaptive coping behaviour. More recently, and probably more accurately, it has come to be viewed as a complex disease in its own right. Alcoholism usually develops over a period of years. Alcohol comes to be used more as a mood-changing drug than as a foodstuff or beverage served as a part of social custom or religious ritual.
Initially, the alcoholic may demonstrate a high tolerance to alcohol, consuming more and showing fewer adverse effects than others. Subsequently, however, the person begins to drink against his or her own best interests, as alcohol comes to assume more importance than personal relationships, work, reputation, or even physical health. The person commonly loses control over drinking and is increasingly unable to predict how much alcohol will be consumed on a given occasion or, if the person is currently abstaining, when the drinking will resume again. Physical addiction to the drug may occur, sometimes eventually leading to drinking around the clock to avoid withdrawal symptoms.
Effects
Alcohol has direct toxic as well as sedative effects on the body, and failure to take care of nutritional and other physical needs during prolonged periods of excessive drinking may further complicate matters. Advanced cases often require hospitalization. The effects on major organ systems are cumulative and include a wide range of digestive-system disorders such as ulcers, inflammation of the pancreas, and cirrhosis of the liver. The central and peripheral nervous systems can be permanently damaged. Blackouts, hallucinations, and extreme tremors may occur. The latter symptoms are involved in the most serious alcohol withdrawal syndrome, delirium tremens, which can prove fatal despite prompt treatment. This is in contrast to withdrawal from narcotic drugs such as heroin, which, although distressing, rarely results in death. Recent evidence has shown that heavy—and even moderate—drinking during pregnancy can cause serious damage to the unborn child: physical or mental retardation, or both; a rare but severe expression of this damage is known as foetal alcohol syndrome.
                    HISTORY OF ALCOHOL
Thousands of years ago people began to make alcohol for practical reasons. Wine making began with the early Egyptians who found that grape juise spoiled quickly,but that fermented juise or wine would keep without spoiling.They also had problems with impure water,and the Egyptians noticed that people did not sick ower wine,but they often became ill when they drank inpure water.In later years,wine became inportant to the Roman Catholic Church throughuot Europe because wine was used to celebrate the sacrament of the Mass.By the 1300`s,beer industry had emerged in Central Europe.At this time,wine was also continuing to grow in popularity;many brands named for the places in which they originated.At first alcohol was desined for the practical reasons,its use changed.People began to experiment with different types of alcohol.Alcohol became an integral part of European culture.We need to understand the harmful effects of alcohol,because it can be fatal.

Environment

No human being can stand apart from the environment because each of us is a part of a natural world. We all depend upon our environment and our environment is depending upon us. Our survival and survival of the future generations depend upon a healthy world. This is the reason why environmental education is important to each and every one of us.
Each of us must begin to accept personal responsibility for protection of environment and where necessary improvement of it.
No one person can save entire world alone that’s why each of us must make positive steps in saving the environment, with which we have the direct connection. By doing what we can, in protecting and improving our environment we will help and improve the entire world.   
 

2018 m. balandžio 9 d., pirmadienis

Debt book

Chapter One
ON THE EXPERIENCE OF MORAL CONFUSION

Looting of public resourses.
poor --> ritch. By depth
Dictator borrows, poor people pays debt.
Surely one needs to pay one's debts? Folfiling obligations?
Creditors and debters (master and slave)

Chapter Two
THE MYTH OF BARTER

Money is medium of exchange. More efficient then barter.
bad barter leads to drop it to another
good leads to brag and pride
With BARTER there is no defined quantity and division.

Chapter Three
PRIMORDIAL DEBTS

Paper is I-ow-you.
Slave Mentality. Minor luctiories, new takes, supperficial ideas (for consumer demand) to profit from.
Taxes debt to society?
shells, hides, feathers, gold
languege, habbits, learned from other people
debt to parents(cildren), society, government(taxex), nature, god, universe?
Who has right to speask for humanity, society, god?



Or let us look at the other side of the equation. Even if it is possible to imagine ourselves as standing in a position of absolute debt to the cosmos, or to humanity, the next question becomes: Who exactly has a right to speak for the cosmos, or humanity, to tell us how that debt must be repaid? If there’s anything more preposterous than claiming to stand apart from the entire universe so as to enter into negotiations with it, it is claiming to speak for the other side.
If one were looking for the ethos for an individualistic society such as our own, one way to do it might well be to say: we all owe an infinite debt to humanity, society, nature, or the cosmos (however one prefers to frame it), but no one else could possibly tell us how we are to pay it. This at least would be intellectually consistent. If so, it would actually be possible to see almost all systems of established authority—religion, morality, politics, economics, and the criminal-justice system—as so many different fraudulent ways to presume to calculate what cannot be calculated, to claim the authority to tell us how some aspect of that unlimited debt ought to be repaid. Human freedom would then be our ability to decide for ourselves how we want to do so.

Let me return again to that word, “society.” The reason that it seems like such a simple, self-evident concept is because we mostly use it as a synonym for “nation.” After all, when Americans speak of paying their debt to society, they are not thinking of their responsibilities to people who live in Sweden. It’s only the modern state, with its elaborate border controls and social policies, that enables us to imagine “society” in this way, as a single bounded entity. This is why projecting that notion backwards into Vedic or Medieval times will always be deceptive, even though we don’t really have another word.


These are also the intellectual and political circles that shaped the thought of Emile Durkheim, the founder of the discipline of sociology that we know today, who in a way did Comte one better by arguing that all gods in all religions are always already projections of society—so an explicit religion of society would not even be necessary. All religions, for Durkheim, are simply ways of recognizing our mutual dependence on one another, a dependence that affects us in a million ways that we are never entirely aware of. “God” and “society” are ultimately the same.

Chapter Four
CRUELTY AND REDEMPTION

Chapter Five
A BRIEF TREATISE ON THE MORAL GROUNDS OF ECONOMIC RELATIONS
Communism - common property.

It’s not just directions. Conversation is a domain particularly disposed to communism. Lies, insults, put-downs, and other sorts of verbal aggression are important—but they derive most of their power from the shared assumption that people do not ordinarily act this way: an insult does not sting unless one assumes that others will normally be considerate of one’s feelings, and it’s impossible to lie to someone who does not assume you would ordinarily tell the truth. When we genuinely wish to break off amicable relations with someone, we stop speaking to them entirely.

A debt, then, is just an exchange that has not been brought to completion.
        ... It’s precisely when the money changes hands, when the debt is cancelled, that equality is restored and both parties can walk away and have nothing further to do with each other.

, “From your past debts I shall free you.”
“What can I do but thank you?” Panurge replies.

Chapter Six
GAMES WITH SEX AND DEATH
Most of us don’t like to think much about violence. Those lucky enough to live relatively comfortable, secure lives in modern cities tend either to act as if it does not exist or, when reminded that it does, to write off the larger world “out there” as a terrible, brutal place, with not much that can be done to help it. Either instinct allows us not to have to think about the degree to which even our own daily existence is defined by violence or at least the threat of violence (as I’ve often noted, think about what would happen if you were to insist on your right to enter a university library without a properly validated ID), and to overstate the importance—or at least the frequency—of things like war, terrorism, and violent crime. The role of force in providing the framework for human relations is simply more explicit in what we call “traditional societies”—even if in many, actual physical assault by one human on another occurs less often than in our own. 
Reduces people to commodities(facebook).
Chapter Seven
HONOR AND DEGRADATION
Borowing to persuage political desires.
As for dominium, the word is derived from dominus, meaning “master” or “slave-owner,” but ultimately from domus, meaning “house”or “household.” It’s of course related to the English term “domestic,” which even now can be used either to mean “pertaining to private life,” or to refer to a servant who cleans the house. Domus overlaps somewhat in meaning with familia, “family”—but, as proponents of “family values” might be interested to know, familia itself ultimately derives from the word famulus, meaning “slave.” A family was originally all those people under the domestic authority of a paterfamilias, and that authority was, in early Roman law at least, conceived as absolute.101 A man did not have total power over his wife, since she was still to some degree under the protection of her own father, but his children, slaves, and other dependents were his to do with as he wanted—at least in early Roman law, he was perfectly free to whip, torture, or sell them. A father could even execute his children, provided he found them to have committed capital crimes.102 With his slaves, he didn’t even need that excuse.
Dominus and slave.
Relation of power.
One which has power and one which do not.
English word “free,” for instance, is derived from a German root meaning “friend,” since to be free meant to be able to make friends, to keep promises, to live within a community of equals. This is why freed slaves in Rome became citizens: to be free, by definition, meant to be anchored in a civic community, with all the rights and responsibilities that this entailed.

Medieval commentators immediately noticed the problem here. But wouldn’t this mean that everyone is free? After all, even slaves are free to do absolutely anything they’re actually permitted to do. To say a slave is free (except insofar as he isn’t) is a bit like saying the earth is square (except insofar as it is round), or that the sun is blue (except insofar as it is yellow), or, again, that we have an absolute right to do anything we wish with our chainsaw (except those things that we can’t.)
In fact, the definition introduces all sorts of complications. If freedom is natural, then surely slavery is unnatural, but if freedom and slavery are just matters of degree, then, logically, would not all restrictions on freedom be to some degree unnatural? Would not that imply that society, social rules, in fact even property rights, are unnatural as well? This is precisely what many Roman jurists did conclude—that is, when they did venture to comment on such abstract matters, which was only rarely

My right to free speech is others’ obligation not to punish me for speaking; my right to a trial by a jury of my peers is the responsibility of the government to maintain a system of jury duty. The problem is just the same as it was with property rights: when we are talking about obligations owed by everyone in the entire world, it’s difficult to think about it that way. It’s much easier to speak of “having” rights and freedoms. Still, if freedom is basically our right to own things, or to treat things as if we own them, then what would it mean to “own” a freedom—wouldn’t it have to mean that our right to own property is itself a form of property? That does seem unnecessarily convoluted. What possible reason would one have to want to define it this way?

Chapter Eight
CREDIT VERSUS BULLION
ONE MIGHT WELL ASK: If our political and legal ideas really are founded on the logic of slavery, then how did we ever eliminate slavery? Of course, a cynic might argue that we haven’t; we’ve just relabeled it.


Chapter Nine
THE AXIAL AGE

Pythagoras (570–495 bc), the Buddha (563–483 bc), and Confucius (551–479 bc), were all alive at exactly the same time, and that Greece, India, and China, in that period, all saw a sudden efflorescence of debate between contending intellectual schools, each group apparently, unaware of the others’ existence.


What was the connection? We might start by asking: What is a coin? The normal definition is that a coin is a piece of valuable metal, shaped into a standardized unit, with some emblem or mark inscribed to authenticate it. The world’s first coins appear to have been created within the kingdom of Lydia, in western Anatolia (now Turkey), sometime around 600 bc.5 These first Lydian coins were basically just round lumps of electrum—a gold-silver alloy that occurred naturally in the nearby Pactolus River—that had been heated, then hammered with some kind of insignia. The very first, stamped only with a few letters, appear to have been manufactured by ordinary jewelers, but these disappeared almost instantly, replaced by coins manufactured in a newly established royal mint. Greek cities on the Anatolian coast soon began to strike their own coins, and they came to be adopted in Greece itself; the same thing occurred in the Persian Empire after it absorbed Lydia in 547 bc.

Chapter Ten
THE MIDDLE AGES
Mohammed himself had begun his adult life as a merchant; and no Islamic thinker ever treated the honest pursuit of profit as itself intrinsically immoral or inimical to faith. Neither did the prohibitions against usury—which for the most part were scrupulously enforced, even in the case of commercial loans—in any sense mitigate against the growth of commerce, or even the development of complex credit instruments.69 To the contrary, the early centuries of the Caliphate saw an immediate efflorescence in both.

Chapter Twelve
(1971–The Beginning of Something Yet to Be Determined)
I would like, then, to end by putting in a good word for the non-industrious poor.41 At least they aren’t hurting anyone. Insofar as the time they are taking time off from work is being spent with friends and family, enjoying and caring for those they love, they’re probably improving the world more than we acknowledge. Maybe we should think of them as pioneers of a new economic order that would not share our current one’s penchant for self-destruction.
At this point, however, the principle has been exposed as a flagrant lie. As it turns out, we don’t “all” have to pay our debts. Only some of us do. Nothing would be more important than to wipe the slate clean for everyone, mark a break with our accustomed morality, and start again.

What is a debt, anyway? A debt is just the perversion of a promise. It is a promise corrupted by both math and violence. If freedom (real freedom) is the ability to make friends, then it is also, necessarily, the ability to make real promises. What sorts of promises might genuinely free men and women make to one another? At this point we can’t even say. It’s more a question of how we can get to a place that will allow us to find out. And the first step in that journey, in turn, is to accept that in the largest scheme of things, just as no one has the right to tell us our true value, no one has the right to tell us what we truly owe.

2017 m. lapkričio 28 d., antradienis

Bitcoin tinklo kūrimas

Paskutiniu metu Bitcoin susilaukė nemažo dėmesio. Nors bitcoinai egzistuoja nuo 2008 metų, gana ilgą laiko tarpą tai buvo žinoma tik labai nedideliam žmonių ratui. Šiuo metu Bitcoin įgavo pagreitį, jau egzistuoja atsiskaitymo sistemos skirtos verslui, įvairiose pasaulio šalyse kiekvieną mėnesį atsiranda naujų bankomatų, kuriuose leidžiama įsigyti ir išsigryninti bitcoinus. Bitcoin yra visiškai atviro kodo produktas, todėl yra skatinamos inovacijos, kiekvienas norintis gali peržiūrėti ir modifikuoti programinės įrangos struktūrą ar sukurti savo programinę įrangą, kuri atkartotų/praplėstų Bitcoin veikimo funkcijas.
Kadangi Bitcoin yra pakankamai nauja ir sudėtinga sistema, dar nėra detalios Bitcoin dokumentacijos. Šis darbas pateiks trumpą apžvalgą apie Bitcoin struktūrą. Analitinėje dalyje nagrinėsime Bitcoin veikimo principus. Atviras kodas leido kūrėjams keisti Bitcoin pirminį kodą ir kurti nuosavas kriptovaliutas, kurios remiasi pamatiniais Bitcoin principais, atsirado tokių kriptovaliutų kaip – Litecoin, Dogecoin, Namecoin ir daugybė kitų. Projektinėje dalyje nagrinėsime alternatyvios kriptovaliutos kūrimą. Darbo pabaigoje bus apžvelgtos projektinės dalies išvados ir rekomendacijos.




  1. ANALITINĖ DALIS



Kas yra Bitcoin ?


Bitcoin yra pirma pasaulyje decentralizuota skaitmeninė valiuta. Prieš keturis metus apie juos žinojo tik keletas entuziastų interneto diskusijų portaluose. Šiandien Bitcoin ekonomika yra didesnė negu kai kurių mažesnių pasaulio valstybių ekonomika. Bitcoin vertė išaugo ir kito dideliu mastu - nuo kelių centų iki daugiau negu 1200 dolerių (2013 lapkritį). Dabartinė Bitcoin ekonomikos vertė yra apskaičiuota ir sudaro daugiau negu 6 bilijonus dolerių. Stambus ir smulkus verslas parodė susidomėjimą integruojant Bitcoin platformą į savo operacines sistemas ir teikiant naujas paslaugas Bitcoin ekonomikos sferoje. Rizikuojantys kapitalistai taip pat noriai deda savo pinigus į augančią industriją. Bitcoin plėtra ir ankstyva sėkmė yra jaudinantis liudijimas šiuolaikiniam spekuliantui/rizikuojančiam investuotojui. Kadangi Bitcoin yra decentralizuota, ją galima naudoti pseudonimiškai, tai patraukė ir teisėtvarkos dėmesį.
Bitcoin yra atviro kodo, žmogus-žmogui skaitmeninė valiuta. Tarp kitų dalykų, kas padaro ją unikalia yra tai, jog tai pirma pasaulyje visiškai decentralizuota skaitmeninio atsiskaitymo sistema. Bitcoin išradimas yra revoliucinis, nes pirmą kartą dvigubo išleidimo problema gali būti išspręsta be trečiosios pusės. Bitcoin tai padaro išskirstydama būtinas sąskaitas (angl. ledger) tarp visų sistemos vartotojų per peer-to-peer tinklą. Kiekvienas pervedimas įvykstantis Bitcoin ekonomikoje yra registruojamas viešoje sąskaitoje, kuri yra vadinama blokų grandinė. Nauji pervedimai yra patikrinami blokų grandinės tam, kad būtų užtikrinta, jog tie patys bitcoinai nebuvo anksčiau išleisti, taip eliminuojant‚ dvigubo išleidimo problemą.
Kiekvienas bitcoin vartotojas turi privatų ir viešąjį raktą, kurie yra analogiški banko sąskaitai. Privatus raktas tai lyg slaptažodis, kai viešasis raktas yra Bitcoin piniginės adresas. Norint, kam nors išsiųsti pinigus, vartotojas sukuria transakciją ir pasirašo ją privačiu raktu. Kiekviena transakcija turi ryšį su prieš tai buvusia transakcija, tai reiškia, kad negalima išleisti daugiau valiutos vienetų nei turi sąskaitoje. Kiekviena transakcija yra transliuojama tinkle tam, kad taptų patvirtinta ir įrašyta į bendra blokų grandinę.
Nustatytu laiko intervalu, kas 10 minučių, visos transakcijos yra surenkamos į bloką. Kai transakcija tampa bloko dalimi, ji laikoma patvirtinta. Visi blokai yra susieti tarpusavyje, kuo tvirtesnis ryšys tuo didesnis atsparumas nuo suklastojimo galimybės. Blokų grandinę sudaro visų įvykusių transakcijų įrašai, kurie yra apsaugoti kriptografiniais algoritmais.
Bitcoinai yra kuriami sprendžiant kriptografines problemas, kurios susijusios su blokų generacija, taip suteikiant darbo atlikimo įrodymą (angl. proof-of-work). Šis procesas reikalauja daug skaičiavimo išteklių taip pat yra lengvai keičiamas, kad užtikrintų 10-ties minučių blokų kūrimo laiko intervalą. Vartotojai, sprendžiantys matematines užduotis, vadinami kasėjais (angl. miner), jie yra apdovanojami už savo darbą naujai pagamintais bitcoinais. Bitcoinai yra sukurti, arba „iškasti“, kai tūkstančiai skirtingų kompiuterių sprendžia sunkias matematines problemas, kurie patvirtina pervedimus blokų grandinėje. Tikrasis bitcoinų „kasimas“ yra grynai matematinis procesas. Naudinga analogija yra su pirminiais skaičiais: būdavo labai lengva surasti mažuosius skaičius. Bitcoinų atveju, ieškoma ne pirminių numerių, bet duomenų sekos. Kada atsiranda atitikmuo, „kasėjas“ gauna apdovanojimą. Laimikio dydis mažėja dėl to, jog bitcoinai yra „kasami“ visame pasaulyje. Kažkuriuo metu nauji bitcoinai nebebus gaminami ir vienintelė iniciatyva „kasėjams“ bus pavedimų užmokesčiai.
Taigi, protokolas buvo sukurtas taip, jog kiekvienas „kasėjas“ prisideda savo kompiuterio procesine galia infrastruktūros išlaikymui, reikalingos palaikyti ir autentifikuoti dabartinį tinklą. Atsisiuntus vieną iš vadinamųjų "elektroninių piniginių" į savo kompiuterį, ji visų pirma sinchronizuojasi su tinklu ir parsisiunčia visų transakcijų istoriją. Jūs tarsi atsisiunčiate milžinišką buhalterinę knygą, kurioje užkoduoti visi iki tol vykę pervedimai ir pagal ją kompiuteriui galite leisti tikrinti naujus pavedimus. Skirdami savo kompiuterio resursų dalį vykdomų pavedimų patvirtinimui, tampate ne tik vartotoju, tačiau ir sistemos dalimi, prisidedate prie sistemos saugumo ir funkcionavimo. Jūsų kompiuteriui atlikus sudėtingas matematines užduotis, jums sugeneruojamas atlygis - virtualus pinigas. „Kasėjai“ yra apdovanojami naujai sukurtais bitcoinais už savo indėlį procesine galia tam, jog būtų išlaikytas tinklas ir patvirtinti pervedimai blokų grandinėje. O kuo daugiau procesinės galios yra skirta „kasimui“, tuo protokolas didins matematinių problemų sunkumą, užtikrindamas, jog bitcoinai visada būtų „kasami“ nuspėjamu ir ribotu greičiu. Šis bitcoinų „kasimo“ procesas nesitęs amžinai. Bitcoin buvo sukurta atkartoti aukso ar kito brangaus metalo išgavimą iš žemės - tik ribotas, žinomas bitcoinų kiekis gali būti. Numatytas didžiausias skaičius yra 21 milijonas bitcoinų. Yra prognozuojama, jog „kasėjai“ gaus paskutinį ‚satoshi‘ 0,00000001 bitcoino 2140 metais. Jeigu visas kasimo jėgos kiekis
padidės iki pakankamai didelio lygio, sunkumas „kasant“ bitcoinus bus taip padidėjęs, jog šio paskutinio satoshi gavimas bus labai didelis iššūkis. Kai tik paskutinis satoshi bus atrastas, „kasėjai“, prisidedantys savo kompiuteriniais ištekliais tam, kad būtų tvirtinami pervedimai, bus toliau apdovanojami per pervedimo užmokesčius, nebe pagal iškastus bitcoinus. Tai užtikrins, jog kasėjai turės iniciatyvos toliau palaikyti tinklą, kai paskutinis bitcoinas bus atrastas.


Kriptologijos prielaidos:
Yra trys pagrindiniai kriptologijos aspektai, kuriuos taiko Bitcoin sistema:
  • Šifravimas ir dešifravimas;
  • Maišos funkcijos (angl. hash function);
  • Skaitmeninių parašų schemos.
    1. Kriptografija

Kriptografija – tai mokslas, tiriantis metodus kaip informaciją užšifruoti ir iššifruoti. Kriptografija buvo naudojama, užtikrinti perduodamų duomenų saugumui, paprastą tekstą paverčiant užkoduotu, naudojant šifrą.
Kriptografija yra transformavimo metodai skirti dokumentų apsaugai. Tokios transformacijos išsprendžia dvi pagrindines dokumentų apsaugos problemas: konfidencialumo (saugumo) problemą (atimama iš įsilaužėlio galimybė gauti informaciją iš ryšio kanalo) ir tapatumo (vientisumo) problemą (atimama iš įsilaužėlio galimybė pakeisti dokumentą taip kad pasikeistų jo turinys arba į dokumentą įdėti klaidingą informaciją).
Užšifravimo transformacija dešifravimo transformacijos atžvilgiu gali būti simetrinė arba asimetrinė. Ši svarbi transformacijos savybė apibrėžia dvi kriptosistemų klases: simetrines (vieno rakto) ir asimetrines (dviejų raktų, viešojo rakto).
Yra trys pagrindiniai kriptologijos aspektai, kuriais naudoja Bitcoin:
  • Šifravimas ir dešifravimas
  • Maišos funkcijos (angl. hash function)
  • Skaitmeninių parašų schemos
    1. Šifravimas ir dešifravimas



Šifravimas – tai procesas, kurio metu pradinis tekstas paverčiamas į neskaitomą formą, vadinamą šifruotu tekstu. Kriptografinėje sistemoje užšifravimas dešifravimo atžvilgiu gali būti simetrinis arba asimetrinis. Asimetrinės kriptosistemos dar vadinamos viešojo rakto kriptosistemomis. Viešasis raktas, gali būti paskelbtas ir jį žino visi vartotojai. Bitcoin kontekste viešasis raktas - tai adresas, kuriuo siunčiami bitcoinai. Dokumentus dešifruoti viešuoju raktu negalima. Suprantama, dešifravimo raktas negali būti gautas iš užšifravimo rakto.


    1. Maišos funkcijos

Kriptografijoje maišos algoritmai priima tam tikrą duomenų kiekį, juos transformuoja ir grąžina fiksuoto dydžio simbolių eilutę. Tai yra vadinama maišos reikšme.
Pagrindinės maišos algoritmų savybės:
  • apibrėžimo sritis yra didelė, palyginti su fiksuoto dydžio reikšmių sritimi;
  • funkciją nesunku apskaičiuoti bet kokiam argumentui;
  • daug kartų kviečiant funkciją su įvairiais argumentais, jos rezultatai pasiskirsto tolygiai;
  • pagal rezultatą negalima vienareikšmiškai nustatyti argumento;
  • yra gana nedidelė tikimybė, jog dviejų argumentų x ir y rezultatas f(x) = f(y). Tai itin svarbu kriptografijoje.
Maišos reikšmė yra tiksli didesnio duomenų kiekio ar dokumento reprezentacija, tai yra tam tikras skaitmeninis pirštų antspaudas.
Todėl, kad šie maišos algoritmai yra vienakrypčiai, jie plačiai paplitę kriptografijoje. Taip pat šiuos algoritmus galima taikyti ir duomenų integralumui ir korektiškumui tikrinti.
Maišos funkcijos yra determinuotosios, t.y ne atsitiktinės. Skaičiuojant maišos reikšmę tai pačiai įvesčiai kelis kartus, visada bus gaunamas tas pats rezultatas. Maišos funkcijoms priskiriamas „lavinos efekto“ (angl. avalanche effect) charakteristika, kurios dėka iš pažiūros labai panašiems pirminiams tekstams yra suteikiamos visiškai skirtingos maišos reikšmės. Sakoma, kad vieno bito pasikeitimas iššaukia „laviną“ pasikeitimų visuose maišos reikšmės bituose.
Tinkamo maišos algoritmo grąžinamos reikšmės neišduoda jokios informacijos apie grynąjį tekstą.
SHA-1 (Secure Hash Algorithm) – vienas populiarus algoritmas, naudojamas įvairiose programose ir protokoluose kaip antai – TLS, SSL, PGP, SSH, S/MIME, IPSec. SHA-1 buvo laikomas pažeidžiamo MD5 algoritmo įpėdiniu, tačiau 2004 ir 2005 metais atrasti pažeidžiamumai daro šį algoritmą nerekomenduotinu. Yra sukurta saugesnių SHA-1 algoritmo variacijų (SHA-224, SHA-256, SHA-384, SHA-512) (Lentelė 1.1), kuriose pažeidžiamumų kol kas nerasta. SHA-256 apskaičiuoja 256 bitų parašą:.
1.1 Lentelė Maišos funkcijų palyginimas
Apačioje pateikti beveik identiškų žodžių ir jų SHA-256 maišos reikšmių pavyzdžiai:
KTN10→ 53eb86b5a94cd06e72be24964189b599ef0d5a120a6d1e467ba3a245b3997b25
KTN11→ 95937a416e19c227d50e6ef59d9d8b74dda55f31a1e249ac18c24516700ade59

Bitcoin naudoja SHA-256 maišos algoritmą, atsitiktinių numerių generacijai. Taip sukuriamas kripto-uždavinys, kurį išspręsti gali kompiuteris naudodamas kompiuterinius išteklius. Žemiau matome teisingai išprastą bloko maišą. Teisingas sprendinys turi turėti tam tikrą nulių skaičių, nuo kurio priklauso užduoties sudėtingumas. Visi kontrolinio parašo algoritmai turi baigtinį galimų parašų skaičių, todėl yra apskaičiuojami grubios jėgos (angl. brute force) skaičiavimais. Nonce yra sprendinys, skelbiamas kartu su išspręstu bloku, kurį naudodami klientai gali patikrinti užduoties sprendimą.
Bloko maiša: 000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf


RIPEMD-160 (RACE Integrity Primitives Evaluation Message Digest) – sukurtas 1996 metais akademinės bendruomenės, todėl nėra suvaržytas patentų. Šis algoritmas yra mažiau populiarus nei MD5 ar SHA-1, todėl atitinkamai mažiau ir analizuotas. RIPEMD-160 apskaičiuoja 160 bitų parašą:
Adresuose naudojamas (RIPEMD-160) algoritmas, kuomet reikalinga trumpesnė maiša. Konkrečiai šis algoritmas naudojamas, kad būtų sutrumpintas Bitcoin adresas.
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 (pirmu etapu naudojama sha-256)
b6a9c8c230722b7c748331a8b450f05566dc7d0f (antru etapu naudojama ripemd-160)


Bitcoin protokole taip pat naudojamos maišos funkcijos, sujungiant visus pavedimus į šakninę maišą (angl. Root Hash arba Merkle root) (1.1.pav), kuri atvaizduojama bloko antraštėje. Tx0 ir Tx1 yra transakcijos, atitinkančios santraukai Hash0 ir Hash1. Jos drauge sutraukiamos į Hash01 šaką, transakcija Tx2 ir Tx3 analogiškai sutraukiama į Hash23 šaką, šis procesas kartojamas su visais pavedimais iki šakninės maišos (angl. Root Hash).
1 .1 pav. Bloko antraštės maišos generacija
Kaip pavyzdį paimkime 200000 bloką (1.2 pav) (http://blockexplorer.com/b/200000), kuriame buvo atliktos 388 pavedimai, visų transakcijų šakninė maiša, pradiniame pranešime pažymėta kaip mrkl_root.
"mrkl_root":"08f8101f50fd9c9b3e5252aff4c1c1bd668f878fffaf3d0dbddeb029c307e88"


1 .2 pav 2000-asis Bitcoin blokas

    1. Skaitmeninių parašų schemos


Skaitmeninių parašų schemos - tai technikos, naudojamos užtikrinti siuntėjo autentiškumą. Bitcoin naudoja elipsinės kreivės skaitmeninio parašo algoritmą arba ECDSA. Algoritmas užtikrina, kad lėšas gali išleisti tik teisėtas savininkas.
Raktas – tai duomenys, būtini duomenų užšifravimui ir dešifravimui. Kriptosistema – teksto transformavimas panaudojant raktą taisyklių rinkinys. Raktų aibė – visos galimo kriptosistemos raktų reikšmės. Bitcoin naudoja kriptosistemą kurioje yra du raktai, viešasis (public) ir privatusis (private), kurie susiję sudėtingais matematiniais ryšiais.
Bitcoin privačiajam raktui naudoja 256 bitus, (32 baitus). Privatusis raktas Bitcoin kontekste -tai slaptas numeris, kurio pagalba galima išsiųsti bitcoinus, pasirašant pavedimus. Žinant viešąjį raktą galima patikrinti ar siuntėjui priklauso teisėtas privatus raktas. Privatusis raktas yra matematiškai susijęs su bitcoin adresu, kuris yra suprojektuotas taip, kad iš privataus rakto būtų lengvai apskaičiuotinas, tačiau ne atvirkščiai.

Pirmiausiai sugeneruojame 256-bitų privatų raktą. Privatus raktas reikalingas pavedimų pasirašymui. Toliau eliptinių kreivių algoritmas iš privataus rakto generuoja 512-bitų viešąjį raktą. Kadangi 512-bitų raktas yra ilgas ir nepatogus, jis yra sumaišomas iki 160 bitų naudojant SHA-256 ir RIPEM maišos algoritmus. Raktas tuomet užkoduojamas ASCII naudojant Base58Check koduote. Rezultatas būna panašus į - 1KKKK6N21XKo48zWKuQKXdvSsCf95ibHFa - tai raktas, kuris skelbiamas viešai, į šį adresą galima persiųsti bitcoinus. Detalus raktų generavimo procesas tolesniame darbe nebus nagrinėjamas. Šioje svetainėje yra pateiktas Python programavimo kodas (https://github.com/weex/addrgen ), atliekantis privataus ir viešojo rakto generaciją. Raktų generacijai naudojama Python 2.7 versija, žemiau matome sėkmingai sugeneruotą privatųjį ir viešąjį raktą.

('125rRY53KR5Ua1FwXn7957S7JY582iVUSr', 'L4ABM685N9a8aP6AmX6hmquPKnR9VDDoV35GTHt4FgoqojcyD9bS')


Praradus privatųjį raktą, neturint atsarginės kopijos, visi bitcoinai yra prarandami visam laikui, be galimybės juos atgauti. Taip pat reikėtų paminėti, kad adresai turi tikrinimo algoritmą, todėl išsiųsti klaidingu adresu yra neįmanoma (1.3.pav). Tačiau jei adresas yra teisingai suformuluotas, bet neturi savininko, bitcoinai bus prarasti visam laikui.

1 .3 pav. Bitcoin Kliento neleistino adreso formuluotė

. Reikia paminėti, kad raktų generavimo funkcijas atlieka ir Bitcoin klientas. Jis raktų poras saugomo wallet.dat byloje. Taip pat yra daugybė svetainių, kurios siūlo Bitcoin raktų kūrimo paslaugas, vieną iš jų aptarsime.

Paveikslėlyje 1.4 matome sugeneruotą Bitcoin privatų ir viešąjį raktą, naudojantis (https://www.bitaddress.org) svetaine. Privatus raktas turėtu būti slaptas, viešai skelbti jo nederėtų dėl saugumo sumetimų, šiuo atvejų buvo sugeneruota demonstracinė adresų pora.


1 .4 pav. Viešojo ir privataus raktų pora


  1. PAGRINDINĖS DUOMENŲ STRUKTŪROS



Bitcoin mazgai jungiasi prie klientų naudodami TCP protokolą. Mazgai paprastai klausosi informacijos 8333 prievade. Naudodami Wireshark tinklo analizės programą (2.1 pav.) matome Comand name: tx tai reiškia, jog priimama pavedimas (transakcija).


2 .5 pav. Wireshark programa užfiksuotas Bitcoin pavedimo paketas

Lentelėje 2.1 matome aprašytą žinutės struktūrą, pateiktą su paaiškinimais.
2.1 lentele. Žinutės struktūra
Dydis
Aprašymas
Duomenų tipas
Paaiškinimas
4
magic
uint32_t
Magiškas skaičius, (f9 be b4 d9), identifikuojamas kaip Bitcoin protokolo žinutė. Pirminiame kode, nurodyta, kad reikšmė buvo pasirinkta, dėl to, kad įprastiniuose duomenyse aptinkama retai (main.cpp, 1760 eilutė).
Taip pat žinomos reikšmės:
testnet - FA BF B5 DA
testnet3- 0B 11 09 07
12
command
char[12]
ASCII eilutės duomenys nustatantys paketo turinį.
4
length
uint32_t
Payload ilgis.
4
checksum
uint32_t
Pirmi 4 baitai sha256(sha256(payload))
 ?
payload
uchar[]
Faktiniai duomenys




Pagrindinės Bitcoin duomenų struktūros yra:
  • Pavedimai;
  • Blokai ;
Blokai yra sudaryti iš bloko antraštės, po kurios seka transakcijos.Blokai atpažįstami pagal antraštės maišą.
    1. Blokai



Abstrakčiai blokas yra metodas, kuriuo duomenys visam laikui įrašomi tinkle. Tai yra visų įvykusių pavedimų sąrašas. Blokai taip pat turi nuorodas į prieš tai buvusius blokus. Visi blokai sudaro blokų grandinę. Bitcoin klientai šnekasi tarpusavyje peer-to-peer tinkle. Kai vykdomas pavedimas, jis transliuojamas klientams.
Nauji blokai negali būti paskelbti tinklui, neturėdami teisingo sprendimo. „Kasimo“ procesas yra varžymasis kuo greičiau išspręsti einantį bloką. Matematinė problema kiekviename bloke yra sudėtinga, tačiau ją išsprendus, patikrinti tampa labai paprasta, žinant nonce (Lentelė 2.2). Sėkmingai išsprendus bloką „kasėjas“ apdovanojamas tam tinka bitcoin suma, šiuo metu - 25 BTC. Apdovanojimas dalinamas pusiau kas 210 000 blokų (kas keturis metus).
2.2 lentele. Bloko antraštės struktūra
Dydis)
Aprašymas
Duomenų tipas
Paaiškinimas
4
versija
uint32_t
Bloko versijos informacija, remiantis programine įranga.
32
ankstesnis blokas
char[32]
Ankstesnio bloko maišos reikšmė, esanti blokų grandinėje. Tai užtikrina blokų eiliškumą.
32
merkle_šaknis
char[32]
Merkle šaknis nurodo visų transakcijų maišos reikšmę.Taip užtikrinama, kad transakcijos nebus pakeistos, tapusios blokų grandinės dalimi.
4
Laiko žymė
uint32_t
Laiko žymės įrašytas, nurodantis bloko sukūrimo laiką.
4
bitai
uint32_t
ff ff 00 1d (0x1d00ffff hex, 486604799 decimal) Apskaičiuotas sudėtingumas naudotas šiame bloke.
4
nonce
uint32_t
Nonce yra atsitiktinė reikšmė, sugeneruota „kasimo“ procese. . Tai reikšmė, kuria panaudojo kasėjas, sėkmingai išsprendęs bloką.
1
txn_count
var_int
Transakcijų skaičius.Blokas negali turėti 0, transakcijų, nors viena transakcija turi būti priskirta už bloko išsprendimą.


Bitcoin pasikliauja darbo-įrodymo (angl. proof-of-work) mechanizmu, kad užkirstų kelią piktybinėms Bitcoin tinklo manipuliacijoms.
Tam, kad blokas būtų išspręstas, pirmiausiai reikia surinkti naujus pavedimus į bloką. Tuomet blokas yra sumaišomas, suformuojant 256-bitų maišos reikšmę. Jei maiša prasideda su pakankamu skaičiumi nulių, blokas tampa išsprendžiamas ir siunčiamas į Bitcoin tinklą. Maiša tampa bloko unikaliu identifikatoriumi (1.2 pav). Paprastai ksi maiša būna klaidinga, tuomet blokas yra keičiamas, vėl ir vėl milijonus kartų.(Lentelė 2.3) Kas 10 minučių kas nors sėkmingai išsprendžia bloką, tuomet visas procesas kartojamas iš naujo.


2.3 lentele. Bloko sprendiniai naudojant skirtingas nonce reikšmes
nonce
Maiša
0
5c56c2883435b38aeba0e69fb2e0e3db3b22448d3e17b903d774dd5650796f76
1
28902a23a194dee94141d1b70102accd85fc2c1ead0901ba0e41ade90d38a08e
2
729577af82250aaf9e44f70a72814cf56c16d430a878bf52fdaceeb7b4bd37f4
3
8491452381016cf80562ff489e492e00331de3553178c73c5169574000f1ed1c
39
03fd5ff1048668cd3cde4f3fb5bde1ff306d26a4630f420c78df1e504e24f3c7
990
0001e3a4583f4c6d81251e8d9901dbe0df74d7144300d7c03cab15eca04bd4bb
52117
0000642411733cd63264d3bedc046a5364ff3c77d2b37ca298ad8f1b5a9f05ba
1813152
00000c94a85b5c06c9b06ace1ba7c7f759e795715f399c9c1b1b7f5d387a319f
19745650
000000cdccf49f13f5c3f14a2c12a56ae60e900c5e65bfe1cc24f038f0668a6c
243989801
0000000ce99e2a00633ca958a16e17f30085a54f04667a5492db49bcae15d190
856192328
0000000000000000e067a478024addfecdc93628978aa52d91fabd4292982a50






    1. Pavedimai

Pavedimas yra esminė Bitcoin sistemos operacija. Bitcoin pavedimai perkelia bitcoinus iš vieno adreso į kitą. Transakcija turi būti pasirašyta privačiu raktu, tam, kad tik bitcoinų savininkas galėtų juos persiųsti. Parašas įkeliamas į pavedimą ir visa transakcija yra kriptografiškai sumaišoma (2.2 pav). Galiausiai ši maiša yra naudojama atpažinti pavedimus Bitcoin sistemoje.


2 .6 pav. Bitcoin pavedimai

Kaip matome iš paveikslėlyje 2.2 pirmas pavedimas siunčiamas viešuoju adresu - Kv,B, ir pasirašomas siuntėjo Kv,A, sigA parašu. Patvirtinus pirmąjį pavedimą, Kp,B pasirašo sigB ir siunčia pavedimą Kv,C adresu.
Bitcoin transakcija perkelia bitcoinus tarp vienos ar daugiau įvesčių (angl. inputs) į išvestis (angl. outputs). Kiekviena įvestis turi būti pilnai išleista pavedime. Jeigu į adresą buvo atsiųsta 100 BTC ir norima išleisti tik 1 BTC, transakcijos metu turi būti išleistas pilna suma - 100 BTC. Siuntėjas persiunčia 1 BTC gavėjui, likusieji 99 BTC, grįžta siuntėjui kaip grąža.
Žemiau pavaizduotoje transakcijoje (2.4 pav), matome bendrą įvesčių sumą, pervedimui buvo persiųsta 0.338 BTC suma (2.3 pav).
2 .7 pav. Bitcoin kliente įvykdytų sandorių langas


19fDsgnsQrTDxCksUH16DXzbhCU34ng4PN –siuntėjo adresas. 1PqnmPLdkniQtJZ4RKYYkiyv3KMRoZZKuA – gavėjas adresas.
Iš (2.4 pav) matome, kad įvesčių suma buvo sudėta, skirtumas grįžo į kaip grąža siuntėjui -
2.1772 BTC
.
2 .8 pav.Bitcoin blokų grandinės transakcija


Lentelėje 3.3 išdėstyti paveikslėlio 2.4 reikmių vertimas ir paaiškinimas.




3.3 lentele. Bitcoin pavedimo paaiškinimai

Vertimas
Paaiškinimas
Hash
Maiša
Pavedimo maiša
Appeared in
Pasirodė
Blokas kuriame talpinama transakcija, laikas kuomet transakcija buvo aptikta
Number of inputs
Įvesčių skaičius
Tai pavedimai, kurie buvo atlikti į siuntėjo transakcijos adresą
Total BTC in
BTC įvesčių balansas
Bendra atsiųstų bitcoinų suma
Number of outputs
Išvesčių skaičius
Tai pavedimai, kurie buvo atlikti iš siuntėjo transakcijos adreso
Total BTC out
BTC išvesčių balansas
Bendra išsiųsta BTC suma
Size
Dydis
Pavedimo dydis baitais
Fee
Mokestis
Pavedimo mokestis
Inputs
Įvestys
Visi bitcoinai, kurie buvo pervesti į dabartinį adresą
Outputs
Išvestys
Vienas adresas yra gavėjo, kitame yra gavėjo adresas, BTC grįžta kaip graža.
ScriptSig

scriptSig = <parašas> <viešas raktas>, koduotė įrodo bitcoinų savininko autentiškumą

ScriptPubKey

Kai gavėjas nori išleisti lėšas, jis pateikia įvestis į ScriptPubKey
Bitcoin naudoja scenarijų sistemą (angl. scripting system). Scenarijai iš esmės yra instrukcijų rinkinys, nurodantis kaip asmuo, norintis išleisti bitcoinus, turi elgtis.
Bitcoin kuria skirtingas scriptSig/scriptPubKey poras. Yra įmanoma sukurti sudėtingas tipo transakcijas, dar kitaip vadinamas kontraktais.


  1. PROJEKTINĖ DALIS



Bitcoin sistema naudoja algoritmą atpažįstančią teisingas transakcijas ir blokus. Jei blokai ar transakcijos yra klaidingai formuojamos norint pakenkti tinklui, jos atmetamos. Projekte realizuotas tinklas, veiks šiuo algoritmo principu.




3.1 Bitcoin tinklo sandaros sudarymas



Projektinėje dalyje bus naudojamas Bitcoin kliento branduolys. Kursime alternatyvia kriptovaliutą. Projekte naudojamos operacinės sistemos Debian 7.0 - serveryje ir Ubuntu 14.10 - lokaliame kompiuteryje. Klientai bus sujungti į peer-to-peer tinklą.
Pradinio serverio IP adresas 188.226.131.112 Serveryje veiks Debian 7.0 operacinė sistema, kitame asmeniniame kompiuteryje, kurio IP adresas - 88.223.50.210, bus veiks Ubuntu 14.10 LT operacine sistema. Tinklas veiks tesnet režimu. P2P prievadas - 45884 bus skirtas bendravimui peer-to-peer tinkle, RCP 55883 prievadas skirtas kasėjams .
Internetinis forumas (bitcointalk.org) yra vienas iš geriausių šaltinių, ten rasta daug naudingos informacijos. Šiame forume galima rasti daugybę techninių temų Bitcoin tematika.






Uždavinys: reikia sukurti alternatyvią monetą (angl. alt coins). Kad pasiektume šį tikslą, naudosime, modifikuotą Bitcoin pirminį kodą.


Darbo priemonių pasirinkimas
Projektui reikalingos priemonės:
  • Kompiuteriai su Unix-tipo operacinė sistema;
  • Šaltinio pirminis kodas.




Darbo eigos aprašymas.
Projektui bus naudojamas debesų serveris (digitalocean.com).
Pirmiausiai užsiregistruojame prie serverio (3.1 pav.).
3 .9 pav. Prisijungimas prie DigitalOcean abonento

Užsiregistravus svetainėje, buvo pasirinktas serveris, turintis 2 procesorių, su 40GB SSD diskiniu kaupikliu su 3TB pralaidumu (3.2 pav.)



3 .10. pav. Serverių pasirinkimas

Buvo pasirinktas geografiškai artimiausias regionas (3.3 pav.)
3 .11. pav. Serverio vietovės pasirinkimas

Toliau pasirenkama operacinė sistema, šiame projekte buvo naudojama Debian 7.0 64, kaip matoma paveikslėlyje (3.4 pav.).
3 .12.pav. Linux distribucijos pasirinkimas


Buvo nustatyta ViTiO pasirinktys kurios pagerina tinklo ir I/O pralaidumą (3.5 pav.).




3 .13.pav Papildomi serverio nustatymai

Pasirinkus visus nustatymus ir patvirtinus, buvo gautas laiškas iš digitalocean.com su prisijungimo duomenimis (3.6 pav.).
3 .14.pav. Prisijungimo duomenys

Prisijungimui prie serverio buvo naudojama nemokama Telnet/SSH programa – putty. Suvedus IP adresą sesija buvo išsaugota ir pavadinta – Projektas, kad nereikėtų kiekvieną kartą ranka įvedinėti adresą (3.7 pav.).
3 .15.pav. Putty programos langas

Įvedus IP adresą ir paspaudus „Open“ atsidarė konsolinis langas. Prisijungimui prie serverio naudojami digitalocean atsiųsti prisijungimo prie serverio duomenys (3.8 pav.).
3 .16.pav Prisijungimo langas


Tam, kad būtų paprasčiau naudoti atvirą kodą, buvo sukurta Github paskyra. Github -tai įrankis, skirtas talpinti įvairius projektus. Šis įrankis, kaip ir kiti tokio tipo įrankiai, leidžia vartotojui kurti atsargines kopijas bei redaguoti projekto failus ir tvarkyti klaidas. Šie projektai suteikia puikią galimybę atlikti programinio kodo versijų kontrolę tiesiog internete.
Debian operacinėje sistemoje pirmiausiai reikia įdiegti papildomas programas (angl. dependencies), jas atisiunčiame įvedę komandą:
$sudo apt-get install build-essential libboost-all-dev libcurl4-openssl-dev libdb5.1-dev libdb5.1++-dev git qt-sdk libminiupnpc-dev


Sekantis žingsnis, atsisiųsti pirminį kodą, kurį modifikuosime serveryje. Pirminiu kodu pasirenkame smallchange.
root@Projektas:~# git clone https://github.com/alt-project/smallchange.git


Programai reikia sureikti unikalius prievadų ruožus. Bus keičiami prievadai RPCport, P2P PORT ir Testnet Port. RPC prievadas naudojamas jungtis prie tinklo „kasėjams“, P2P - skirtas jungtis prie peer-to-peer tinklo, Tesnet skirtas bandymams. Visi šie prievadai turi būti skirtingi.




3.2 Pirminio kodo keitimas



Kad įsitikintume, ar prievadai neužimti peržiūrime okupuotų prievadų lentelę, kurią galime rasti – (https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers) .


src/init.cpp: (P2P PORT + Testnet Port)
LINE 235 " -port= " + _("Listen for connections on (default: 55884 or testnet: 45884)") + "\n" +
src/init.cpp: (RPC PORT)
LINE 271 " -rpcport= " + _("Listen for JSON-RPC connections on (default: 55883)") + "\n" +


Tolesni nustatymai aprašo monetų generavimo intervalus, sudėtingumo perskaičiavimo laiką.
src/main.cpp: (Monetų kiekis, kurį gauna kasėjai suradę bloką)
LINE 831 int64 nSubsidy = 1 * COIN;
LINE 832 if(nHeight < 10) // pirmas motetos po 10 bloko
src/main.cpp: (Parodo kas kiek laiko keičiamas sudėtingumo lygis)
LINE 837 static const int64 nTargetTimespan = 0.35 * 24 * 60 * 60 //0.35 blokų perskaičiavimo laikas
LINE 836 static const int64 nTargetSpacing = 15; // blokų generavimas kas 15s


src/main.h: (Bendras monetų kiekis ir Blokų skaičius per parą)
LINE 43 static const int64 MAX_MONEY = 10000 * COIN; // maksimalus monetų kiekis
LINE 550 return dPriority > COIN * 720 / 250; // 720 blokai randami per parą.


Pirma adreso raidė yra parenkama naudojant base58 algoritmą. Pagal puslapį, base58 reikšmes galima rasti puslapyje (https://en.bitcoin.it/wiki/Base58Check_encoding).
src/base58.h:
LINE 280 PUBKEY_ADDRESS = 38, //Nurodomas adreso pirmas bitas
Eros laikas
Pirmas dalykas, kurį turime pakeisti prieš pradedant generuoti blokus, tai pradinis monetos gimimo laikas. Nuo vidurnakčio 1970 metų 00:00:00 Unix (Epoch ar POSIX) buvo pradėtas skaičiuoti laikas . Žemiau pateikiamas pavyzdys:
398419697 (ISO 8601:2014-04-25T09:54:57Z)
Tikslų epochos laiką randame (http://www.epochconverter.com) su galimybe apskaičiuoti būsimą epochos laiką.
Unix sistemoje laikas randamas komanda:
$ date +%s
$ 1369590088
Yra dvi pagrindinės vietos, kuriose reikia pakeisti laiką pirminiame kode.
src/main.cpp: (Tesnet laikas)
LINE 2034 block.nTime = 1398459635;
src/main.cpp: (Pagrindinis laikas)
LINE 2040 block.nTime = 1398459635;


Kompiliavimas
Dabar atlikę pakeitimus, galime pradėti sukompiliuoti barcoin failą. Kompiliuojame naudodami komandą:
barcoin/src% make -f makefile.unix USE_UPNP=-

Paleidžiame sukompiliuotą programą tesnet režimu:

root@Projektas:~/barcoin/src# ./barcoin -testnetd
barcoin: main.cpp:2082: bool LoadBlockIndex(bool): Assertion `block.GetHash() == hashGenesisBlock' failed.
Aborted
root@Projektas:~/barcoin/src# LoadBlockIndex(bool): Assertion `block.GetHash() == hashGenesisBlock' failed.


/debug.log
Gfcoin version v0.6.3.0-ga19eb2d-beta (2014-04-25 22:58:31 +0300)
Startup time: 04/26/14 10:44:51
Default data directory /root/.gfcoin
Used data directory /root/.gfcoin
Bound to [::]:29931
Bound to 0.0.0.0:29931
Loading block index...
dbenv.open LogDir=/root/.gfcoin/database ErrorFile=/root/.gfcoin/db.log
800426389bc34c1f79fe330efcc6e5f187821a4f69a7982d3c46c58df442f21f
384b060671f4a93948e9c168216dadb0ca2fbc54aa11c86b0345b6af1c59b2f5
5a2e19825b4162f68602039040f1e05d9f924ff00a3aff7327ca6abd6f3279bc
CBlock(hash=800426389bc34c1f79fe, PoW=837b089eb934d1dd50e9, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=5a2e19825b, nTime=1398459635, nBits=1e0ffff0, nNonce=2085386442, vtx=1)
CTransaction(hash=5a2e19825b, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, -1), coinbase 04ffff001d010441746f646f3a207265706c616365207769746820736f6d657468696e67207468617420656e7375726573206e6f207072656d696e696e6720746f6f6b20706c616365)
CTxOut(error)
vMerkleTree: 5a2e19825b


Ši eilute -
800426389bc34c1f79fe330efcc6e5f187821a4f69a7982d3c46c58df442f21f - nusako bloką su neegzistuojančią Merkel maišą naudota main.cpp faile:

Žemiau nurodyta eilutė sugeneruota sugeneruoja teisingą Merkel maišą naudojant epochos laiką iš main.cpp dokumento:
5a2e19825b4162f68602039040f1e05d9f924ff00a3aff7327ca6abd6f3279bc


Įrašome teisingai sugeneruota maišą main.cpp dokumente.
src/main.cpp
LINE 2048 assert(block.hashMerkleRoot == uint256("0x5a2e19825b4162f68602039040f1e05d9f924ff00a3aff7327ca6abd6f3279bc"));


Kad būtų sukurtas Pradinis blokas, reikia pakeisti main.cpp eilutėlės reikšmę į true, ji paprastai nebūna nustatyta, nes reikalinga tik pirmojo bloko generavimui.


src/main.cpp
LINE 2034 if (true && block.GetHash() != hashGenesisBlock)


Kad pakeitimai įsigaliotų klientas turi būtų perkompiliuotas
barcoin/src$ make -f makefile.unix


Atlikus pakeitimus, programa kompiliuojama. Dar karta paleidžiame programą.
barcoin/src$ ./ barcoin –testnet

3.3 Pradžios bloko generavimas

Pradinio bloko „kasimas“, tai veiksmas reikalaujantis daug kompiuterio resursų, debug.log dokumente galime matyti, kaip yra ieškoma bloko, keičiant nonce reikšmę. Pradinio bloko sprendimas gali užtrukti ilgą laiką.
/debug.log
block.nTime = 1000000000
nonce 00115000: hash = cbf6230ccf415873cd8c10b33c092943224d04458671cff39898ffb636b865dd (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 00116000: hash = 8ed7cc737432e37c2617c57b01305e3aff041479bf1d5391dc234bc9935bfa4c (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 00117000: hash = a44c797fd7bd0ef7211f092cbfa0a214e74f5b16929860b7001d8725df2562a7 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 00118000: hash = b2b3ec59ea20e29ca0024cdfda994bb759b633cd12695dc1e6126fed0ab67162 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 00119000: hash = 521e992768cdd42607ae9f064e98623686fc96f33c04630f8a973c35a3e381cc (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 0011A000: hash = dbb91176dc6e9ca7559bda664fa2bc854c447969a41afb9593a8a3b0b45bafea (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 0011B000: hash = 2dd8fa5990dda1be7595f30ce7d801de7a457aa687700badf895a085abd8f932 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
nonce 0011C000: hash = 7fa071b3217feda33745c967cc0226b8c47269588c8cbb8d4bc69822eda31cd5 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)

block.nNonce = 1167091
block.GetHash = c528c52daedce24e8d7a735e7e947946f41b3b578dfbab6de7a2e28bb713a5a1
CBlock(hash=c528c52daedce24e8d7a, PoW=00000dc4adbe12efe41a, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=2fc1b7ef46, nTime=1000000000, nBits=1e0ffff0, nNonce=1167091, vtx=1)
CTransaction(hash=2fc1b7ef46, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, -1), coinbase 04ffff001d0104284275696c64696e67206120636f696e20746f2073686f772074686520776f726c6420686f772e2e2e)
CTxOut(error)


Kaip matome iš debug.log dokumento, buvo atrasta bloko maiša, kartu su ja matome none reikšmę.

block.nNonce = 1167091
block.GetHash = c528c52daedce24e8d7a735e7e947946f41b3b578dfbab6de7a2e28bb713a5a1


Viskas kas mums lieka padaryti, tai pakeisti pradžios bloko atraštę ir nonce main.cpp dokumente.
src/main.cpp:
LINE 1984 hashGenesisBlock = uint256("0xc528c52daedce24e8d7a735e7e947946f41b3b578dfbab6de7a2e28bb713a5a1");
Yes, you need to leave the 0x in front of the hashes. You also need to enter the nNonce:
src/main.cpp:
LINE 2024 block.nNonce = 1167091;

Dabar esame pasirengę padėti bandymus testent režime. Prisijungti prie kito kompiuterio yra gana sudėtinga. Reikės prijungti du kompiuterius su the -connect=x.x.x.x kintamuoju, įvedant IP adresą komanda:
barcoin/src% ./barcoin -testnet -connect= 88.223.50.210

barcoin/src% ./barcoin -testnet -connect= 188.226.131.112


Sėkmingai sujungus ir įvedus komanda getinfo gaunamas pranešimas.
barcoin/src%./barcoin getinfo
{
"version" : 1000000,
"protocolversion" : 60001,
"walletversion" : 60000,
"balance" : 0.00000000,
"blocks" : 0,
"connections" : 1,
"proxy" : "",
"difficulty" : 0.00024414,
"testnet" : true,
"keypoololdest" : 1369621665,
"keypoolsize" : 101,
"paytxfee" : 0.00000000,
"mininput" : 0.00010000,
"errors" : ""
}


3.4 Kriptovaliutos „kasimas“



Dabar kai klientai sujungti galima pradėti generuoti monetas naudodami komanda:
barcoin/src% ./barcoin setgenerate true 3

Skaičius 3 nurodo kiek gijų procesorius naudos blokų „kasimui“. Po kurio laiko išvysime kažką panašaus į:
barcoin/src% ./barcoin getmininginfo
{
"blocks" : 0,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"difficulty" : 0.00024414,
"errors" : "",
"generate" : true,
"genproclimit" : 16,
"hashespersec" : 1432,
"networkhashps" : -9223372036854775808,
"pooledtx" : 0,
"testnet" : true
}




  1. DARBO SAUGA IR EKOLOGIJA



Siekiant produktyviai dirbti patogiomis sąlygomis, labai svarbu tinkamai suderinti savo darbo vietą.

Apšvietimas
Kuo tinkamesnis apšvietimas, tuo našesnis darbas ir didesnis darbingumas. Dirbtinė apšvieta gali būti mišri, bendra ir vietinė. Bendram apšvietimui naudojami atspindėtos ir išsklaidytos šviesos šviestuvai.Norint išvengti atspindžių ir blyksnių, apšvietimo šaltinį reikia uždengti arba išsklaidyti. Jei trukdo saulės šviesa, galima naudotis užuolaidomis, žaliuzėmis, blyksnių filtrais arba apsauginiais ekranais.
Minimalus bet kokios darbo vietos apšvietimo standartas yra 150 lux.Liuksas yra standartinės žvakės vieno metro atstumu reikiama šviesa.
Monitorius
Bene didžiausias neigiamo kompiuterio poveikio žmogaus organizmui kaltininkas yra monitorius, kitaip vaizduoklis, displėjus – įrenginys regimajai (tekstinei ir grafinei) informacijai rodyti. Ryškumas ir ženklų bei fono tarpusavio kontrastas turi būti lengvai reguliuojami. Simbolio ir ekrano fono kontrastas turi būti ne mažesnis kaip 0,8. Paprastai primtiniausias yra didelio kontrastingumo ir mažo ryškumo santykis.
Displėjaus ekranas turi būti lengvai bei laisvai pasukamas ir pakreipiamas.. Todėl displėjus turėtų turėti stovą arba reguliuojamą stalą, leidžiančius keisti ekrano padėtį. Monitoriaus viršus turi būti akių lygyje (arba truputį žemiau. Skaitant tekstą, negalima skaityti daugiau kaip 5 laipsnius aukščiau ir daugiau kaip 30 laipsnių žemiau nuo horizontalės. Žiūrint į monitorių reikia nelenkti galvos daugiau kaip 15 laipsnių .


Pelė ir kiti valdymo įrenginiai

Netinkamas pelės ar kitų valdymo įrenginių naudojimas gali tapti diskomforto ir traumos priežastimi. Norint paspausti pelės ar kito valdymo įtaiso mygtuką, visai nereikia įtempti pirštų ar naudoti jėgos. Pernelyg stiprūs paspaudimai per daug įtempia sausgysles, ne tik plaštakų, bet ir žasto bei riešo raumenis. Pelę reikia laikyti švelniai ir be įtampos, per daug nespaudžiant. Ranka turi būti atsipalaidavusi, pirštai laisvi. ir dirbant klaviatūra, plaštaką, riešus ir alkūnes reikia laikyti tiesiai. Dirbant su pele ar kitu valdymo įrenginiu, reikia stengtis jį laikyti kiek galima arčiau klaviatūros, tokiame lygyje, kad nereikėtų nuolat ištiesti rankos. Kad darbas su pele būtų efektyvesnis ir kuo mažiau judėtų plaštaka bei riešas, naudojamas kokybiškas pelės kilimėlis.


Darbo kėdė
Kėdė yra dažniausiai naudojama kompiuterizuotos darbo vietos dalis. Darbo kėdės konstrukcija turi atitikti ergonominius reikalavimus, atsižvelgiant į PEOSH ANSI/HFS 100–1988 rekomendacijas bei Lietuvos higienos normą HN 32:2004. Kėdė turi būti su keliamuoju ir sukamuoju mechanizmu, leidžiančiu keisti kėdės aukštį bei atlošo atlenkimo kampą. Kėdė turi turėti porankius. Jais naudojamasi nedirbant, ilsinant rankas. Porankiai turi būti nuimami arba reguliuojami. Pagal Europos standartą, porankių plotis – 4 cm, ilgis – 20 centimetrų. Porankiai leidžia patogiai atremti dilbius, atpalaiduoti pečius; jų aukštis turi būti
22–28 centimetrai. Netinkamo aukščio porankiai gali būti pečių, kaklo ar nugaros skausmų priežastis.
Darbo stalas
Darbo stalas turi būti pakankamai didelis, kad būtų galima patogiai išdėstyti displėjų, klaviatūrą, dokumentus ir kitus būtinus įrenginius Stalo aukštis turi atitikti kėdės aukštį: atstumas nuo kėdės iki stalo viršaus turi būti toks, kad sėdintysis galėtų laisvai užkelti koją ant kojos ir dirbant jam nereikėtų pasilenkti arba kelti rankų. Stalo aukštis reguliuojamas taip, kad viršutinė eilutė displėjuje butų dirbančiojo akių lygyje, o monitoriaus centras 5–30 laipsnių žemiau akių lygio. Monitoriaus aukštis gali būti parenkamas pagal jo įstrižainę, arba įrengus reguliuojamo aukščio monitoriaus stovą. Vietos kojoms po stalu gylis turi būti: kelių aukštyje – 40 cm, pėdų aukštyje – 60 centimetrų.


  1. EKONOMINĖ DALIS

    1. Skaitmeniniai pinigai



Kriptovaliuta, paprastai kalbant, yra internetinis atsiskaitymo vienetas. Tokia valiuta neturi fizinės išraiškos, yra perduodama internetu, laikoma skaitmeniniu būdu ir generuojama pačių vartotojų. Būtent čia ir yra pagrindinis jos skirtumas nuo kitų valiutų. Nėra konkretaus asmens ar institucijos, kuri gali užsiimti valiutos leidimu. Valiuta auga pagal nustatytą algoritmą arba tai, kiek patys vartotojai tam skiria resursų. Todėl vienai institucijai ar individui realiai neįmanoma kriptovaliutos kiekio padidinti arba sumažinti labai staigiai. Valiuta yra skaitmeninė, o perdavimas vyksta internetu. Todėl kriptovaliutos dažnai garantuoja aukštesnio ar žemesnio laipsnio anonimiškumą
Pagrindiniai reikalavimai skaitmeniniams pinigams
autentiškumas: niekas negali pasiimti skaitmeninių pinigų mūsų vardu
vientisumas: sukurtas pinigas negali būti pakeistas (prie 1 negali būti „prirašyta“ keletas nulių)
tiesioginis mokėjimas: atsiskaitant skaitmeniniais pinigais, nereikia kreiptis į banką
saugumas: tie patys skaitmeniniai pinigai negali būti išleisti pakartotinai
anonimiškumas: atsiskaitant skaitmeniniais pinigais, neturi būti reikalinga informacija apie mokėtojus


Bandymų sukurti virtualią valiutą buvo dar 1990-aisiais, tačiau šie nepasiteisino, nes buvo priklausomi ir negalėjo užtikrinti esminės paskirties – visiško nepriklausomumo, nuo vyriausybių, centrinių bankų ar kitų finansinių organizacijų. 2008m. Lapkričio 1d. anonimas pseudonimu Satoshi Nakamoto paskelbė rašto darbą, kuriame išdėstė kaip P2P protokolo pagrindu gali funkcionuoti virtuali valiuta, iš vienos pusės apsaugota nuo infliacijos, bei iš kitos – apsaugota nuo padirbinėjimo. Bitcoin vertė iš pradžių buvo niekinė, 2009m. ir 2010m. jie buvo neverti nieko, 2010m. balandžio mėnesį laikėsi žemiau $0.14. Vėliau atsiradus susidomėjimui ir dėka tuo metu nedidelės pasiūlos – BTC vertė pradėjo kilti ir 2011m. vasarį trumpam šoktelėjo iki $1.06 ir netrukus nusistovėjo ties $0.87. Tačiau informacijai plintant – kriptografinė-valiuta vis pritraukdavo daugiau susidomėjimo ir paklausos. 2013 m gruodį bitcoin vertė buvo viršijusi $1000. Vėliau kaina krito per pus užsidarius vienai iš populiariausiu keityklų Mt.Gox taip pat prie kainos kritimo prisidėjo Kinijos sankcijų įvedimas (5.1 pav). Rašant šį darbą, bitcoin vertė apytiksliai siekia 1200 litų.
5 .17 pav. Bitcoin vertė doleriais 2013-2014 metais


    1. Pinigų funkcijos ir charakteristikos



Literatūroje pinigų sąvoka paprastai apibūdinama taip:
  • Pinigai – tai tarpininkas tarp pirkėjo ir pardavėjo.
  • Pinigai – turtas, kuris yra paprastai priimtas sandoriuose arba skolų aprūpinimui.
  • Pinigai – prekių mainų produktas.
  • Pinigai – bet koks tarpininkas, paprastai naudojamas perkant prekes/paslaugas.
  • Pinigai – visuotinės vertės ekvivalentas, atliekantis mainų, kaupimo, vertės mato, cirkuliacijos ir mokėjimo priemonių funkciją.
Pinigai turi būti:
  • Stabilūs – turi išlaikyti vertę.
  • Portatyvūs – pinigai turi būti lengvi, nedideli, patogūs.
  • Tvarūs - pinigams pasirinktoji medžiaga turi būti atspari dėvėjimuisi.
  • Vienarūšiai – vienodos nominalios vertės pinigai turi būti tokios pačios vertės.
  • Dalūs - – pinigai turi būti skaidomi smulkiomis dalimis, kad būtų galima atiduoti grąžą.
  • Atpažinūs – pinigai turi būti lengvai atpažįstami ir sunkiai suklastojami.


    1. Virtuali valiuta


Virtuali valiuta – tai nereglamentuoti skaitmeniniai pinigai, kuriuos galima naudoti kaip
atsiskaitymo priemonę, tačiau šiuos pinigus į apyvartą išleidžia ir garantuoja ne centrinis bankas.


Skaitmeninės valiutos atsirasdavo ir pradingdavo nuo pat tinklo vystymosi pradžios. Dauguma skaitmeniniu valiutų tai egzistuojančiu tikrų valiutų atvaizdavimas skaitmeninėje erdvėje, prisiminkite Facebook kreditus, skaitmeninę valiutą, leidžiančią jums pirkti virtualias prekes servisuose arba Microsoft taškus ar kompiuterinių žaidimų auksą.
Tačiau skirtingai nuo grynųjų pinigų, skaitmeninei valiutai iki šiol reikėjo tarpininko transakcijų tvarkymui. Visa tai buvo dėl vieno svarbiausio skirtumo tarp dviejų valiutų: jeigu jūs mokate 100 eurų kupiūra, tai jos daugiau nebeturite. Tačiau, jeigu jūsų grynieji pinigai yra nuliai ir vienetai, tai jūs tuo ne visai esate tikras. Todėl patikimas tarpininkas buvo reikalingas tam, kad nuimti sumą nuo sąskaitos to, kuris moka ir įdėti į sąskaitą to, kuriam mokama.

    1. Virtualių valiutų klasifikavimas



Virtualios valiutos, jų veikimo principai
(Europos bankininkystės institucija, 2013 m.).
Europos Centrinis Bankas, 2012 m. išleistoje ataskaitoje „Virtualių valiutų schemos“, išskyrė tris
virtualių valiutų rūšis pagal jų sąveiką su realiąja valiuta ir realiąja ekonomika:
1. Uždaros virtualios valiutos (angl. closed virtual currency schemes ). Tokios valiutos
dažniausiai neturi jokio ryšio su realiąja ekonomika ir naudojamos virtualioje erdvėje :
virtualioms prekėms ir paslaugoms įsigyti. Tokia valiuta neturėtų būti prekiaujama už virtualios
bendruomenės ribų.
2. Virtualios valiutos su vienos krypties srautu (angl. virtual currency schemes with
unidirectional flow ). Virtualią valiutą galima įsigyti naudojant realią valiutą tam tikru kursu,
tačiau negalimas atgalinis keitimas. Tokios rūšies pinigais galima atsiskaityti už virtualias prekes
ir paslaugas, tačiau kartais įmanoma įsigyti realių prekių ir paslaugų.
3. Virtualios valiutos su dviejų krypčių srautu (angl. virtual currency schemes with
bidirectional flow ). Šias valiutas galima pirkti (parduoti) kaip ir bet kokią kitą realią valiutą.
Naudojantis tokiais virtualiais pinigais galima atsiskaityti tiek už virtualias, tiek už realias prekes
ir paslaugas.
Prie trečios rūšies virtualių valiutų galima priskirti naujos kartos decentralizuotas, tiesioginio
apsikeitimo tarp vartotojų (angl. peer-to-peer ) modelio virtualias valiutas, kurios dažnai dar
vadinamos kriptografinėmis elektroninėmis valiutomis (angl. crypto currency ). Šiuo metu


  1. DARBO REZULTATAI IR JŲ APTARIMAS. IŠVADOS IR REKOMENDACIJOS



Darbe apžvelgėme Bitcoin tinklo architektūrą, kaip generuojami blokai, skaitmeninių parašų schemos, kaip vyksta pavedimai. Projektinėje dalyje buvo paleista kriptovaliuta tesnet režimu. Sugeneruotas Pradžios blokas, sujungti klientai į peer-to-peer tinklą.
Bitcon naudoja, darbo įrodymo sistemą, užtikrinant tinklo saugumą. Pradžios blokas- tai blokų grandinės atskaitos taškas, nuo kurio pradedami generuoti nauji blokai. Bitcoin nėra visiškai anononimiški. Kiekvienas Bitcoin savininkas turėtų rūpestingai elgtis su elektroniniais pinigais, turėti atsargines kopijas, privatų raktą užkoduoti.
Bitcoin yra pakankamai nauja sąvoka. Pradedant nagrinėti protokolą pasidaro painu dėl aiškios dokumentacijos nebuvimo. Viena didžiausių problemų, su kuria buvo susidurta projekte, tai, jog Bitcoin nėra detaliai aprašytas akademiniuose darbuose, kadangi yra visai naujas reiškinys, nėra aiškiai ir detaliai susistemintos informacijos. Bitcoin patraukia savo lankstumu, paprastumu ir atvirumu ir suteikia vilties, matant kaip sparčiai kuriamos naujos modifikuotos sistemos..






  1. INFORMACIJOS ŠALTINIAI



  1. Nakamoto.Satoshi „Bitcoin A Peer to-Peer Electronic Cash System“ 2008 – Tai buvo pirmasis veikalas aprašęs Bitcoin sistemą.
  2. Ilya Mironov „ Hash functions: Theory, attacks, and applications“ 2005 –Maišos funkcijos.
  3. https://blockchain.info -Svetainė buvo naudojama blokų grandinės pavedimų analizei.
  4. https://en.bitcoin.it/wiki/Protocol_specification -Naudota informacija gilinantis į bitcoin protokolą.
  5. http://www.tinklusaugumas.lt/cgi-bin/moin.py/Elliptc%20Curve%20Cryptography – Paaiškinimai apie elipsinės kreivės kriptografija.
  6. http://www.oksl.ktu.lt/studijos/T120B129/skaidres/04-maisa.pdf - Apžvelgtos kriptografinės maišos funkcijos.
  7. http://online.wsj.com/article/SB10001424127887323687604578469012375269952.html -Straipsnis apie tai kaip bitcoin pritraukia pinigus.
  8. https://en.bitcoin.it/wiki/Vocabulary - Svetainėje pateiktas Bitcoin terminų paaiškinimas.
  9. https://en.bitcoin.it/wiki/Target - Svetainėje pateikti bitcoin žinučių protokolo paaiškinimai
  10. https://bitcoin.stackexchange.com/questions/21303/creating-genesis-block - Svetainėje pateikiamas pradžios bloko kūrimo paaiškinimas tesnet režime
  11. https://bitcointalk.org/index.php?topic=225690.0 –Forume pateikiamas aprašas apie alternatyvios monetos kūrimą.

Etiketės