KR20030060465A - Digital cyber-lottery transmitting data format - Google Patents

Digital cyber-lottery transmitting data format Download PDF

Info

Publication number
KR20030060465A
KR20030060465A KR1020020001180A KR20020001180A KR20030060465A KR 20030060465 A KR20030060465 A KR 20030060465A KR 1020020001180 A KR1020020001180 A KR 1020020001180A KR 20020001180 A KR20020001180 A KR 20020001180A KR 20030060465 A KR20030060465 A KR 20030060465A
Authority
KR
South Korea
Prior art keywords
lottery
data
information
format
data format
Prior art date
Application number
KR1020020001180A
Other languages
Korean (ko)
Inventor
안광림
노윤호
서범민
Original Assignee
소프트포럼 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 소프트포럼 주식회사 filed Critical 소프트포럼 주식회사
Priority to KR1020020001180A priority Critical patent/KR20030060465A/en
Publication of KR20030060465A publication Critical patent/KR20030060465A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/34Betting or bookmaking, e.g. Internet betting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/005Generating random numbers; Lottery apparatus with dispensing of lottery tickets

Abstract

PURPOSE: A data format for transmitting a digital electronic lotto is provided to improve reliability for a digital lotto service through the Internet with high reliability by using an exclusive transmission data format and a protocol between servers. CONSTITUTION: The data format includes a tag field region discriminating an application program according to a fixed header text string, a value field region including the actual data operated by the application program discriminated by the tag field region, and a length field region expressing a total size of the value field region. The total length of the transmission data format is arranged by the multiple numbers of 4bytes.

Description

디지털 전자 복권 전송 데이터 포맷{Digital cyber-lottery transmitting data format}Digital electronic lottery transmission data format

본 발명은 전송 데이터 포맷에 관한 것으로 특히 인터넷과 같은 통신망을 통한 디지털 전자복권 서비스에 보다 높은 신뢰성의 부여가 가능하도록 한 디지털 전자 복권 전송 데이터 포맷에 관한 것이다.The present invention relates to a transmission data format, and more particularly, to a digital electronic lottery transmission data format capable of providing higher reliability to a digital electronic lottery service through a communication network such as the Internet.

일반적으로 복권의 게임방식에는 크게 추첨식 복권 게임과 즉석식 복권 게임이 있다.In general, the game system of the lottery is largely a lottery lottery game and an instant lottery game.

보다 상세하게 추첨식 복권 게임으로는 복권번호가 미리 명시된 복권표를 구매자가 구매하면 일정일에 실시되는 추첨을 통해 그 복권표에 명시된 복권번호가 당첨되었을 경우 해당 복권 당첨금을 지급하는 번호방식과, 복권 구매시 구매자가 원하는 복권번호를 선택하면 추첨을 통해 그 구매자가 선택한 번호가 당첨되었을 경우 해당 복권 당첨금을 지급하는 로또방식이 있다.More specifically, the lottery lottery game is a number system that pays the lottery winnings when the lottery number specified in the lottery ticket is won through a lottery that is executed on a certain day when the buyer purchases a lottery ticket with the lottery number specified in advance. When a buyer selects a desired lottery number at the time of purchase, there is a lottery method that pays the lottery winnings when the number selected by the buyer is won through a lottery.

이러한 추첨식 복권 게임방식을 운용하는데는 누구나 인정하는 공정한 추첨방식을 제공하여야 한다.In order to operate the lottery lottery game method, a fair lottery method should be provided.

다음 즉석식 복권 게임으로는 구매 즉시 확률적으로 추첨하는 랜덤(random)방식과, 각 등위의 당첨자 수를 미리 정해두고 구매시 확률적으로 추첨하는 풀(pool)방식과, 미리 일정한 수량의 복권표를 발권하고 그 발권된 복권을 데이터베이스(database)에 전자적으로 저장한 후 구매자의 요청이 있을 시에 순차적으로 판매하는 스크랫치(scratch)방식이 있다.In the next instant lottery game, a random method of randomly drawing a prize immediately after purchase, a pool method of randomly drawing a winner with a predetermined number of winners, and a predetermined number of lottery tickets in advance There is a scratch method that stores the ticketed tickets electronically in a database and sells them sequentially when requested by a buyer.

이러한 즉석식 복권 게임 방식들 중에 랜덤방식과 풀방식은 온라인(on-line)에서만 운용될 수 있으며, 그에 비해 스크랫치방식은 오프라인(off-line)에서 더욱 효율적으로 운용될 수 있다. 이와 같은 즉석식 복권 게임들은 사용자가 복권을 구매할 때 실시간 추첨을 통해 당첨여부를 결정하며, 당첨금을 이월하는 구조로 운용하기 어렵기 때문에 고액 당첨자가 나오기 힘들다. 특히 온라인에서의 운용이 용이하여 최근 인터넷과 같은 통신망을 통한 전자복권 서비스에 많이 적용된다.Among the instant lottery game methods, the random method and the full method can be operated only on-line, whereas the scratch method can be operated more efficiently off-line. Such instant lottery games determine whether the user wins through a real-time lottery when purchasing a lottery ticket, and it is difficult for a large amount of winners to come out because it is difficult to operate in a structure that carries forward the winnings. In particular, since it is easy to operate online, it is widely applied to electronic lottery services through communication networks such as the Internet.

기존에는 상기에서 나열된 여러 복권의 게임방식들이 네트워크(인터넷, 온라인 또는 무선통신망)에 기반하여 서비스되었다.In the past, the game systems of various lotteries listed above were serviced based on a network (Internet, online or wireless communication network).

그러나 기존의 여러 복권 게임 서비스들은 보안과 신뢰성에 많은 문제를 안고 있기 때문에, 네트워크상의 정보를 보호하기 위한 암호화 기술, 전자서명 및 그에 관련된 보안 표준들을 적용하고 있는 실정이다. 그러나 네트워크상의 여러 게임 서비스들이 온라인 상에서 안전하게 운용하기 위해서는 보다 확고한 다음의 보안 요구사항들을 만족하여야 한다.However, because many existing lottery game services have a lot of problems with security and reliability, they are applying encryption technology, digital signature, and related security standards to protect information on the network. However, several game services on the network must meet the following security requirements in order to operate safely online.

첫 째, 위조 및 복제를 방지해야 한다. 즉 구매자가 당첨된 복권표를 복제하여 2중으로 당첨금을 수령할 수 없도록 해야 한다는 것이다. 혹은 제3자가 타인의 복권표를 가로채거나 복제할 수 없도록 해야 한다는 것이다.First, counterfeiting and duplication must be prevented. In other words, the buyer should not be able to receive the winnings in duplicate by duplicating the winning lottery ticket. Or they should not allow third parties to intercept or duplicate another person's lottery ticket.

둘 째, 발권되는 복권의 내용(복권정보 : information = data)을 예측할 수 없도록 해야 한다는 것이다. 이에 대해서는 복권 서비스를 제공하는 서버측의 관리자도 예측할 수 없도록 해야 한다.Second, the contents (lottery information: data) of the lottery ticketed should be unpredictable. In this regard, the server side administrator who provides the lottery service should be unpredictable.

세 째, 복권 구매자가 복권표를 구매한 다음에 발권자가 그 복권표의 판매사실을 부인할 수 없도록 해야 한다는 것이다. 반대로 복권 구매자가 복권표를 구매한 다음에 그 복권표의 구매사실을 부인할 수 없도록 해야 한다는 것이다.Third, after the lottery buyer purchases the lottery ticket, the issuer must not deny the sale of the lottery ticket. Conversely, a lottery buyer should not be able to deny the purchase of the lottery ticket after purchasing it.

네 째, 복권 발권시에 사용되는 난수 생성 모듈(random generating module)이 구매자측이나 서버 관리자측에서 모두 예측할 수 없는 난수를 생성할 수 있도록 해주는 검증된 순수 난수 생성기가 구비되어야 한다는 것이다. 이는 특히 즉석식복권 게임 서비스를 운용하는데 적용된다.Fourth, the random number generating module used in the lottery ticketing should be equipped with a proven pure random number generator that can generate unpredictable random numbers on both the buyer side and the server administrator side. This is especially true for running instant lottery game services.

다섯 째, 보다 철저한 시스템 보안 및 정보 보안이 요구된다. 시스템 보안은 컴퓨터 시스템의 운영체계 및 응용프로그램, 그리고 서버 등의 보안 허점을 뚫고 불법 사용자가 침입하여, 그 컴퓨터 시스템을 불법으로 이용하는 것을 방지하는 것이고, 정보 보안은 컴퓨터 시스템 내부에 들어있는 정보(information=data)를 보호하는 것으로, 특히 네트워크 상으로 전송되고 있는 정보를 중간에 가로채거나, 몰래 수정한 뒤에 재전송하는 등의 불법행위를 방지하여, 정보를 보다 안전하고 신뢰성있게 전달하기 위한 것이다. 따라서 종래에 네트워크(인터넷, 온라인 또는 무선통신)로 전송되는 암호화되지 않은 모든 정보가 불법 사용자인 해커(hacker)에 의해 도청될 가능성이 많다는 점과, 또는 외부의 해커가 마치 내부의 인증 받은 컴퓨터에서 접근한 것처럼 속일 가능성이 있다는 점에서, 시스템 공격자(hacker)가 서비스 시스템 및 정보를 임의대로 제어할 수 없도록 해야 한다. 물론 서비스 시스템을 운용하는 관리자측에서 그 서비스 시스템 및 정보를 임의대로 제어할 수 없도록 해야 한다는 것이다.Fifth, more thorough system security and information security are required. System security is to prevent illegal users from entering the system through the operating system and application programs of the computer system and security holes, and to use the computer system illegally. Information security is the information contained within the computer system. = data) to prevent information from being illegally intercepted or retransmitted after secretly correcting information that is being transmitted over the network, thereby delivering information more safely and reliably. Therefore, all unencrypted information conventionally transmitted over a network (Internet, online or wireless communication) is likely to be eavesdropped by a hacker who is an illegal user, or an external hacker can In the sense that there is a possibility to be deceived as if approached, the system hacker should not be able to control the service system and information at will. Of course, the administrator who operates the service system should not be able to control the service system and information arbitrarily.

여섯 째, 복권정보의 암호화 및 전자서명에 사용되는 키(key)가 노출되지 않도록 키 관리 및 보안이 요구된다는 것이다.Sixth, key management and security are required so that a key used for encryption and digital signature of lottery information is not exposed.

그러나 기존에는 상기한 보안 요구사항들에 대응되는 여러 불법사항들이 항상 존재한다는 문제가 있다.However, there is a problem that there are always various illegal items corresponding to the above security requirements.

결국 점진적으로 그 응용의 폭이 확대되고 있는 디지털 전자복권 게임 서비스에 대해, 그 디지털 전자복권의 네트워크를 통한 발권, 발매 및 추첨의 보다 확고한 신뢰성이 요구되고 있는 실정이다.As a result, the digital electronic lottery game service, which is gradually expanding its application, is required to have more reliable reliability of ticketing, release, and drawing through the digital electronic lottery network.

특히 인터넷, 온라인 또는 무선통신망을 통해 서비스 가능한 디지털 전자복권의 발권, 발매 및 추첨에 대해 보다 확고한 신뢰성을 부여해 줄 수 있도록 해주는 디지털 전자복권의 토탈 운영 솔루션이 요구된다.In particular, there is a need for a total operation solution of digital electronic lottery, which can provide more reliable reliability for ticketing, release and lottery of digital electronic lottery that can be serviced through internet, online or wireless communication network.

본 발명의 목적은 상기한 점들을 감안하여 안출한 것으로, 특히 오프라인(off-line)에서 서비스되었던 다양한 복권 게임들을 온라인(on-line) 상에서 안전하게 수행되도록 하기 위하여 서버간에 전용 전송 데이터 포맷 및 프로토콜을 사용함으로써, 인터넷과 같은 통신망을 통한 디지털 전자복권 서비스에 보다 높은 신뢰성을 부여해주는 디지털 전자 복권 전송 데이터 포맷을 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention has been made in view of the above points, and in particular, a dedicated transmission data format and a protocol between servers are securely implemented to enable various lottery games that have been serviced off-line to be performed safely on-line. The present invention provides a digital electronic lottery transmission data format that provides higher reliability to digital electronic lottery services through a communication network such as the Internet.

이와 같은 목적을 달성하기 위한 본 발명 일 특징에 따르면, 설정된 헤더 문자열에 따라 응용 프로그램을 구분하는 태그(TAG) 필드 영역과, 상기 태그 필드 영역에 의해 구별된 응용 프로그램에 의해 동작되는 실제 데이터를 포함하는 밸류 필드 영역을 기본으로 포함하고, 상기 밸류 필드 영역의 전체 크기를 나타내는 길이 필드 영역을 선택적으로 포함한다.According to an aspect of the present invention for achieving the above object, it includes a tag (TAG) field area for distinguishing the application program according to the set header string, and the actual data operated by the application program distinguished by the tag field area And a length field area indicating a total size of the value field area.

바람직하게 상기 전송 데이터 포맷의 전체 길이는 4바이트의 배수로 정렬된다.Preferably the total length of the transmission data format is aligned in multiples of 4 bytes.

바람직하게 상기 전송 데이터 포맷은 2바이트 태그 필드 영역과 2바이트 밸류 필드 영역으로 구성되거나, 4바이트 태그 필드 영역과 4바이트 밸류 필드 영역으로 구성된다.Preferably, the transmission data format includes a 2 byte tag field area and a 2 byte value field area, or a 4 byte tag field area and a 4 byte value field area.

바람직하게, 상기 전송 데이터 포맷은 2바이트 태그 필드 영역과 2바이트 길이 필드 영역 및 4바이트 배수의 밸류 필드 영역으로 구성되거나, 4바이트 태그 필드 영역과 4바이트 길이 필드 영역 및 4바이트 배수의 밸류 필드 영역으로 구성된다.Preferably, the transmission data format is composed of a 2-byte tag field area, a 2-byte length field area, and a 4-byte value field area, or a 4-byte tag field area, a 4-byte length field area, and a 4-byte value field area. It consists of.

바람직하게 상기 밸류 필드 영역이 정수로 구성되는 경우 상기 전송 데이터 포맷에 상기 길이 필드 영역이 포함되지 않고, 상기 밸류 필드 영역이 문자열을 포함하는 경우 상기 전송 데이터 포맷에 상기 길이 필드 영역이 포함된다.Preferably, when the value field area is an integer, the length field area is not included in the transmission data format, and when the value field area includes a character string, the length field area is included in the transmission data format.

바람직하게 상기 태그 필드 영역에 디지털 전자 복권 구매 요청에 해당하는 문자열 데이터를 포함하고, 상기 밸류 필드 영역에 상기 디지털 전자 복권 전송 데이터 포맷의 버전 정보와 복권 타입 정보, 상기 복권의 판매대행서버 정보, 상기 복권을 구매한 사용자 정보, 상기 복권의 발권 기관 정보, 상기 복권의 등위 상금 포인트 상품 등 프라이즈 정보, 상기 복권 구매자의 시간 날인 토큰 정보(옵션), 게임 정보, 보안 정보 데이터들이 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보 데이터가 포함된다.Preferably, the tag field region includes string data corresponding to a digital electronic lottery purchase request, and the value field region includes version information and lottery type information of the digital electronic lottery transmission data format, sales agent server information of the lottery, and User information that purchased the lottery ticket, ticketing authority information of the lottery, prize information such as prize money prize prize of the lottery, time stamp token information (optional) of the lottery buyer, game information, security information data, and the length field The area includes full length information data of the information data of the value field area.

바람직하게 상기 태그 필드 영역에 디지털 전자 복권 구매 요청에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 상기 실제 복권 구매자 또는 은닉 복권 구매자 정보, 상기 디지털 전자 복권 판매대행서버 정보, 발권 추적을 위한 고유의 시리얼 정보, 상기 은닉 복권 구매자 정보의 버전 정보, 상기 복권 구매자의 사용자 식별자 정보, 상기 복권 구매자의 등록 식별자 정보, 상기 복권 판매자 식별자 정보, 구매 요청 시간 날인 값 정보, 난수 시드 데이터(옵션), 상기 판매대행서버의 시간 문자열 정보, 상기 복권이 즉석식이냐 추첨식이냐 하는 정보, 서명자 인증 정보, 서명에 사용된 알고리즘 식별자 정보 데이터들이 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보가 포함된다.Preferably, the tag field region includes a string corresponding to a digital electronic lottery purchase request, and the value field region includes the actual lottery buyer or hidden lottery buyer information, the digital electronic lottery sales agent server information, and a unique tracking for ticketing. Serial information, version information of the hidden lottery buyer information, user identifier information of the lottery buyer, registration identifier information of the lottery buyer, the lottery seller identifier information, purchase request time stamp value information, random seed data (optional), the sale Time string information of the proxy server, information on whether the lottery is an instant or lottery, signer authentication information, and algorithm identifier information data used for signing are included, and the total length information of the information data of the value field area is included in the length field area. Included.

바람직하게 상기 태그 필드 영역에 디지털 전자 복권 발권 관리에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 발권 요청, 복권 확인, 복권 조회 요구, 리포트 및 복권 당첨자 조회 정보 데이터가 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보가 포함된다.Preferably, the tag field region includes a string corresponding to digital electronic lottery ticketing management, the value field region includes a ticket request, lottery confirmation, lottery inquiry request, report and lottery winner inquiry information data, and the length field region. The full length information of the information data of the value field area is included.

바람직하게 상기 태그 필드 영역에 서버 관리 프로토콜에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 서버 제어, 로그/리포트 제어 및 스코어보드 제어 데이터가 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 서버 제어, 로그/리포트 제어 및 스코어보드 제어 데이터들의 전체 길이 정보가 포함된다.Preferably, the tag field area includes a string corresponding to a server management protocol, the value field area includes server control, log / report control, and scoreboard control data, and the length field area includes the value of the value field area. Full length information of server control, log / report control and scoreboard control data is included.

도 1은 본 발명에 따른 디지털 전자 복권 전송 데이터 포맷의 기본 구조를 설명하기 위한 도면1 is a view for explaining the basic structure of the digital electronic lottery transmission data format according to the present invention

도 2는 본 발명 제 1 실시예에 따른 전송 데이터 포맷을 설명하기 위한 도면2 is a diagram for describing a transmission data format according to the first embodiment of the present invention.

도 3은 본 발명 제 2 실시예에 따른 전송 데이터 포맷을 설명하기 위한 도면3 is a diagram for describing a transmission data format according to a second embodiment of the present invention.

도 4는 본 발명 제 3 실시예에 따른 전송 데이터 포맷을 설명하기 위한 도면4 is a diagram for describing a transmission data format according to a third embodiment of the present invention.

도 5는 본 발명 제 4 실시예에 따른 전송 데이터 포맷을 설명하기 위한 도면5 is a diagram for describing a transmission data format according to a fourth embodiment of the present invention.

도 6은 본 발명 디지털 전자 복권 전송 데이터 포맷의 태그 범위(TAG range)와 지원되는 태그(TAG)의 개수를 설명하기 위한 도면FIG. 6 is a diagram illustrating a tag range and the number of tags supported in the digital electronic lottery transmission data format of the present invention.

도 7은 본 발명 디지털 전자 복권 전송 데이터 포맷을 적용한 디지털 전자 복권 서비스 시스템을 나타낸 도면7 illustrates a digital electronic lottery service system to which the present invention digital electronic lottery transmission data format is applied.

이하 본 발명에 따른 디지털 전자 복권 전송 데이터 포맷을 첨부된 도면을 참조하여 설명하기로 한다.Hereinafter, a digital electronic lottery transmission data format according to the present invention will be described with reference to the accompanying drawings.

도 1은 본 발명에 따른 디지털 전자 복권 전송 데이터 포맷을 설명하기 위한 도면이다.1 is a view for explaining a digital electronic lottery transmission data format according to the present invention.

우선 본 발명에 따른 전송 데이터 포맷은 STLV(Softforum Tag Length Value) 포맷이라 한다.First, the transmission data format according to the present invention is referred to as softforum tag length value (STLV) format.

여기서 STLV는 태그(Tag), 길이(Length) 및 밸류(Value)를 필요에 따라 하나의 데이터(data) 단위로 사용하는 데이터 인코딩(data encoding) 방법으로써, STLV 패킷(packet)은 도 1에 나타낸 바와 같이 태그(TAG) 필드와, 길이(Length)필드(옵션) 및 길이 필드에서 정의된 만큼 확장 가능한 밸류(Value)(specified in Length) 필드로 구성된다.The STLV is a data encoding method using a tag, a length, and a value as one data unit as needed. The STLV packet is shown in FIG. As shown, the TAG field includes a TAG field, a length field (optional), and a value in value field that is extended as defined in the length field.

즉 밸류(Value) 필드의 크기는 길이 필드에서 정의된 만큼 확장이 가능하다. 또한 밸류 필드의 값은 정수(integer), 문자열(string) 등의 데이터 타입(data type) 뿐만 아니라 또 다른 STLV 데이터(data)를 포함할 수 있는데, 서로 다른 응용 프로그램의 데이터(data) 교환시 이해하지 못하는(예를 들면 버전이 다르거나, 전송 속도의 저하방지 등을 위해 이해할 필요가 없는) 태그(TAG) 필드가 포함되어 있는 경우에는 해당 STLV를 무시하고 다음 STLV 데이터(data)를 처리한다. 따라서 프로그램의 에러 처리를 훨씬 더 유연하게 구현할 수 있다.That is, the size of the value field can be extended as defined in the length field. In addition, the value of the value field can include not only data types such as integers and strings, but also other STLV data, which are understood when exchanging data between different applications. If a TAG field is included that cannot be understood (e.g. different versions or need not be understood in order to prevent a drop in transmission speed), the corresponding STLV is ignored and the next STLV data is processed. This makes the program's error handling much more flexible.

여기서 STLV는 다음과 같은 특징을 지닌다.Here, STLV has the following characteristics.

첫 번째는 4 바이트(bytes)로 정렬(alignment)되어 있는 포맷이다.The first format is aligned with 4 bytes.

즉 데이터 인코딩/디코딩(data encoding/decoding) 시 고속 처리 및 버스 에러(bus error)를 회피하기 위하여 하나의 STLV 데이터의 길이는 4 바이트의 배수가 된다. 만약 밸류(value) 필드가 문자열(string)이나 바이너리 데이터(binary data)여서 정확히 4 바이트의 배수가 아닐 경우 밸류 필드 역시 4바이트가 되도록 패딩(padding) 한다.That is, in order to avoid high speed processing and bus error during data encoding / decoding, the length of one STLV data is a multiple of 4 bytes. If the value field is a string or binary data and is not a multiple of exactly 4 bytes, the value field is also padded to 4 bytes.

두 번째는 길이 필드(Length field)가 없는 데이터 포맷(data format)을 지원한다.The second supports a data format without a length field.

즉, 정수 값(Integral value)의 경우 길이 필드(Length field)를 생략하여 데이터(data)의 전송량을 줄인다.That is, in the case of integral value, the length field is omitted to reduce the amount of data transmission.

본 발명에 따른 STLV 전송 데이터 포맷 구조는 도 2 내지 도5에 나타낸 바와 같이 4가지 중 하나의 구조를 갖는다.The STLV transmission data format structure according to the present invention has one of four structures as shown in FIGS.

여기서 도 2는 본 발명 제 1 실시예에 따른 전송 데이터 포맷 구조이고, 도 3은 본 발명 제 2 실시예에 따른 전송 데이터 포맷 구조이며, 도 4는 본 발명 제 3 실시예에 따른 전송 데이터 포맷 구조이고, 도 5는 본 발명 제 3 실시예에 따른 전송 데이터 포맷 구조이다.2 is a transmission data format structure according to the first embodiment of the present invention, FIG. 3 is a transmission data format structure according to the second embodiment of the present invention, and FIG. 4 is a transmission data format structure according to the third embodiment of the present invention. 5 is a transmission data format structure according to the third embodiment of the present invention.

도 2와 도 4는 각각 2바이트 정수 데이터(2-byte integral data)와 4바이트 정수 데이터(4-byte integral data) 포맷 구조이고, 도 3과 도 5는 각각 짧은 문자열(Short string)과 긴 문자열(Long string)이 포함되는 데이터를 전송하기 위한 데이터 포맷 구조이다. 이때 도 3과 도 5의 밸류 필드에 포함되는 문자열 데이터는 그 길이가 가변적이므로, 길이 필드에 밸류 필드의 길이에 대한 정보가 포함된다. 그러나 도 2 및 도 4에 나타낸 2바이트 및 4바이트 정수 데이터 포맷에는 길이 필드가 필요 없다. 그리고 태그의 T0의 값은 0x00이 아닌 값이어야 한다.2 and 4 are 2-byte integral data and 4-byte integral data format structures, respectively. FIGS. 3 and 5 are short strings and long strings, respectively. Data format structure for transmitting data including (Long string). In this case, since the length of the character string data included in the value field of FIGS. 3 and 5 is variable, the length field includes information about the length of the value field. However, the 2-byte and 4-byte integer data formats shown in Figs. 2 and 4 do not require a length field. And the value of tag's T0 should be other than 0x00.

이하에서 도 2의 전송 데이터 포맷을 INT2(2-byte integral data)라 하고, 도 4의 전송 데이터 포맷을 INT4(4-byte integral data)라 하며, 도 3의 전송 데이터 포맷을 STR(short STRing)이라 하고, 도 5의 전송 데이터 포맷을 LSTR(Long STRing)이라 한다.Hereinafter, the transmission data format of FIG. 2 is referred to as INT2 (2-byte integral data), the transmission data format of FIG. 4 is referred to as INT4 (4-byte integral data), and the transmission data format of FIG. 3 is referred to as STR (short STRing). This transmission data format of FIG. 5 is called LSTR (Long STRing).

이와 같은 4가지 포맷 구조를 갖는 본 발명 STLV의 포맷 인코딩(formatencoding)은 인코딩 방법에 따른 태그(TAG)의 범위(range)만 정의하며, 구체적인 태그(TAG)의 의미는 응용 프로그램의 프로그래머가 필요에 따라 후술하는 실시예에서와 같이 정의하여 사용한다The format encoding of the STLV of the present invention having such four format structures defines only a range of a tag according to an encoding method, and the meaning of a specific tag is required by an application programmer. Accordingly used as defined in the following examples.

이와 같은 STLV 데이터가 전송되는 경우 이를 수신하는 응용 프로그램에 따라 데이터의 의미를 다르게 해석할 수 있으므로, STLV 스트림(stream)의 맨 앞 4 바이트(bytes)에 특정한 헤더 문자열(header string)을 넣어 응용 프로그램을 구분한다.If such STLV data is transmitted, the meaning of the data may be interpreted differently depending on the application program receiving the STLV data. Therefore, a specific header string is inserted into the first 4 bytes of the STLV stream. Separate

본 발명 STLV 포맷(format)의 태그(TAG) 범위(range)와 지원되는 태그(TAG)의 개수는 도 6에 나타낸 바와 같다.The tag TAG range and the number of tags supported in the STLV format of the present invention are shown in FIG. 6.

본 발명에 따른 STLV 모듈에서 제공하는 밸류 필드는 크게 문자열 타입(String type)과 4바이트의 바이너리 타입(Binary type)(즉, 정수 데이터)타입으로 구분할 수 있으며, 문자열 타입(String Type)은 밸류(value) 필드의 중간에는 널(NULL(0x00)) 문자(character)를 포함하지 않고 맨 마지막 바이트(byte)를 0x00으로 끝낸다.The value field provided by the STLV module according to the present invention can be largely classified into a string type and a 4-byte binary type (ie, integer data) type, and the string type is a value ( The middle of the value field does not contain a null (0x00) character and the last byte ends with 0x00.

그리고 바이너리 타입은 밸류 필드의 중간에 널(NULL(0x00)) 문자(character)를 포함하고, 맨 마지막 바이트(byte)에 0x00으로 끝내지 않는다.The binary type includes a null (0x00) character in the middle of the value field and does not end with 0x00 in the last byte.

도 7은 본 발명 디지털 전자 복권 전송 데이터 포맷을 적용한 디지털 전자 복권 서비스 시스템을 나타낸 도면이다.7 is a diagram illustrating a digital electronic lottery service system to which the present invention digital electronic lottery transmission data format is applied.

도 7을 참조하면, 본 발명의 디지털 전자복권 게임 운용 시스템은, 복권서버(lotto server)(30)와, 판매대행서버(sales proxy server)(20)와, 클라이언트 컴퓨터(client PC)(10)와, 로그/리포트 서버(log/report server)(40)로 구성된다. 여기서 판매대행서버(20)가 별도로 구현되는 구조로 도시되었으나 그 판매대행서버(20)가 복권서버(30)에 포함되는 구조로도 구현 가능하다.7, the digital electronic lottery game operating system of the present invention, a lottery server (lotto server) 30, a sales proxy server (sales proxy server) 20, a client computer (client PC) 10 And a log / report server 40. Here, the sales agent server 20 is illustrated as being separately implemented, but the sales agent server 20 may be implemented in a structure that is included in the lottery server 30.

복권서버(30)는 사용자의 요구에 따라 복권 생성 및 검증 서비스를 수행하고, 물리적으로 격리된 장소에 설치되어야 하며, 외부(특히 판매대행서버)와는 본 발명의 복권 게임 서비스 전용 프로토콜(SFLP : SoftForum Lotto Protocol)로만 연동한다.The lottery server 30 performs a lottery generation and verification service according to a user's request, and must be installed in a physically isolated place, and the protocol (SFLP: SoftForum) for the lottery game service of the present invention with an external (particularly a sales agent server). Only with Lotto Protocol).

로그/리포트 서버(Log/Report Server)(40)는 복권서버(30)의 외부에 설치되며, 관리자가 필요한 로그 데이터(Log data)(예로써, 총 당첨매수 및 당첨금 합계)와 리포트(Report)를 기록한다.The log / report server 40 is installed outside the lottery server 30, and the log data (for example, the total number of winnings and the total winnings) and the report required by the administrator are reported. Record it.

판매대행서버(sales proxy server)(20)는 사용자의 회원 등록 및 게임 서비스를 제공하는 서버로써, 사용자의 요청시 복권서버(Lotto Server)(30)에 복권 발권을 요청하고 수신한 복권 데이터(Lotto Data)를 이용하여 복권 게임을 제공한다.Sales proxy server (sales proxy server) 20 is a server that provides the user registration and game services, the lottery data (Lotto Server) request a lottery ticket to the lottery server (Lotto Server) 30 when the user's request (Lotto Data) is used to provide a lottery game.

클라이언트 컴퓨터(client PC)(10)는 데이터 암호화를 위한 암호화모듈(XecureProxy)과 데이터의 전자서명을 위한 서명 툴(XecureSignTool)을 내부에 구비한다. 암호화모듈(XecureProxy)은 인터넷 상의 구간에 송수신되는 데이터들을 암호화하고, 서명 툴(XecureSignTool)은 데이터에 대한 전자서명과 그 서명된 데이터를 이용한 복권 발권 요청을 수행한다. 이와 같은 암호화 모듈, 서명 툴은 판매대행서버(20)에서 클라이언트 컴퓨터(10)로 제공한다.The client PC 10 includes an encryption module (XecureProxy) for data encryption and a signature tool (XecureSignTool) for electronic signature of data therein. The encryption module (XecureProxy) encrypts the data transmitted and received in the interval on the Internet, the signature tool (XecureSignTool) performs a digital lottery ticket request using the digital signature and the signed data. Such an encryption module and signature tool are provided from the sales representative server 20 to the client computer 10.

이와 같은 디지털 전자복권 서비스 시스템의 동작 절차를 설명한다.The operation procedure of the digital electronic lottery service system will be described.

제1단계는 클라이언트 컴퓨터(client PC)(10)에 의한 복권구매요청 단계이다. 제1단계에서 사용자는 판매대행서버(sales proxy server)(20)에 로그온(log on)한다. 그 다음에 사용자는 클라이언트 컴퓨터(client PC)(10)의 내부에 구비된 서명 툴(XecureSignTool)을 이용하여 복권구매요청 메시지를 생성한다.The first step is a request for purchasing a lottery ticket by the client PC 10. In the first step, the user logs on to a sales proxy server 20. The user then generates a lottery purchase request message using a signature tool (XecureSignTool) provided inside the client PC 10.

이후에 상기 생성된 복권구매요청 메시지는 클라이언트 컴퓨터(client PC)(10)에 구비된 암호화모듈(XecureProxy)을 통해 암호화된 상태로 판매대행서버(sales proxy server)(20)에 전달된다.Thereafter, the generated lottery purchase request message is transmitted to the sales proxy server 20 in an encrypted state through an encryption module (XecureProxy) provided in the client computer 10.

다음 제2단계는 복권서버(30)에 의한 복권 발권 단계이다. 제2단계에서 판매대행서버(sales proxy server)(20)는 복권구매요청 메시지(Lotto Request : LR)를 복권서버(30)에 전송한다. 이 때 복권서버(30)는 복권구매요청 메시지(LR)를 이용하여 복권 데이터를 생성한다.The second step is a lottery ticketing step by the lottery server 30. In a second step, a sales proxy server 20 transmits a lotto request LR to the lottery server 30. At this time, the lottery server 30 generates lottery data using the lottery purchase request message LR.

동시에 판매대행서버(sales proxy server)(20)는 복권 데이터(LD)의 사용자 서명에 대한 검증을 수행한 후에 이상이 없으면 복권 구매금액만큼 정산을 한다.At the same time, the sales proxy server 20 performs payment for the lottery purchase amount if there is no error after verifying the user signature of the lottery data LD.

다음 제3단계는 판매대행서버(sales proxy server)(20)에 의한 복권 게임 서비스 단계로써, 판매대행서버(sales proxy server)(20)는 은닉 식별자(Blind Identifier : BID) 정보를 이용하여 게임을 생성하고, 그 생성된 게임을 사용자에게 제공한다. 여기서 즉석식 복권 게임 서비스의 경우에는 바로 게임이 종료되고, 사용자가 당첨되면 당첨금액만큼의 정산을 한다.The next third step is a lottery game service step by a sales proxy server 20, and the sales proxy server 20 uses a blind identifier (BID) information to play a game. Create and provide the created game to the user. Here, in the case of the instant lottery game service, the game ends immediately, and when the user wins, payment is made as much as the winning amount.

다음 제4단계는 추첨식 복권 게임에만 해당되는 단계로써, 복권 확인 단계이다. 이 단계에서 추첨이 끝나고 당첨자가 확정되면, 그 확정된 당첨정보를 복권서버(lotto server)(30)에 업데이트(update)한다. 여기서 복권서버(30)는 구매자의 신원을 알 수 있을 경우에, 그 당첨된 사용자에게 당첨정보를 전달하고, 판매대행서버(20)는 당첨금에 대한 정산을 수행한다. 물론 당첨정보는 낙점된 사용자에게도 선택적으로 전달되며, 그 당첨정보는 전자메일이나 무선통신망을 이용한 단문메시지서비스를 통해 전달된다.The fourth step is a lottery check step only for the lottery game. After the lottery is over in this stage and the winner is confirmed, the determined winning information is updated in the lottery server 30. Here, when the lottery server 30 can know the identity of the buyer, the winning information is delivered to the winning user, and the sales agency server 20 performs the settlement of the winnings. Of course, the winning information is selectively delivered to the failed user, and the winning information is delivered through a short message service using an e-mail or a wireless communication network.

반면에 제4단계에서 구매자의 신원을 알 수 없을 경우에 대해 설명하면, 사용자는 자기의 주민등록번호를 이용하여 판매대행서버(sales proxy server)(20)에 당첨 여부를 조회한다. 그에 따라 판매대행서버(sales proxy server)(20)는 구매자의 주민등록번호와 같은 개인고유식별자와 그 사용자의 복권 데이터를 복권서버(30)에 전달하여 당첨 여부를 조회한다.On the other hand, in the case where the identity of the buyer is not known in the fourth step, the user inquires whether or not to win the sales proxy server 20 using his social security number. Accordingly, the sales proxy server 20 transmits the lottery data of the individual unique identifier such as the purchaser's social security number and the user to the lottery server 30, and inquires whether or not the prize is won.

이후에 복권서버(30)는 구매자의 신원이 일치하고 또한 그 구매자의 당첨 여부를 판매대행서버(sales proxy server)(20)에 전달한다.After that, the lottery server 30 transmits the identity of the buyer and whether the buyer wins the sales proxy server 20.

다음은 본 발명의 복권 게임 서비스 전용 프로토콜(SFLP)에 대해 설명한다.The following describes the lottery game service dedicated protocol (SFLP) of the present invention.

본 발명에서는 복권 게임 서비스를 위한 전용 프로토콜을 사용한다. 그 전용 프로토콜은 복권서버(30)와 외부의 판매대행서버(20)의 교신을 위한 프로토콜로써, 다음의 특징들을 갖는다.In the present invention, a dedicated protocol for the lottery game service is used. The dedicated protocol is a protocol for communication between the lottery server 30 and the external sales agent server 20, and has the following features.

첫 째, 본 발명의 복권 게임 서비스 전용 프로토콜(SFLP)은 데이터 패킷(data packet)의 길이가 짧고 인코딩/디코딩(encoding/decoding)의 확장성이 뛰어나다.First, the lottery game service dedicated protocol (SFLP) of the present invention is short in the length of a data packet and has excellent scalability in encoding / decoding.

둘 째, 복권 게임 서비스 전용 프로토콜(SFLP)을 사용함으로써, 판매대행서버(20)를 개발하는데 있어서, 보다 간단한 개발환경을 제공한다. 또한 복수의 판매대행서버(20)와 손쉽게 연동할 수 있으므로, 확장성이 뛰어나다.Second, by using the lottery game service dedicated protocol (SFLP), in developing the sales agency server 20, a simpler development environment is provided. In addition, since it can be easily interlocked with a plurality of sales agency server 20, it is excellent in scalability.

세 째, 복권 게임 서비스 전용 프로토콜(SFLP)은 복권 판매를 위한 서비스 기능을 제공한다. 즉 복권의 발권, 검증 등의 판매 기능을 수행한다.Third, the lottery game service dedicated protocol (SFLP) provides a service function for lottery sales. In other words, it performs the sales function such as ticketing and verification of the lottery.

네 째, 복권 게임 서비스 전용 프로토콜(SFLP)은 복권서버(30)의 기동/중지(start/stop), 복권의 재충전 등과 같은 복권서버(30)의 관리를 위한 관리기능을 제공한다Fourth, the lottery game service dedicated protocol (SFLP) provides a management function for management of the lottery server 30 such as start / stop of the lottery server 30, recharging the lottery ticket, and the like.

상기와 같은 특징을 갖는 복권 게임 서비스 전용 프로토콜(SFLP)의 메시지 명세(message specification)는 서비스 프로토콜(service protocol)에 의한 메시지들과 관리 프로토콜(administration protocol)에 의한 메시지들로 규정된다.The message specification of the lottery game service dedicated protocol (SFLP) having the above characteristics is defined as messages by a service protocol and messages by an administration protocol.

먼저 서비스 프로토콜에 의한 메시지들로는 복권 발매를 위한 복권발매요구 메시지(lotto request), 구매자의 신원확인을 위한 복권검증요구 메시지(lotto verifying), 복권번호로 복권내역을 조회하는데 사용되는 복권조회요구 메시지(lotto query )가 규정되고, 관리 프로토콜(Administration Protocol)에 의한 메시지들로는 서버의 기동을 위한 서버기동 메시지(server startup), 서버의 기동 중지를 위한 서버중지 메시지(server shutdown), 복권 충전 및 소진을 위한 서버 재중천 메시지(server reload), 로그/리포트 서버(40)에 리포트(report)를 작성하기 위한 서버 리포팅 메시지(server reporting)가 규정된다.First of all, the messages by the service protocol include a lotto request message for lottery release, a lotto verifying message for the purchaser's identity confirmation, and a lottery inquiry request message used for inquiring lottery details by lottery number. lotto query), and messages by the Administration Protocol include server startup messages for server startup, server shutdown messages for server startup, and server shutdown messages for lottery charging and exhaustion. A server reload message, a server reporting message for writing a report to the log / report server 40, is defined.

다음은 구매자가 선택한 복권번호의 복권표가 판매된 후에 추첨을 통해 당첨자와 당첨금을 결정하는 B형식(=lotto type)의 디지털 전자복권 게임 서비스에 대해 설명한다.The following describes the B-type digital lottery game service that determines the winner and the winning prize through the drawing after the lottery ticket of the lottery number selected by the buyer is sold.

본 발명에 따른 B형식의 디지털 전자복권 게임 서비스에서는 사용자가 원하는 복권번호를 선택하고, 그 선택된 복권번호를 전자서명하여 서버측으로 발권을 요청한다.In the digital electronic lottery game service of type B according to the present invention, a user selects a desired lottery number, electronically signs the selected lottery number, and requests a ticket from the server.

이후에 복권서버(Lotto Server)(30)는 발권 요청을 근거로 복권 데이터(Lotto data)를 생성하여 사용자에게 전달한다.Thereafter, the lottery server 30 generates lottery data based on the ticketing request and delivers the lottery data to the user.

일정 시간 이후에 추첨일이 되면, 추첨을 통해 당첨자를 결정한다.If the draw date comes after a certain time, the winner is decided by drawing.

다음에 사용자는 복권번호에 대한 당첨여부 검증을 서버측에 요청하고, 확인 절차를 거쳐 해당 사용자에게 당첨금을 지급한다.Next, the user requests the server side to verify whether or not the lottery number is won, and through the verification process, the user pays the winnings.

특히 본 발명에서 온라인(on-line)을 통해 추첨이 이루어질 경우에는 순수 난수 생성기(Pure random generator)를 이용하여 추첨을 실시함으로써, 복권 게임 서비스의 공정성을 보장한다.In particular, when the lottery is made through on-line in the present invention, the lottery game service is guaranteed by performing a lottery using a pure random generator, thereby ensuring fairness of the lottery game service.

B형식의 디지털 전자복권 게임 서비스를 위한 시스템의 특징은, 복권 판매를 위한 서버가 복권 게임 서비스를 위한 전용 프로토콜을 기반으로 운용된다는 것이다.A feature of the system for digital electronic lottery game service of type B is that a server for lottery sale is operated based on a dedicated protocol for lottery game service.

그리고 복권 판매 및 서버 관리를 위한 전용 프로토콜(SFLP)을 제공하며, 그 전용 프로토콜(SFLP)을 이용하는 컴퓨터 그래픽 인터페이스(CGI : Computer Graphic Interface) 방식의 관리 메뉴를 제공함으로써, 웹 기반의 관리 환경을 제공한다.In addition, it provides a dedicated protocol (SFLP) for lottery sales and server management, and provides a web-based management environment by providing a computer graphic interface (CGI) type management menu using the dedicated protocol (SFLP). do.

또한 서비스 프로그램의 기동시에는 스마트카드(Smart Card)를 이용한 사용자 인증을 거친다. 그리고 서버측에서 스마트카드(Smart Card)를 삽입하여 직접 기동한다.In addition, when the service program is activated, the user is authenticated using a smart card. The server starts up directly by inserting a smart card.

본 발명의 복권서버는 대기모드(standby mode)로 기동된 후 서비스 전용 프로토콜(SFLP)을 통해 개인용컴퓨터(PC)에서 집적회로(IC : Integrated Circuit) 카드로 인증을 실시한다.The lottery server of the present invention is activated in a standby mode (standby mode) and performs authentication with an integrated circuit (IC) card from a personal computer (PC) through a service dedicated protocol (SFLP).

본 발명의 B형식의 복권 게임 서비스는, 복권 발권 요구시 사용자의 전자서명된 내용을 근거로 발권한 후 그 구매자에게 제공한다. 또한 복권 데이터의 검증이 요구된 때는 검증을 수행한 후 그 검증 결과를 제공한다. 마지막으로 추첨 데이터를 입력하여 당첨자 정보의 검색 결과를 제공한다.The type B lottery game service of the present invention is provided to the purchaser after issuing a ticket based on the electronic signature of the user when the lottery ticketing request is made. When verification of the lottery data is required, the verification is performed and the verification result is provided. Finally, the lottery data is input to provide a search result of the winner information.

이와 같은 본 발명 제 1 및 제 4 실시예에 따른 전송 데이터 포맷을 이용하여, 1. 디지털 전자 복권의 전송 데이터 포맷, 2. 디지털 전자 복권 구매를 위한 전송 데이터 포맷, 3. 디지털 전자 복권 발권 관리를 위한 전송 데이터 포맷, 4. 서버관리를 위한 전송 데이터 포맷 및 5. 복권 당첨 확인을 위한 전송 데이터 포맷을 설명하기로 한다.Using the transmission data format according to the first and fourth embodiments of the present invention, 1. transmission data format of digital electronic lottery, 2. transmission data format for digital lottery purchase, 3. digital electronic lottery management The transmission data format for transmission, the transmission data format for server management, and the transmission data format for confirmation of lottery winnings will be described.

1. 디지털 전자 복권의 전송 데이터 포맷의 실시예를 설명하기로 한다.1. An embodiment of the transmission data format of the digital electronic lottery will be described.

첫 번째 데이터 포맷 시퀀스는 제너럴 랩퍼(General Wrapper)로써 디지털 복권임을 나타내는 태그(Tag)와 복권 데이터(Lotto Data)를 포함한다.The first data format sequence is a general wrapper and includes a tag indicating that it is a digital lottery and lottery data.

여기서 디지털 복권 데이터 포맷이라는 것을 태그 범위(Tag Range)에 포함된 긴 문자열(이하, LSTR(Long STRing))에 예를 들면 0x05464C44로 나타낸다(도 7 참조). 이때, 태그는 최상위비트(Most Significant Bit : MSB)를 제외한 비트패턴(Bit pattern)이 ASCII(American Standard Code for Information Interchange)값으로 SFLD(Softforum lotto data)가 되는 상징적인 값이다. 그리고 이하에서도 디지털 전자 복권 데이터 포맷, 디지털 전자 복권 구매 데이터 포맷, 디지털 전자 복권 발권 관리 데이터 포맷, 서버관리 데이터 포맷 및 복권 당첨 확인 데이터 포맷을 나타내는 LSTR은 최상위비트(Most Significant Bit : MSB)를 제외한 비트 패턴(Bit pattern)이 ASCII(American Standard Code for Information Interchange)값으로 SFLD임을 나타낸다.Here, the digital lottery data format is represented by, for example, 0x05464C44 in a long character string (hereinafter referred to as LSTR (Long STRing)) included in a tag range (see FIG. 7). In this case, the tag is a symbolic value in which a bit pattern except for the most significant bit (MSB) becomes an ASCII (American Standard Code for Information Interchange) value and becomes a softforum lotto data (SFLD). In the following, the LSTR indicating the digital electronic lottery data format, the digital electronic lottery purchase data format, the digital electronic lottery ticketing management data format, the server management data format, and the lottery winning confirmation data format is a bit except the most significant bit (MSB). Bit pattern indicates that it is SFLD as an American Standard Code for Information Interchange (ASCII) value.

두 번째 데이터 포맷 시퀀스는 복권 데이터 포맷의 버전 정보와 복권 타입을 포함하는 복권 데이터 정보(Lotto Data Infomation) 데이터이다.The second data format sequence is lottery data information data including version information of the lottery data format and the lottery type.

즉 복권 데이터를 본 발명에 따른 데이터 전송 포맷에 따라 전송할 때 가장 먼저 알려주어야 하는 것이 버전 정보이다. 버전 정보를 확인한 후에 버전에 따라 다음 동작을 진행한다.That is, version information is the first thing to be informed when the lottery data is transmitted according to the data transmission format according to the present invention. After checking the version information, proceed to the next operation according to the version.

여기서 복권 타입은 다양한 복권 게임 형식에 따라 나눌 수 있다.The lottery types can be divided according to various lottery game types.

예를 들어 A형식(TypeA)=번호형식, B형식(TypeB)=로또형식, R형식(TypeR)=난수형식, P형식(TypeP)=풀형식, S형식(TypeS)=스크랫치형식이라 했을 때, A형식은 미리 명시된 복권번호의 복권표가 판매된 후에 추첨을 통해 당첨자와 당첨금을 결정하고, B형식은 구매자가 선택한 복권번호의 복권표가 판매된 후에 추첨을 통해 당첨자와 당첨금을 결정하며, R형식은 사용자가 복권을 구매하는 시점에서 확률적으로 당첨유무와 당첨금을 결정하고, P형식은 복권서버의 관리자가 미리 각 등위의 당첨자 수를 결정해 두고 사용자가 복권을 구매하는 시점에서 확률적으로 당첨 순위를 결정하며, S형식은 일정한 양의 복권을 미리 생성시켜 암호화한 후 저장해 두었다가 사용자가 복권 구매를 요청하면 그 저장된 복권을 복호화하여 당첨유무와 당첨금을 결정한다.For example, A type (TypeA) = number type, B type (TypeB) = lottery type, R type (TypeR) = random number type, P type (TypeP) = full type, S type (TypeS) = scratch type Form A determines the winner and the prize by lottery after the lottery ticket of the lottery number specified in advance is sold.Type B determines the winner and the prize by the lottery after the lottery ticket of the buyer has selected. In the case of the user, when the user purchases a lottery ticket, the R-type determines probability of winning and winning the prize. In the P-type, the manager of the lottery server decides the number of winners of each ranking in advance. In order to determine the winning order, the S-type generates a certain amount of lottery tickets in advance, encrypts and stores them, and when a user requests to purchase a lottery ticket, decrypts the stored lottery tickets and decides whether or not to win the prize.

이때 버전 정보는 2바이트 정수 데이터(즉, INT2)에 포함되며, STLV의 값은 '()'안의 값을 더한다. 즉 버전 정보가 INT2(100)이라 하는 경우, 버전 정보는 INT2에 포함되며, STLV의 값은 도 7에 나타낸 바와 같은 태그 범위의 기본 밸류인 0x8000에 100을 더한 0x8100이 된다.At this time, the version information is included in 2-byte integer data (that is, INT2), and the value of STLV adds a value in '()'. That is, when the version information is INT2 (100), the version information is included in INT2, and the value of STLV becomes 0x8100, which is 100, 0x8000 which is the basic value of the tag range as shown in FIG.

그리고 복권 타입(Lotto Type)은 A 타입(Type A)의 경우 INT2(110)로 하고, Type B(20), Type R(30), Type S(40), Type P(50)로 한다.In the case of a type A (Type A), the lottery type is INT2 (110), and a type B (20), a type R (30), a type S (40), and a type P (50).

세 번째 데이터 포맷 시퀀스는 판매대행서버(Proxy Info)의 필요에 의해 생성되며, 발권 및 보안과는 무관한 정보로써 복권 구매(Lotto Request)시와, 복권 데이터에 포함되는 판매대행서버 정보(Proxy Info) 데이터이다.The third data format sequence is generated by the need of a proxy information server. The third data format sequence is information that is not related to ticketing and security. At the time of lottery purchase, the sales agent server information (Proxy Info) included in the lottery data is generated. ) Data.

여기서 판매대행서버 식별자(Proxy ID)는 STR(210)에 포함되고, 필요시 발권 추적을 위한 고유 시리얼(Request track serial)은 INT4(211)에 포함한다.Here, the sales agent server identifier (Proxy ID) is included in the STR 210, and if necessary, a unique track for request ticketing (Request track serial) is included in the INT4 (211).

네 번째 데이터 포맷 시퀀스는 복권 구매(Lotto Request) 사용자 중 실제 사용자 정보(예를 들면 주민등록번호)를 밝힌 사용자 정보인 GID 정보 데이터이다.The fourth data format sequence is GID information data, which is user information that reveals actual user information (e.g., a social security number) among lotto users.

여기서 실제 사용자 정보(User IDN)는 STR(310)에 포함되고, 판매자(Reseller 계정에 등록된 유니크 식별자인(unique ID) 구매자(또는 사용자) 식별자(User ID)는 STR(311)에 포함된다.Here, the actual user information (User IDN) is included in the STR 310, and the buyer (or user) identifier (User ID), which is a unique identifier registered in the reseller account, is included in the STR 311.

그리고 판매자 사이트(site)의 고유 식별자인 판매자 식별자(Reseller ID)는STR(312)에 포함된다.The seller identifier Reseller ID, which is a unique identifier of the seller site, is included in the STR 312.

구매자의 구매 요청시 사용된 서명(signature)(Buyer Signature)은 STR(390)에 포함된다.The signature used in the purchase request of the buyer is included in the STR 390.

다섯 번째 데이터 포맷 시퀀스는 복권 구매(Lotto Request) 사용자 중 은닉(Blind) 사용자 식별자 정보인 BID(User BID)는 User IDN, UserID, ResellerID를 해쉬(hash)한 값을 STR(313)에 포함한다.In the fifth data format sequence, a BID (User BID), which is a blind user identifier, of a Lotto request user, includes a value hashed by User IDN, UserID, and ResellerID in the STR 313.

은닉 사용자 서명(Buyer Signature)은 구매자의 요청시 사용된 서명으로 STR(392)에 포함된다.The hidden user signature (Buyer Signature) is included in the STR 392 as the signature used at the buyer's request.

여섯 번째 데이터 포맷 시퀀스는 발권 기관(Seller Info)을 나타내는 발권 기관 정보 데이터이다.The sixth data format sequence is ticketing agency information data representing a seller information.

예를 들면 다음과 같다.For example:

발권기관 ID : STR(400).Ticket Authority ID: STR (400).

복권 ID : STR(401).Lottery ID: STR 401.

복권 차수 : INT4(402).Lottery order: INT4 (402).

복권 시리얼(serial) : INT4(403).Lottery serial: INT4 (403).

추첨날짜 : INT4(404)(time_t value).Draw date: INT4 (404) (time_t value).

만료날짜 : INT4(405)(time_t value).Expiry date: INT4 (405) (time_t value).

연속판매매수 : INT4(410)(연속해서 구매했을 경우의 총 매수).Consecutive Purchases: INT4 (410) (Total Purchases when Consecutive Purchases).

연속판매번호 : INT4(411)(연속해서 구매했을 경우의 일련번호 1부터 시작).Serial number: INT4 (411) (starting with serial number 1 if purchased continuously).

일곱 번째 데이터 포맷 시퀀스는 등위, 상금, 포인트나 상품 등 프라이즈 정보(Prize Info) 데이터이다.The seventh data format sequence is Prize Info data such as ranking, prize money, points or prizes.

예를 들면 다음과 같다.For example:

등위 :INT4 (420).Elevation: INT4 420.

상금 :INT4 (421).Prize: INT4 (421).

포인트 : INT4(422).Point: INT4 (422).

상품 #1 : STR(430).Item # 1: STR 430.

상품 #2 : STR(431).Item # 2: STR 431.

여덟 번째 데이터 포맷 시퀀스는 사용자가 서명한 시간을 증명하는 시간 날인 토큰(Time Stamp Token)(옵션) 정보(Info.) 데이터로써 STR(440)에 포함된다.The eighth data format sequence is included in the STR 440 as Time Stamp Token (optional) Information (Info.) Data proving the time signed by the user.

아홉 번째 데이터 포맷 시퀀스는 게임 정보(Game Info) 데이터이다.The ninth data format sequence is Game Info data.

예를 들면 500 - 699의 값을 갖는 게임 명세 데이터(Game specific data)로 TypeR, TypeS, TypeP의 경우 게임을 생성하는 데이터가 저장되고 TypeB의 경우 사용자가 선택한 번호 등의 데이터가 저장된다.For example, as game specific data having a value of 500 to 699, data for generating a game is stored in the case of TypeR, TypeS, and TypeP, and data such as a number selected by the user is stored in the case of TypeB.

즉 스크래치 게임을 생성하기 위한 게임의 구조인 스크래치 게임 데이터(Scratch Game Data)는 STR(500)에 포함된다.That is, scratch game data, which is a structure of a game for generating a scratch game, is included in the STR 500.

이 밖에 매치 게임 데이터(Match Game Data)(STR(501)), 미로(Maze) 게임 데이터(STR(502)), 빙고(Bingo) 게임 데이터(STR(503)), 6/49 복권 게임 데이터(STR(520))(구매자가 선택한 볼(ball)의 번호는 문자 타입(character type)으로 저장되며 예를 들면 0 - 255의 문자가 연속으로 온다) 등이 있다.In addition, Match Game Data (STR 501), Maze Game Data (STR 502), Bingo Game Data (STR 503), 6/49 Lottery Game Data ( STR 520) (the number of balls selected by the buyer is stored as a character type, for example, characters from 0 to 255 come in succession).

그리고 6/49 파워볼(Powerball) 복권 게임을 위한 사용자의 선택으로 구매자가 선택한 볼(ball)의 번호는 문자 타입으로 저장되며(0 - 255의 문자열이 연속으로 온다)STR(521). 이때, 내부적(Implicit)으로 맨 앞 문자열은 파워볼(Power Ball)로 간주한다.The number of balls selected by the purchaser in the user's selection for the 6/49 Powerball lottery game is stored in character type (strings of 0-255 are consecutive) STR 521. At this time, internally, the first string is regarded as a power ball.

열 번째 데이터 포맷 시퀀스는 보안 정보(Security Info) 데이터이다.The tenth data format sequence is Security Info data.

보안 정보 데이터는 복권 판매 기관 인증서의 BIN 포맷으로 서명자 인증(Signer Cert)이 STR(900)에 포함되고, 서명에 사용된 알고리즘 식별자(Sign Algorithm ID)가 INT2(901)에 포함되며, 서명자 인증(Signer Cert)의 OCSP 토큰(token)의 BIN 포맷이 STR(902)에 포함되고(옵션), 첫 번째부터 아홉 번째까지의 복권 데이터 전체의 서명값(Signature)이 STR(910)에 포함된다.The security information data is included in the STR 900 in the BIN format of the lottery ticket authority certificate, and the algorithm identifier (Sign Algorithm ID) used for signing is included in the INT2 901, and the signer certificate ( The BIN format of the OCSP token of the Signer Cert is included in the STR 902 (optional), and the signature value of the entire first to ninth lottery data is included in the STR 910.

2. 디지털 전자 복권 구매를 위한 전송 데이터 포맷을 설명하기로 한다.2. The transmission data format for the digital electronic lottery purchase will be described.

디지털 전자 복권 구매를 위한 전송 데이터 포맷은 앞에서 설명한 디지털 전자복권 서비스 시스템의 서비스 중 제 1 단계 및 제 3 단계 서비스에 적용 가능한 것으로, 클라이언트 컴퓨터(10)에서 판매대행서버(20)로 요청하는 전송 데이터의 포맷이다.The transmission data format for the digital electronic lottery purchase is applicable to the first and third stage services of the digital lottery service system described above, and the transmission data requested from the client computer 10 to the sales representative server 20. Is the format of.

우선 디지털 전자 복권 구매 요청시 사용자 요청 데이터에는 실제(Genuine) 사용자에게 요구하는 실제 사용자 식별자(GID) 데이터 요청 포맷과, 은닉(Blind) 사용자에게 요구하는 BID 데이터 요청 포맷이 있다.First, when requesting a digital electronic lottery purchase request, the user request data includes a real user identifier (GID) data request format required by a real user and a BID data request format required by a blind user.

즉 복권 구매시 사용자는 GID(Genuine ID)라는 데이터를 생성해서 판매대행서버()에 제시하여 발권받는데, 이 방식은 원칙적으로 주민등록번호와 본인의 인증서로 인증을 받는다. 다만, 구매 시점에 본인의 신분을 노출시키지 않기를 원하는 구매자에게는 GID대신 은닉 ID(BID)를 이용하여 구매하도록 한다. 이와 같은 은닉 ID(BID)를 사용할 경우 당첨금 지급시 은닉 ID를 검증하기 위한 사용자 확인(Verify) 과정을 한번 더 거쳐야 한다.In other words, when purchasing a lottery, a user generates a data called GID (Genuine ID) and presents it to a sales representative server (), which is in principle authenticated with a social security number and his certificate. However, buyers who do not want to reveal their identity at the time of purchase should purchase using a hidden ID (BID) instead of GID. In the case of using such a hidden ID (BID), the user must go through the user verification (Verify) process to verify the hidden ID when the prize money is paid.

복권 구매 요청(Lotto Request)에는 사용자가 생성하는 CLR(Client Lotto Request)과 판매대행서버(Sales Proxy)가 생성하는 PLR(Proxy Lotto Request)이 사용된다. 일반적으로 사용자가 CLR을 생성해서 판매대행서버(Sales Proxy)에 전송하면 판매대행서버(Sales Proxy)는 CLR을 검증하고 인증서(Certification) 와 서명을 판매대행서버(Sales Proxy)의 보증서와 서명으로 바꾼 PLR로 만든 후 복권서버(Lotto Server)에 전달한다. 이때 판매대행서버(Sales Proxy)는 향후의 문제 발생시를 대비하여 CLR-PLR의 쌍을 저장한다.The lotto request includes a client lotto request (CLR) generated by a user and a proxy lotto request (PLR) generated by a sales proxy server. Typically, when a user creates a CLR and sends it to a sales proxy, the sales proxy verifies the CLR and replaces the certificate and signature with the sales proxy's certificate and signature. It is made of PLR and delivered to Lotto Server. At this time, the sales proxy server stores a pair of CLR-PLR in case of a future problem.

디지털 전자 복권 구매 요청 데이터 포맷의 실시예를 설명하기로 한다.An embodiment of a digital electronic lottery purchase request data format will be described.

우선, 실제 식별자(GID) 데이터 요청 포맷은 다음과 같다.First, the actual identifier (GID) data request format is as follows.

첫 번째 제너럴 랩퍼로써 복권 구매 요청 사용자중 실제 사용자 정보를 밝히는 GID 데이터 요청 포맷을 나타내는 태그와 복권 구매 요청 데이터의 세부 정보인 길이 필드와 밸류 필드를 포함한다.The first general wrapper includes a tag indicating a GID data request format that reveals actual user information among lottery purchase request users, and a length field and a value field which are detailed information of the lottery purchase request data.

여기서 디지털 전자 복권 구매 요청 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C52로 나타낸다.Herein, the digital electronic lottery purchase request data format is represented as 0x05464C52 in the LSTR included in the tag range.

두 번째 데이터 포맷 시퀀스는 판매대행서버 식별자(Proxy ID) 데이터이다.The second data format sequence is a proxy server identifier (Proxy ID) data.

이 정보는 디지털 전자 복권 구매 요청된 판매대행서버(Sales Proxy)의 필요에 의해 생성된 판매대행서버 식별자(Sales Proxy의 ID)가 STR(210)에 포함되며, 발권 및 보안과는 무관한 정보이다. 구현에 따라 이 정보는 복권 요청(LR)에만 포함되고 복권 데이터(LD)에는 포함되지 않을 수 있다.This information includes the sales agent server identifier (Sales Proxy ID) generated by the need of the sales proxy server (Sales Proxy) requested to purchase the digital electronic lottery ticket, and is not related to ticketing and security. . In some implementations, this information may be included only in the lottery request LR and not in the lottery data LD.

세 번째 데이터 포맷 시퀀스는 발권 추적을 위한 고유의 시리얼(Request track serial) 데이터를 포함한다.The third data format sequence contains unique request track serial data for ticketing tracking.

이 정보는 역시 판매대행서버(Sales Proxy)의 필요에 의해 생성되며 발권 및 보안과는 무관한 정보로써, INT4(211)에 포함되며, 구현에 따라 이 정보는 복권 요청(LR)에만 포함되고 복권 데이터(LD)에는 포함되지 않을 수도 있다.This information is also generated by the needs of the Sales Proxy and is not related to ticketing and security and is included in INT4 211, which, depending on the implementation, is only included in the lottery request (LR) and the lottery. It may not be included in the data LD.

네 번째 데이터 포맷 시퀀스는 GID 포맷의 버전 정보(Version Info)데이터로써 INT2(300)에 포함된다.The fourth data format sequence is included in the INT2 300 as version info data of the GID format.

다섯 번째 데이터 포맷 시퀀스는 사용자 식별자(User IDN) 데이터로써, 예를 들면 주민등록번호를 사용하며, STR(310)에 포함된다The fifth data format sequence is user IDN data, for example, using a social security number, and included in the STR 310.

여섯 번째 데이터 포맷 시퀀스는 등록 사용자 식별자(User ID) 데이터로써, 예를 들면 사용자가 판매대행서버 계정에 등록된 식별자(unique ID) 데이터로 STR(311)에 포함된다.The sixth data format sequence is registered user identifier (User ID) data. For example, the sixth data format sequence is included in the STR 311 as unique ID data registered in a sales representative server account.

일곱 번째 데이터 포맷 시퀀스는 판매자 식별자(Reseller ID) 데이터로써 STR(312)에 포함된다.The seventh data format sequence is included in the STR 312 as Reseller ID data.

여덟 번째 데이터 포맷 시퀀스는 구매 요청 시간 날인 값(Time Stamp Value)(옵션(optional)) 데이터로써 STR(320)에 포함된다.The eighth data format sequence is included in the STR 320 as Time Stamp Value (optional) data.

아홉 번째 데이터 포맷 시퀀스는 난수 시드(Random Seed)(옵션)데이터로써STR(321)에 포함된다.The ninth data format sequence is included in the STR 321 as random seed (optional) data.

열 번째 데이터 포맷 시퀀스는 판매대행서버의 시간 문자열(Proxy Time String) 데이터(옵션(optional)로써 INT4(322)에 포함된다.The tenth data format sequence is included in the INT4 322 as an optional (Time) data of the proxy server.

열 한번째 데이터 포맷 시퀀스는 즉석식이냐, 추첨식이냐를 나타내는 데이터로써 즉석식의 경우에는 INT2(330)에 포함되며, 추첨식일 때는 이 필드(field)는 생략된다. 그리고 추첨식의 경우에는 INT2(340)에 포함되며, 즉석식일 때는 이 필드는 생략된다. 이때, 추첨식일 때는 아래의 볼(Ball) 선택 필드가 주어진 개수만큼 온다.The eleventh data format sequence is data indicating whether it is an instant or a lottery, and is included in the INT2 330 in the case of an instant, and this field is omitted in the case of a lottery. In the case of a raffle, it is included in INT2 340, and this field is omitted in the case of an instant meal. At this time, in the lottery ceremony, the following Ball selection field comes by a given number.

즉 열 두 번째 데이터 포맷 시퀀스는 추첨식일 경우 그 중에서도 6/49 복권 게임 선택한 경우에 STR(341)에 포함되며, 구매자가 선택한 볼(ball)의 번호는 문자 타입(character type)으로 저장된다.That is, the twelfth data format sequence is included in the STR 341 in the case of a lottery, when the 6/49 lottery game is selected, and the number of balls selected by the buyer is stored as a character type.

열세 번째 데이터 포맷 시퀀스는 6/49 파워볼(Powerball) 게임을 선택한 경우에 STR(342)에 포함되며, 볼(ball)의 번호는 문자 타입으로 저장된다.The thirteenth data format sequence is included in the STR 342 when a 6/49 Powerball game is selected and the number of balls is stored in character type.

열네 번째 데이터 포맷 시퀀스는 서명자 인증(Signer Cert) 데이터로써 구매자(혹은 판매자) 인증서의 BIN 포맷이 STR(390)에 포함된다The fourteenth data format sequence is Sign Cert data that contains the BIN format of the buyer (or seller) certificate in the STR 390.

열다섯 번째 데이터 포맷 시퀀스는 서명에 사용된 알고리즘 식별자(Sign Algorithm ID) 데이터로써 INT2(391)에 포함된다.The fifteenth data format sequence is included in INT2 391 as the Signal Algorithm ID data used for signing.

열여섯 번째 데이터 포맷 시퀀스는 서명자 인증(Signer Cert) 데이터이전까지의 GID 데이터 전체의 서명(Signature) 값 데이터로써 STR(392)에 포함된다The sixteenth data format sequence is included in the STR 392 as signature value data of the entire GID data up until the Signer Cert data.

다음 은닉 식별자 데이터 요청 포맷은 다음과 같다.The following hidden identifier data request format is as follows.

디지털 전자 복권 구매 요청 사용자 중 은닉 사용자 정보를 밝히는 BID 데이터 요청 포맷(BID Data Request format)은 GID 데이터 요청 포맷의 데이터 시퀀스 중 다섯, 여섯 및 일곱 번째 데이터 포맷 시퀀스(사용자 식별자(User IDN)와, 등록 사용자 식별자(User ID) 및 판매자 식별자(Reseller ID)) 항목은 삭제되고, 다음 두가지 데이터 필드가 추가된다.The BID Data Request format, which reveals hidden user information among digital e-lottery purchase request users, is registered with the fifth, sixth and seventh data format sequences (User IDN) of the data sequence of the GID data request format. User ID and Reseller ID items are deleted, and the following two data fields are added.

첫 번째로는 은닉 사용자 식별자(User BID) 데이터가 STR(313)에 은닉 사용자 식별자(User IDN), 판매자(Reseller 계정)에 등록된 유니크 식별자(unique ID)(USER ID) 및 판매자 식별자(Reseller ID)를 해쉬(hash)한 값을 STR(313)에 포함한다.Firstly, the Hidden User Identifier (User BID) data is stored in the STR 313, the Hidden User Identifier (User IDN), the Unique ID (USER ID) registered in the Seller (Reseller Account), and the Seller Identifier (Reseller ID). ) Is stored in the STR 313.

두 번째로는 BID 해쉬(Hash)에 사용된 알고리즘 데이터로써 INT2(314)에 포함된다.Secondly, the algorithm data used in the BID hash is included in the INT2 314.

3. 디지털 전자 복권 발권 관리를 위한 전송 데이터 포맷을 설명하기로 한다.3. The transmission data format for digital electronic lottery ticket management will be described.

발권 관리를 위한 전송 데이터 포맷은 앞에서 설명한 디지털 전자복권 서비스 시스템의 서비스 동작 중 제 2 단계 및 제 4 단계에 해당한다.The transmission data format for ticketing management corresponds to the second and fourth stages of the service operation of the digital electronic lottery service system described above.

이와 같은 디지털 전자 복권에 대한 데이터 포맷에는 발권 관리시 자체 개발한 전자 복권 서비스 프로토콜이 ??(Set)으로 포함되며, 발권 관리 데이터 포맷은 크게 (1)발권 요청, (2)복권 확인(Verify), (3)복권 조회 요구(query), (4)리포트(Report) 및 (5) 복권 당첨자 조회(Lotto Query)로 나눌 수 있다.The digital electronic lottery data format includes an electronic lottery service protocol developed in-house during ticketing management as a set, and the ticket management data format is largely divided into (1) ticketing request and (2) lottery. , (3) lottery query request, (4) Report, and (5) Lottery Winner Query.

(1)발권 요청시 데이터 포맷 시퀀스는 요청 포맷, 요청 응답 포맷 및 내부프로세스 포맷으로 나눌 수 있다.(1) The data format sequence at the time of ticketing request may be divided into a request format, a request response format, and an internal process format.

첫 번째 데이터 포맷 시퀀스는 요청 포맷의 제너럴 랩퍼로써 복권에 대한 발권 관리 요청 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The first data format sequence is a general wrapper of the request format and indicates, for example, 0x05464C50 in the LSTR included in the tag range that it is a ticketing management request data format for lottery.

그리고 SFLP의 버전정보가 데이터 포맷 시퀀스로 INT2(1000)에 포함되고, 복권 발권을 요청하는 명령어(Command)로써 'REQUEST'가 데이터 포맷 시퀀스로INT2(1100)에 포함되며, 구매자 요청에 정의된 요청 데이터인 SFLR(Lotto Request)이 LSTR에 예를 들면 0x05464C52로 포함된다.The version information of the SFLP is included in the INT2 (1000) as the data format sequence, 'REQUEST' is included in the INT2 (1100) as the data format sequence as a command for requesting lottery ticketing, and the request defined in the buyer's request. Lotto Request (SFLR), which is data, is included in the LSTR as, for example, 0x05464C52.

두 번째 데이터 포맷 시퀀스는 발권 요청 응답 포맷의 제너럴 랩퍼로써 발권 요청 응답 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second data format sequence is a general wrapper of the ticketing request response format and indicates that the ticketing request response data format is, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 리턴 코드로서 관리 프로토콜(administration protocol)에 대한 응답 값이 INT4(1010)에 포함되고, 데이터 발행된 복권의 매수를 나타내는 복권 카운트가 INT2(1020)에 포함되며, 복권 데이터에 정의된 복권 데이터를 나타내는 SFLD(Lotto Data)의 시퀀스가 LSTR에 0x05464C53로 나타낸다.The response value for the administration protocol is included in the INT4 1010 as a return code, the lottery count indicating the number of lottery tickets issued is included in the INT2 1020, and the lottery data defined in the lottery data is included. A sequence of SFLD (Lotto Data) indicated is represented by 0x05464C53 in the LSTR.

그리고 리턴코드는 다음과 같이 설정할 수 있다.And the return code can be set as follows.

0 : 정상적인 수행 성공(Success).0: Normal success.

100 : 프로토콜 에러(Syntax error).100: Syntax error.

200 : 서명 검증 에러(Signature invalid).200: Signature validation error.

300 : 복권 발행 불가(Lotto Pool Empty).300: Lottery Pool Empty.

310 : 발권요청 시간 초과(Request Timeout).310: Request Timeout.

800 : 서버 작업 불가(Internal Error).800: Server operation unavailable (Internal Error).

세 번째 데이터 포맷 시퀀스는 발권 요청시 내부 프로세스(Internal Process) 데이터 포맷으로, 프로토콜 해석(Protocol parsing), 복권 발권 요청 데이터 및 복권 데이터 저장 데이터 쌍(save(SFLR, LD) pair) 및 복권 데이터(LD) 리턴 데이터가 포함된다.The third data format sequence is an internal process data format when requesting a ticket, including protocol parsing, lottery ticketing request data and lottery data storage data (save (SFLR, LD) pair) and lottery data (LD). ) Return data is included.

(2)복권 확인 시 데이터 포맷 시퀀스 역시 요청 포맷, 요청 응답 포맷 및 내부 프로세스 포맷으로 나눌 수 있다.(2) When checking lottery, the data format sequence can also be divided into request format, request response format, and internal process format.

첫 번째 데이터 포맷 시퀀스는 요청 포맷의 제너럴 랩퍼로써 복권 확인(Verify) 요청 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The first data format sequence is a general wrapper of the request format, indicating that it is a Verify request data format in the LSTR included in the tag range, for example, 0x05464C50.

그리고 SFLP 포맷의 버전 정보가 데이터 포맷 시퀀스로 INT2(1000) 에 포함되고, 복권 확인을 요청하는 명령어로써 'VERIFY'가 데이터 포맷 시퀀스로 INT2(1110)에 포함되며, 파라미터로는 요청 데이터, 사용자 식별자(User IDN : STR (310)), 등록 식별자(User ID : STR(311))판매자 식별자(Reseller ID : STR (312)), 발권 기관 식별자(ID : STR (400)) 복권 식별자(STR(401)) 복권 차수(INT4(402)) 및 복권 번호(INT4(403))이 있다. 그리고 값에 관계없이 해당 복권 데이터(LD)를 다음에 설명하는 발권 확인 응답(REPLY) 데이터에 붙여서 보내는 에코(Echo) 데이터가 예를 들면 INT2(1111)에 포함된다.The version information of the SFLP format is included in the INT2 (1000) as a data format sequence, and 'VERIFY' is included in the INT2 (1110) as a data format sequence as a command for requesting lottery confirmation, and the request data and the user identifier as parameters. (User IDN: STR 310), Registration Identifier (User ID: STR (311)) Seller Identifier (Reseller ID: STR (312)), Ticketing Authority Identifier (ID: STR (400)) Lottery Identifier (STR (401) )) There is a lottery order (INT4 (402)) and a lottery number (INT4 (403)). Regardless of the value, echo data sent by attaching the lottery data LD to the ticketing confirmation response (REPLY) data described below is included in, for example, the INT2 1111.

두 번째 데이터 포맷 시퀀스는 발권 확인 요청에 대한 응답 데이터 포맷으로, 응답 데이터 포맷의 제너럴 랩퍼로써 발권 확인 응답 데이터라는 것을 태그 범위에 포함된 LSTR에 0x05464C50로 나타낸다.The second data format sequence is a response data format for the ticketing confirmation request, and is indicated by 0x05464C50 in the LSTR included in the tag range that the ticketing confirmation response data is a general wrapper of the response data format.

그리고 리턴 코드로서 관리 프로토콜(administration protocol)에 대한 응답 값이 INT4 (1010)에 포함되고, 데이터 및 복권 데이터에 정의된 복권 데이터를 나타내는 SFLD의 시퀀스가 LSTR에 0x05464C44로 포함된다.The response value for the administration protocol is included in the INT4 1010 as a return code, and the sequence of SFLD representing the lottery data defined in the data and the lottery data is included in the LSTR as 0x05464C44.

리턴 코드는 다음과 같이 설정할 수 있다.The return code can be set as follows:

Data : Admin Protocol 에 대한 Reply 값.Data: Reply value for Admin Protocol.

100 : 프로토콜 에러(Syntax error).100: Syntax error.

400 : 미발행 복권(Lotto Serial not valid).400: Lotto serial not valid.

500 : 복권 확인 불가(BID not matches).500: Lottery cannot be confirmed (BID not matches).

800 : 서버 작업 불가(Internal Error).800: Server operation unavailable (Internal Error).

세 번째 데이터 포맷 시퀀스는 발권 요청시 내부 프로세스(Internal Process) 데이터 포맷이다.The third data format sequence is an internal process data format at the time of ticketing request.

내부 프로세스 데이터 포맷은 응답 데이터 포맷은 프로토콜 해석(Protocol parsing) 데이터, 발권 복권 번호와 은닉 식별자의 일치 확인(matches Lotto number and verify BID) 데이터 및 결과와 복권 데이터의 리턴 데이터가 포함된다.The internal process data format may include protocol parsing data, matched lotto number and verify BID data, and return data of results and lottery data.

(3)복권 조회 요청(Query Lotto) 시 데이터 포맷 시퀀스 역시 요청 포맷, 요청 응답 및 내부 프로세스로 나눌 수 있다.(3) The data format sequence can also be divided into request format, request response, and internal process.

첫 번째, 데이터 포맷 시퀀스는 복권 조회 요청 포맷의 제너널 랩퍼로서 복권 조회 요청이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.First, the data format sequence is a general wrapper of the lottery inquiry request format and indicates that the lottery inquiry request is, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP 포맷의 버전 정보가 데이터 포맷 시퀀스로 INT2(1000)에 포함되며, 복권 조회(QUERY)를 요청하는 명령어로써 'QUERY'가 데이터 포맷 시퀀스로 INT2(1120)에 포함디며, 각종 파라미터 정보가 포함된다.The version information of the SFLP format is included in the INT2 (1000) as the data format sequence, and the command for requesting the lottery is included in the query (QUERY) in the INT2 (1120) as the data format sequence, and includes various parameter information. do.

이와 같은 각종 파라미터 정보에는 발권기관 ID(STR(400)), 복권 ID(STR(401)), 복권 차수(INT4(402)) 및 복권 번호(serial : INT4(403))가 포함되거나 또는 판매대행서버 식별자(Sales Proxy ID : STR(210)) 및 필요시 발권 추적을 위한 고유 번호(serial)인 트랙 시리얼 요청(Request track serial)(INT4(211))이 있다.Such various parameter information includes a ticketing authority ID (STR (400)), a lottery ID (STR (401)), a lottery order (INT4 (402)) and a lottery number (serial: INT4 (403)). There is a server identifier (Sales Proxy ID: STR 210) and a request track serial (INT4 211), which is a serial number for ticketing tracking if necessary.

두 번째 데이터 포맷 시퀀스는 첫 번째 요청 포맷에 대한 응답 포맷으로 제너럴 랩퍼로서 복권 조회 응답 데이터 포맷이라는 것을 태그범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second data format sequence is a response format for the first request format, and is represented as 0x05464C50 in the LSTR included in the tag range that the lottery inquiry response data format is a general wrapper.

그리고 리턴 코드로써 관리 프로토콜(Admin Protocol)에 대한 응답 값 INT4(1010)에 포함된다. 여기서 예를 들면 리턴 코드가 0인 경우에는 정상적인 수행 성공(Success)을, 100인 경우에는 프로토콜 에러(Syntax error)를, 400인 경우에는 미발행 복권(Lotto Serial not valid)을, 800인 경우에는 서버 작업 불가(Internal Error)를 응답하는 것이다. 마지막으로 복권 데이터에 정의된 복권 데이터를 나타내는 SFLD의 시퀀스가 LSTR에 0x05464C53으로 나타낸다.The return code is included in the response value INT4 1010 for the Admin Protocol. For example, if the return code is 0, normal success is succeeded, if it is 100, the syntax error is used, if it is 400, the lotto serial not valid, and if it is 800, the server It responds with an internal error. Finally, the sequence of SFLD representing the lottery data defined in the lottery data is represented by 0x05464C53 in the LSTR.

세 번째 데이터 포맷 시퀀스는 조회 요청시 내부 프롯스 데이터 포맷으로 프로토콜 해석(Protocol parsing), 복권 번호 일치(matches Lotto number) 및 결과및 복권 번호 리턴 데이터(return result and LD)가 포함된다.The third data format sequence includes protocol parsing, lottery number matching, and result and lottery number return data in an internal proto-data format upon inquiry request.

(4)리포트 시 데이터 포맷 시퀀스 역시 요청 포맷, 응답 및 내부 프로세스로 나눌 수 있다.(4) The data format sequence at the time of report can be divided into request format, response and internal process.

첫 번째 데이터 포맷 시퀀스는 요청 포맷의 제너럴 랩퍼로써 리포트 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The first data format sequence is the general wrapper for the request format, indicating that it is a report data format, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP의 버전 정보가 데이터 포맷 시퀀스로 INT2(1000)에 포함되고, 리포트를 요청하는 명령어로써 'REPORT'가 데이터 포맷 시퀀스로 INT2(1130)에 포함된다.Version information of the SFLP is included in the INT2 1000 as a data format sequence, and 'REPORT' is included in the INT2 1130 as a data format sequence as a command for requesting a report.

이어서, 파라미터 정보가 포함되는데, 복권 차수가 INT2(2401)에 포함되며, 발권 회차가 포함될 수 있다(옵션). 이때, 파라미터가 없는 경우 현재 발행되고 있는 회차의 정보를 출력한다.Subsequently, parameter information is included, the lottery order is included in INT2 2401, and a ticketing turn may be included (optional). At this time, if there is no parameter, information on the currently issued round is output.

두 번째 데이터 포맷 시퀀스는 응답 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR은 예를 들면 0x05464C50로 나타낸다.The second data format sequence is the general wrapper of the response format, and the LSTR included in the tag range is represented, for example, 0x05464C50.

그리고 리턴 코드로서 관리 프로토콜(Admin protocol)에 대한 응답값이 INT4(1010)에 포함된다.The response value for the Admin protocol is included in the INT4 1010 as a return code.

예를 들면 리턴 코드의 0은 정상적인 수행 성공(Success), 100은 프로토콜 에러(Syntax error), 410은 미발행 회차(Lotto Round not valid), 800은 서버 작업 불가(Internal Error) 등으로 리턴 코드를 설정한다.For example, the return code can be set to 0 for success, 100 for syntax error, 410 for round round not valid, and 800 for server internal error. do.

이 밖의 응답 포맷의 길이 필드 또는 밸류 필드에는 다양한 상금 구조에 대한 데이터가 포함된다.The length field or value field of the other response format includes data for various prize structures.

즉, 전체 상금 구조는,In other words, the overall prize structure,

INT2(2401) : 발권 회차.INT2 (2401): Ticketing rounds.

INT2(2402) : 총 등위의 수.INT2 (2402): Number of total ranks.

INT4(2403) : 총 발권 매수.INT4 (2403): Total number of tickets issued.

INT4(2405) : 복권 만료기간(time_t value).INT4 2405: Lottery expiration time (time_t value).

INT4(2409) : 총 판매량.INT4 (2409): Total sales.

1 등 상금 구조는,1st prize structure,

INT4(2410) : 1등 상금액.INT4 (2410): First prize amount.

INT4(2411) : 1등 당첨 복권 수.INT4 (2411): Number of winning lottery tickets.

INT4(2414) : 연속 1등의 개수.INT4 (2414): Number of consecutive first place.

2등 상금 구조는,Second prize money structure,

INT4(2420) : 2등 상금액.INT4 (2420): Second prize money.

INT4(2421) : 2등 당첨 복권 수.INT4 (2421): Number of winning lotteries.

3등 상금 구조는,Third prize prize structure,

INT4(2430) : 3등 상금액.INT4 (2430): Third prize amount.

INT4(2431) : 3등 당첨 복권 수.INT4 (2431): Number of winning lottery tickets.

4등 상금 구조는,Fourth prize structure,

INT4(2440) : 4등 상금액.INT4 (2440): 4th prize money.

INT4(2441) : 4등 당첨 복권 수.INT4 (2441): Number of winning lottery tickets.

5등 상금 구조는,The fifth prize prize structure,

INT4(2450) : 5등 상금액.INT4 (2450): 5th Prize.

INT4(2451) : 5등 당첨 복권 수.INT4 (2451): Number of winning lottery tickets.

6등 상금 구조는,The sixth prize structure,

INT4(2460) : 6등 상금액.INT4 (2460): 6th Prize.

INT4(2461) : 6등 당첨 복권 수.INT4 (2461): Number of winning lottery tickets.

7등 상금 구조는,The seventh prize structure,

STR(2470) : 7등 상품명.STR (2470): 7th class name.

INT4(2471) : 7등 당첨 복권 수.INT4 (2471): Number of winning lottery tickets.

8등 상금 구조는,The eighth prize prize structure,

STR(2480) : 8등 상품명.STR (2480): 8th class name.

INT4(2481) : 8등 당첨 복권 수.INT4 (2481): Number of winning lottery tickets.

9등 상금 구조는,9th prize structure,

STR(2490) : 9등 상품명.STR (2490): 9th class name.

INT4(2491) : 9등 당첨 복권 수.INT4 (2491): 9th place winning lottery.

10등 상금 구조는,10th prize structure,

STR(2600) : 10등 Point점수.STR (2600): 10 points.

INT4(2601) : 10등 Point 당첨 복권 수.INT4 (2601): Number of winning 10 lottery points.

11등 상금 구조는,The 11th prize structure,

STR(2610) : 11등 Point점수.STR (2610): 11 points.

INT4(2611) : 11등 Point 당첨 복권 수.INT4 (2611): Number of points winning 11 lotteries.

12등 상금 구조는,The 12th prize structure,

STR(2620) : 12등 Point점수.STR (2620): 12 points.

INT4(2621) : 12등 Point 당첨 복권 수로 구성할 수 있다.INT4 (2621): It can consist of 12 winning points.

세 번째 데이터 포맷 시퀀스는 리포트 시 내부 프로세스(Internal Process) 데이터 포맷으로 프로토콜 해석(Protocol parsing), 리포트 정보 모음(collect report information) 및 리턴 결과(Return result) 데이터가 포함된다.The third data format sequence is an internal process data format for reporting, including protocol parsing, collect report information, and return result data.

(5)복권 당첨자 조회(Lotto Query)시 데이터 포맷 시퀀스 역시 요청 포맷, 요청 응답 및 내부 프로세스로 나눌 수 있다.(5) During the lottery winner query, the data format sequence can also be divided into request format, request response, and internal process.

첫 번째 데이터 포맷 시퀀스는 당첨자 조회 요청 포맷의 제너럴 랩퍼로써 당첨자 조회 요청 데이터 포맷이라는 것을 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The first data format sequence is a general wrapper of the winner inquiry request format and indicates that the winner inquiry request data format is, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP의 버전 정보가 데이터 포맷 시퀀스로 INT2(1000)에 포함되고, 예를 들면 B타입 디지털 전자 복권의 당첨자 조회를 요청하는 명령어로써 'LOTTOBQUERY'가 INT2(1140)에 포함된다.The version information of the SFLP is included in the INT2 1000 as a data format sequence. For example, 'LOTTOBQUERY' is included in the INT2 1140 as a command for requesting a winner inquiry of a type B digital lottery.

이어서, 파라미터 정보가 포함되는데, 복권 차수(INT2(2401)와 발권 회차(옵션)의 정보가 포함된다. 이때 이 파라미터가 없으면 마지막으로 추첨된 회차의 정보가 출력된다.Subsequently, parameter information is included, which includes information on the lottery order INT2 2401 and the ticketing turn (optional), where information on the last lottery is drawn if this parameter is not present.

두 번째 데이터 포맷 시퀀스는 응답 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR은 예를 들면 0x05464C50로 나타낸다.The second data format sequence is the general wrapper of the response format, and the LSTR included in the tag range is represented, for example, 0x05464C50.

그리고 리턴 코드로써 관리 프로토콜에 대한 응답값이 INT4(1010)에 포함된다.The response value for the management protocol is included in the INT4 1010 as a return code.

예를 들어, 리턴 코드의 0은 정상적인 수행 성공(Success), 100은 프로토콜 에러(Syntax error), 410은 미발행 회차(Lotto Round not valid), 800은 서버 작업 불가(Internal Error)등으로 설정한다.For example, a return code of 0 may be set to 100 for successful execution, 100 for a syntax error, 410 for a round round not valid, and 800 for a server internal error.

또한, 다양한 상금 구조에 대한 데이터가 응답 포맷에 포함된다.In addition, data for various prize structures is included in the response format.

즉, 전체 상금 구조.In other words, the overall prize structure.

INT2(2401) : 발권 회차.INT2 (2401): Ticketing rounds.

INT2(2402) : 총 등위의 수.INT2 (2402): Number of total ranks.

INT4(2403) : 총 발권 매수.INT4 (2403): Total number of tickets issued.

INT4(2405) : 복권 만료기간(time_t value).INT4 2405: Lottery expiration time (time_t value).

INT4(2409) : 총 판매량.INT4 (2409): Total sales.

그리고 그 밖의 당첨 정보로 다음과 같은 것들이 포함된다.And other winning information includes:

INT4(2610)에는 1 등 당첨자의 수 데이터가, LSTR(2611)에는 1등 당첨자의 LD 데이터가(LD의 개수는 당첨자의 수만큼 반복된다) 포함된다.The INT4 2610 contains the number data of first prize winners, and the LSTR 2611 includes LD data of the first prize winners (the number of LDs is repeated by the number of winners).

예를 들면 INT4(2620)에는 2 등 당첨자의 수 데이터가, LSTR(2621)에는 2등 당첨자의 LD 데이터(LD의 개수는 당첨자의 수만큼 반복된다)가 포함된다..For example, the INT2 2620 contains the number data of the second prize winner, and the LSTR 2621 contains the LD data of the second prize winner (the number of LDs is repeated by the number of winners).

또 다른 예로써 INT4(2630)에는 3등 당첨자의 수 데이터가, LSTR(2631)에는 3등 당첨자의 LD 데이터(LD의 개수는 당첨자의 수만큼 반복된다)가 포함된다.As another example, the INT4 2630 includes the number data of the third prize winner, and the LSTR 2631 includes LD data of the third prize winner (the number of LDs is repeated by the number of winners).

세 번째 데이터 포맷 시퀀스는 내부 프로세스(Internal Process) 데이터 포맷으로 프로토콜 해석(Protocol parsing), 리포트 정보 모음(collect reportinformation), 리턴 결과(Return result) 데이터로 구성된다.The third data format sequence is an internal process data format and includes protocol parsing, collect report information, and return result data.

4. 서버 관리를 위한 전송 데이터 포맷을 설명하기로 한다.4. The transmission data format for server management will be described.

서버 관리를 위한 전송 데이터 포맷은 복권서버(30)와 로그/리포트 서버(40)간의 데이터 포맷이다.The transmission data format for server management is a data format between the lottery server 30 and the log / report server 40.

여기서는 디지털 전자 복권의 발권, 판매 등의 서버 관리 프로토콜 데이터 포맷의 실시예 설명한다.An embodiment of a server management protocol data format such as ticketing and sales of a digital electronic lottery will be described.

이와 같은 서버 관리(SFLP Admin) 프로토콜 데이터 포맷에는 역시 자체 개발한 프로토콜이 ??(SET)으로 제공되며, 서버 관리 프로토콜에는 (1) 서버 제어, (2) 로그/리포트 제어, (3) 스코어 보드 제어가 있다.In this server management (SFLP Admin) protocol data format, a protocol developed by itself is also provided as ?? (SET), and the server management protocol includes (1) server control, (2) log / report control, and (3) scoreboard. There is control.

서버관리 프로토콜은 발권 관리를 위한 SFLP 쌍으로 제공되었던 서비스 프로토콜(Service Protocol)과는 달리 명령어(Command)를 수행할 때마다 서버에서 제시하는 난수(challenge seed)를 포함하여 서명을 하여야만 명령을 내릴 수 있다. 이와 같은 서명에 따라 리플레이 공격(replay attack)을 사전에 방지할 수 있다.Unlike the Service Protocol, which was provided as an SFLP pair for ticketing management, the server management protocol must be signed with the challenge seed presented by the server each time a command is executed. have. According to such a signature, a replay attack can be prevented in advance.

(1) 서버 제어(Server Control)를 위한 데이터 포맷 시퀀스는 서버 챌린지, 클라이언트 명령 및 서버 응답으로 나눌 수 있다.(1) The data format sequence for server control can be divided into server challenge, client command and server response.

서버 제어 명령어는 서버의 기동, 중지, 종료, 복권 재충전(reload) 등을 수행하는 기본적인 명령어로써, 각각의 명령어에는 별도의 파라미터(parameter) 없이 관리자의 서명으로 명령의 유효성을 확인한다.The server control command is a basic command for starting, stopping, terminating, and reloading the lottery. Each command checks the validity of the command with an administrator's signature without additional parameters.

첫 번째 데이터 포맷 시퀀스는 서버 챌린지(Server challenge)는 INT4(2980)에 포함되며, 리플레이 공격(Replay atttack)을 방지하기 위해 서버에 접속하면 서버에서 난수를 발생시킨다.In the first data format sequence, the server challenge is included in INT4 (2980), and when a server is connected to prevent a replay atttack, the server generates a random number.

두 번째 데이터 포맷 시퀀스는 클라이언트 명령어 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second data format sequence is a general wrapper for the client instruction format, which is represented as 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP 포맷의 버전 정보가 INT2(1000)에 포함된다.Version information of the SFLP format is included in the INT2 1000.

그리고 명령어로는 다음 중 하나의 명령어(command)가 온다.The command comes with one of the following commands.

예를 들면, 스타트(START : INT2(2100))는 서버의 기동 명령어이고, 스톱(STOP : INT2(2110))은 서버의 중지 명령어, 셧다운(SHUTDOWN : INT2(2120))은 서버 완전 종료 (server program exit) 명령어, 플러쉬(FLUSH : INT2(2200))는 풀(Pool)에 있는 복권을 모두 지움 명령어, 재충전(RELOAD : INT2(2210))은 룰(Rule)에 따라 복권 풀(Pool) 채움 명령어, 자동충전(AUTOLOAD : INT2(2220))은 한 회차의 복권이 다 소진되었을 경우 자동 재충전(RELOAD) 명령어, 자동재충전 않음(NOAUTOLOAD : INT2(2230))은 자동 재충전(RELOAD) 해제 명령어이다.For example, start (START: INT2 (2100)) is a server start command, stop (STOP: INT2 (2110)) is a server stop command, and shutdown (SHUTDOWN: INT2 (2120)) is a server complete shutdown (server). program exit), flush (FLUSH: INT2 (2200)) clears all lottery tickets in the pool, and reload (RELOAD: INT2 (2210)) fills the lottery pools according to the rules. , AUTOLOAD (INT2 (2220)) is an automatic reload (RELOAD) command when the lottery runs out, and NOAUTOLOAD: INT2 (2230) is an automatic reload release command.

그리고 챌린지로 받은 난수값은 INT4(2980)에 포함되고, 서명자 인증(Signer Cert)과 관련된 관리자 인증서의 BIN 포맷은 STR(2990)에 포함되며, 서명에 사용된 알로리즘 식별자(ID)는 INT2 (2991)에 포함되고, 서명자 인증 이전까지 GID 데이터의 전체 서명값(Signature)이 STR(2992)에 포함된다.The random number received by the challenge is included in the INT4 (2980), the BIN format of the administrator certificate related to the Signer Cert is included in the STR (2990), and the algorithm identifier (ID) used for signing is INT2 ( 2991, and the entire signature value of the GID data is included in the STR 2992 until the signer authentication.

세 번째 데이터 포맷 시퀀스는 서버 응답 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면, 0x05464C50로 나타낸다.The third data format sequence is a general wrapper of the server response format and is represented by, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 리턴 코드로써 관리 프로토콜에 대한 응답 값이 INT4(2010)에 포함된다.As a return code, a response value for the management protocol is included in INT4 (2010).

이와 같은 리턴 코드는 예를 들면, 0은 정상적인 수행 성공(Success), 100은 프로토콜 에러(Syntax error), 110은 파라미터 오류(Parameter error), 200은 서명 확인 실패 (Signature Invalid), 800은 서버 작업 불가(Internal Error)로 리턴 코드를 설정 할 수 있다.Such a return code is, for example, 0 for successful execution, 100 for syntax error, 110 for parameter error, 200 for signature invalid, and 800 for server operation. The return code can be set to Internal Error.

(2) 로그/리포트 제어(Log/Report Control)를 위한 데이터 포맷 시퀀스 역시 서버 챌린지, 클라이언트 명령 및 서버 응답으로 나눌 수 있다.(2) The data format sequence for Log / Report Control can also be divided into Server Challenges, Client Commands, and Server Responses.

로그/리포트 제어 명령어는 서버의 상태를 로그(Log)로 남기거나 로그 레벨(Log level)을 제어하는 관리 명령어로서, 각각의 명령어는 관리자의 서명으로 명령의 유효성을 확인한다.The log / report control command is an administrative command that logs the status of the server as a log or controls the log level. Each command checks the validity of the command with an administrator's signature.

첫 번째 데이터 포맷 시퀀스는 서버 챌린지는 INT4(2980)에 포함되며, 리플레이 어택(Replay attack)을 방지하기 위해 서버에 접속하면 서버에서 난수를 발생시킨다.The first data format sequence is included in the server challenge INT4 2980, and generates random numbers when the server is connected to prevent a replay attack.

두 번째 데이터 포맷 시퀀스는 클라이언트 명령어 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second data format sequence is a general wrapper for the client instruction format, which is represented as 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP 포맷의 버전 정보가 INT2(1000)에 포함된다.Version information of the SFLP format is included in the INT2 1000.

그리고 명령어(Command)로는 다음 중 하나의 명령어가 온다.And Command is one of the following commands.

REPORT : INT2(2300)(로그 서버(Log Server) 에 현재 서버의 상태를 기록).REPORT: INT2 (2300) (Record current server's status in Log Server).

LOGLEVEL : INT2(2310)(로그 서버에 자동 기록될 로그의 레벨(level)을 설정).LOGLEVEL: INT2 (2310) (Set the level of logs to be automatically recorded on the log server).

여기서 REPORT를 위한 파라미터는 INT2(2301)에 기록되며, 이 값이 1이면 서버의 상태를 기록하는 내용을 에코 필드(Echo Field)로 응답(Reply) 필드에 전송한다.In this case, the parameter for REPORT is recorded in INT2 2301. If this value is 1, the information for recording the server status is transmitted to the reply field as an echo field.

LOGLEVEL을 위한 파라미터는 INT2(2311)에 기록되며, 0부터 9까지의 로그 레벨(Log level)(예를 들면, 0이면 로그 안 남김, 9이면 최대 로그)로 한다.The parameter for LOGLEVEL is recorded in INT2 (2311), and is set to a log level of 0 to 9 (for example, 0 for no log and 9 for maximum log).

그리고 챌린지로 받는 난수 값은 INT4(2980)에 포함된다.The random number received in the challenge is included in the INT4 2980.

서명자 인증(Signer Cert)은 STR(2990)에 포함되며, 이때, 관리자 인증서의 BIN 포맷(format) 데이터가 포함된다.The Signer Cert is included in the STR 2902, which includes the BIN format data of the administrator's certificate.

서명에 사용된 알고리즘 식별자(Sign Algorithm ID)는 INT2(2991)에 포함된다.The algorithm identifier (Sign Algorithm ID) used for signing is included in INT2 2991.

그리고 서명자 인증(Signer Cert) 이전까지의 GID 데이터 전체의 서명값(Signature)은 STR(2992)에 포함된다.The signature value of the entire GID data until the signer cert is included in the STR 2992.

세 번째 데이터 포맷 시퀀스는 서버 응답의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The third data format sequence is the general wrapper of the server response and is represented by, for example, 0x05464C50 in the LSTR included in the tag range.

그리고 리턴 코드로써 관리 프로토콜에 대한 응답 값이 INT4(2010)에 포함된다.As a return code, a response value for the management protocol is included in INT4 (2010).

이와 같은 리턴 코드는, 0은 정상적인 수행 성공(Success), 100은 프로토콜 에러(Syntax error), 110은 파라미터 오류(Parameter error), 200은 서명 확인 실패 (Signature Invalid), 410은 미발행 회차(Lotto Round not valid), 800은 서버 작업 불가(Internal Error)로 설정할 수 있다.Such a return code is 0 for successful execution, 100 for syntax error, 110 for parameter error, 200 for signature invalid, and 410 for low round. not valid, 800 can be set to Server Internal Error.

그리고 리포트(REPORT)를 위한 파라미터는 LSTR(2302)에 포함되고, 리포트서버에 기록되는 내용을 그대로 프로토콜에 포함하여 전송한다.The parameter for the report is included in the LSTR 2302, and the content recorded in the report server is transmitted as it is in the protocol.

(3) 스코어보드 제어(Scoreboard Control)를 위한 데이터 포맷 시퀀스 역시 서버 챌린지, 클라이언트 명령 및 서버 응답으로 나눌 수 있다.(3) The data format sequence for Scoreboard Control can also be divided into server challenge, client command and server response.

스코어보드(Scoreboard) 명령어는 복권의 매수, 상금구조 및 상금의 액수를 설정하는 명령어로써, 기본적인 명령어의 골격은 SFLP 관리 프로토콜(Administration Protocol)과 동일하다. 하나의 스코어보드(Scoreboard) 명령어 뒤에 따라오는 파라미터(parameter)는 각각 총 매수, 상금, 슬롯(Slot) 할당량, 난수(Random) 할당량을 나타낸다.The scoreboard command is a command for setting the number of lottery tickets, the prize structure, and the amount of the prize money. The basic command skeleton is the same as that of the SFLP Administration Protocol. Parameters following a Scoreboard command indicate the total number of copies, prizes, slot quotas, and random quotas, respectively.

만약 각 등위로 매수와 슬롯(slot)과 난수(random)할당량의 합이 일치하지 않거나, 총 발권매수와 등위별 매수의 합이 일치하지 않으면 파라미터 에러(Parameter error)가 발생된다.If the sum of slots and slots and random allocations does not match for each ranking, or if the sum of total ticketing and purchases for each ranking does not match, a parameter error occurs.

첫 번째 데이터 포맷 시퀀스인 서버 챌린지(Server challenge)는 INT4(2980)에 포함되며, 리플레이 공격(Replay attack)을 방지하기 위해 서버에 접속하면 서버에서 난수를 발생시킨다.The first data format sequence, Server Challenge, is included in INT4 (2980). When a server is connected to prevent a replay attack, the server generates a random number.

두 번째 데이터 포맷 시퀀스는 클라이언트 명령어 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second data format sequence is a general wrapper for the client instruction format, which is represented as 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP 포맷의 버전 정보는 INT2(1000)에 포함된다.Version information of the SFLP format is included in the INT2 1000.

명령어(Command)는 다음의 명령어 중 하나가 온다.Command comes with one of the following commands.

SETSCOREBOARD : INT2(2400)(복권의 매수 및 등위 및 상금을 설정한다).SETSCOREBOARD: INT2 (2400) (sets the number and rank and prize of the lottery).

GETSCOREBOARD : INT2(2500)(복권의 매수 및 등위 및 상금을 읽어온다).GETSCOREBOARD: INT2 (2500) (to read the number of lotteries, ranking and prize money).

그리고 스코어보드 설정을 위한 파라미터(Parameter(for SETSCOREBOARD))는 다음과 같다.The parameter (Parameter (for SETSCOREBOARD)) for setting the scoreboard is as follows.

전체 상금 구조 설정 파라미터.Global prize structure setting parameters.

INT2(2401): 발권 회차.INT2 (2401): Ticketing rounds.

INT2(2402) : 총 등위의 수.INT2 (2402): Number of total ranks.

INT4(2403) : 총 발권 매수.INT4 (2403): Total number of tickets issued.

INT4(2404) : 총 slot의 개수.INT4 (2404): Total number of slots.

INT4(2405) : 복권 만료기간(time_t value).INT4 2405: Lottery expiration time (time_t value).

1 등 상금 구조 설정 파라미터.1 prize structure setting parameters.

INT4(2410) : 1등 상금액.INT4 (2410): First prize amount.

INT4(2411) : 1등 당첨 복권 수.INT4 (2411): Number of winning lottery tickets.

INT4(2412) : 슬롯(slot)의 할당량.INT4 (2412): Quota quota.

INT4(2413) : 난수(random) 할당량.INT4 (2413): Random quota.

INT4(2414) : 연속 1등의 개수.INT4 (2414): Number of consecutive first place.

2등 상금 구조 설정 파라미터.Second prize structure setup parameter.

INT4(2420) : 2등 상금액.INT4 (2420): Second prize money.

INT4(2421) : 2등 당첨 복권 수.INT4 (2421): Number of winning lotteries.

INT4(2422) : 슬롯(slot)의 할당량.INT4 (2422): Quota of slot.

INT4(2423) : 난수(random) 할당량.INT4 (2423): Random quota.

3등 상금 구조 설정 파라미터.Third prize structure setup parameter.

INT4(2430) : 3등 상금액.INT4 (2430): Third prize amount.

INT4(2431) : 3등 당첨 복권 수.INT4 (2431): Number of winning lottery tickets.

INT4(2432) : 슬롯(slot)의 할당량.INT4 (2432): Quota quota.

INT4(2433) : 난수(random) 할당량.INT4 (2433): Random quota.

4등 상금 구조 설정 파라미터.Fourth prize structure setup parameter.

INT4(2440) : 4등 상금액.INT4 (2440): 4th prize money.

INT4(2441) : 4등 당첨 복권 수.INT4 (2441): Number of winning lottery tickets.

INT4(2445) : GLEPS Type A의 당첨 수량.INT4 (2445): Number of winners of GLEPS Type A.

INT4(2446) : GLEPS Type B의 당첨 수량.INT4 (2446): Number of winners of GLEPS Type B.

INT4(2447): GLEPS Type C의 당첨 수량.INT4 (2447): Number of winners of GLEPS Type C.

INT4(2448) : GLEPS Type D의 당첨 수량.INT4 (2448): Number of winners of GLEPS Type D.

INT4(2449): GLEPS Type E의 당첨 수량.INT4 (2449): Amount of winnings in GLEPS Type E.

5등 상금 구조 설정 파라미터.5th prize structure setting parameter.

INT4(2450) : 5등 상금액.INT4 (2450): 5th Prize.

INT4(2451) : 5등 당첨 복권 수.INT4 (2451): Number of winning lottery tickets.

INT4(2455) : GLEPS Type A의 당첨 수량.INT4 (2455): Number of winners of GLEPS Type A.

INT4(2456) : GLEPS Type B의 당첨 수량.INT4 (2456): Number of winners of GLEPS Type B.

INT4(2457) : GLEPS Type C의 당첨 수량.INT4 (2457): Number of winners of GLEPS Type C.

INT4(2458) : GLEPS Type D의 당첨 수량.INT4 (2458): Number of winners of GLEPS Type D.

INT4(2459) : GLEPS Type E의 당첨 수량.INT4 (2459): Number of winners of GLEPS Type E.

6등 상금 구조 설정 파라미터.6th prize structure setting parameter.

INT4(2460) : 6등 상금액.INT4 (2460): 6th Prize.

INT4(2461) : 6등 당첨 복권 수.INT4 (2461): Number of winning lottery tickets.

INT4(2465) : GLEPS Type A의 당첨 수량.INT4 (2465): Number of winners of GLEPS Type A.

INT4(2466) : GLEPS Type B의 당첨 수량.INT4 (2466): Number of winners of GLEPS Type B.

INT4(2467) : GLEPS Type C의 당첨 수량.INT4 (2467): Number of winners of GLEPS Type C.

INT4(2468) : GLEPS Type D의 당첨 수량.INT4 (2468): Number of winners of GLEPS Type D.

INT4(2469) : GLEPS Type E의 당첨 수량.INT4 (2469): Number of winners of GLEPS Type E.

7등 상금 구조 설정 파라미터.7th prize structure setting parameter.

STR(2470) : 7등 상품명.STR (2470): 7th class name.

INT4(2471) : 7등 당첨 복권 수.INT4 (2471): Number of winning lottery tickets.

INT4(2472) : 슬롯 할당량.INT4 (2472): Slot quota.

INT4(2473) : 난수 할당량.INT4 (2473): Random number quota.

8등 상금 구조 설정 파라미터.8th prize structure setting parameter.

STR(2480) : 8등 상품명.STR (2480): 8th class name.

INT4(2481) : 8등 당첨 복권 수.INT4 (2481): Number of winning lottery tickets.

INT4(2482) : 슬롯의 할당량.INT4 (2482): The quota of the slot.

INT4(2483) : 난수 할당량.INT4 (2483): Random number quota.

9등 상금 구조 설정 파라미터.9th prize structure setting parameter.

STR(2490) : 9등 상품명.STR (2490): 9th class name.

INT4(2491) : 9등 당첨 복권 수.INT4 (2491): 9th place winning lottery.

INT4(2492) : 슬롯의 할당량.INT4 (2492): Quota quota.

INT4(2493) : 난수 할당량.INT4 (2493): Random number quota.

10등 상금 구조 설정 파라미터.10th prize structure setting parameter.

STR(2600): 10등 Point점수.STR (2600): 10 points.

INT4(2601) : 10등 Point 당첨 복권 수.INT4 (2601): Number of winning 10 lottery points.

INT4(2602) : 슬롯의 할당량.INT4 (2602): Quota quota.

INT4(2603) : 난수 할당량.INT4 (2603): Random number quota.

-11등 상금 구조 설정 파라미터.-11 prize structure setting parameters.

STR(2610) : 11등 Point점수.STR (2610): 11 points.

INT4(2611) : 11등 Point 당첨 복권 수.INT4 (2611): Number of points winning 11 lotteries.

INT4(2612) : 슬롯의 할당량.INT4 (2612): Quota quota.

INT4(2613) : 난수 할당량.INT4 (2613): Random number quota.

12등 상금 구조 설정 파라미터.12th prize structure setting parameter.

STR(2620) : 12등 Point점수.STR (2620): 12 points.

INT4(2621) : 12등 Point 당첨 복권 수.INT4 (2621): Number of winning lottery tickets for 12th place.

INT4(2622) : 슬롯의 할당량.INT4 (2622): Quota quota.

INT4(2623) : 난수 할당량.INT4 (2623): Random number quota.

그리고 스코어 보드 획득을 위한 파라미터(Parameter(for GETSCOREBOARD))는 INT2(2401)에 포함되며, 복권 회차 데이터가 포함된다.In addition, the parameter for obtaining the score board (Parameter (for GETSCOREBOARD)) is included in the INT2 2401, and the lottery round data is included.

그리고 챌린지로부터 받은 난수 값은 INT4(2980)에 포함된다.The random number value received from the challenge is included in INT4 2980.

서명자 인증(Signer Cert)과 관련된 관리자 인증서의 BIN 포맷은 STR(2990)에 포함되며, 서명에 사용된 알고리즘 식별자(Algorithm ID)(Sign Algorithm ID)는 INT2 (2991)에 포함되고, 서명자 인증(Signer Cert) 이전까지 GID 데이터 전체의 서명값(Signature)은 STR(2992)에 포함된다.The BIN format of the administrator certificate associated with the Signer Cert is contained in the STR 2990, the Algorithm ID used for signing is included in the INT2 2991, and the Signer Certificate is signed. Until the Cert), the signature of the entire GID data is included in the STR 2992.

세 번째 데이터 포맷 시퀀스는 서버 응답의 제너럴 랩퍼로서 태그 범위에 포함된 LSTR에 예를 들면, 0x05464C50로 나타내고, 관리 프로토콜의 응답 포맷인 리턴 코드가 INT4(2010)에 포함된다.The third data format sequence is represented as 0x05464C50 in the LSTR included in the tag range as a general wrapper of the server response, and the return code, which is the response format of the management protocol, is included in INT4 (2010).

이때, 0은 정상적인 수행 성공(Success), 100은 프로토콜 에러(Syntax error), 110은 파라미터 오류(Parameter error), 200은 서명 확인 실패(Signature Invalid), 800은 서버 작업 불가(Internal Error)로 리턴 코드를 설정할 수 있다.At this time, 0 is returned to normal execution success, 100 is a protocol error, 110 is a parameter error, 200 is a signature verification failure, and 800 is a server internal failure. You can set the code.

그리고 스코어보드를 획득하기 위한 파라미터(Parameter(for GETSCOREBOARD))는 앞에서 설명한 스코어보드를 획득하기 위한 파라미터(Parameter(for SETSCOREBOARD))와 동일하다.The parameter for obtaining the scoreboard (Parameter (for GETSCOREBOARD)) is the same as the parameter for obtaining the scoreboard described above (Parameter (for SETSCOREBOARD)).

5. 복권 당첨 확인을 위한 전송 데이터 포맷의 실시예를 설명하기로 한다. 이때 B타입 복권 당첨 여부를 관리자가 확인하기 위한 파라미터(Parameter for QUERYBLOTTO)를 설명하기로 한다.5. An embodiment of the transmission data format for checking the lottery winning will be described. In this case, a parameter for checking whether or not the B-type lottery is won will be described.

QueryBLotto 명령어는 B 타입의 복권의 당첨 여부를 관리자가 확인하기 위한 명령어로써, 별도의 오프 라인(off-line)으로 추첨한 결과를 관리자가 입력하여 복권서버에 조회하면 복권서버는 당첨자의 복권 정보를 출력하여 이를 근거로 상금을지급한다.The QueryBLotto command is a command for the administrator to check whether the B-type lottery is won or not. If the administrator inputs the result of drawing the lottery off-line to the lottery server, the lottery server searches the lottery information of the winner. Print out and pay the prize based on this.

첫 번째 데이터 포맷 시퀀스로 서버 챌린지는 INT4(2980)에 포함되며, 리플레이 어택(Replay attack)을 방지하기 위해 서버에 접속하면 서버에서 난수를 발생시킨다.In the first data format sequence, the server challenge is included in INT4 2980, and when the server is connected to prevent a replay attack, the server generates a random number.

두 번째 데이터 포맷 시퀀스로 클라이언트 명령어 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면 0x05464C50로 나타낸다.The second sequence of data formats is the general wrapper for the client instruction format, which is represented as 0x05464C50 in the LSTR included in the tag range.

그리고 SFLP 포맷의 버전 정보가 INT2(1000)에 포함된다.Version information of the SFLP format is included in the INT2 1000.

명령어(Command)는 QUERYBLOTTO(INT2(2600))로써, B 타입 복권(예를 들면 6/49, Powerball) 당첨자를 조회한다.The command is QUERYBLOTTO (INT2 (2600)), which queries the winner of a type B lottery ticket (eg 6/49, Powerball).

복권 당첨 여부 중, 복권회차 정보는 INT2(2601)에 포함되며, STR(2602)는 예를 들면 6/49 복권 게임(Lotto game)을 위한 사용자의 선택(choice)으로, 구매자가 선택한 볼(ball)의 번호는 문자 타입(character type)으로 저장되며(0 - 255) 이 문자(character)가 연속으로 온다.Whether or not the lottery is won, the lottery ticket information is included in the INT2 (2601), the STR (2602) is the user's choice (for example, 6/49 lottery game), the buyer selected ball (ball) ) Are stored as a character type (0 to 255), followed by a sequence of characters.

그리고 STR(2603)는 예를 들면, 파워볼 게임(Powerball game)을 위한 사용자의 선택(choice)으로, 구매자가 선택한 볼(ball)의 번호는 문자 타입(character type)으로 저장되며(0 - 255) 이 문자(character)가 연속으로 온다.(내부적으로( Implicit)맨 앞 문자(character)는 파워 볼(Power Ball)로 간주한다.The STR 2603 is, for example, a user's choice for a Powerball game, and the number of balls selected by the buyer is stored as a character type (0-255). This character comes in a series (implicitly the first character is considered a Power Ball).

챌린지로 받은 난수 값은 INT4(2980)에 포함되며, 서명자 인증(Signer Cert)과 관련된 관리자 인증서의 BIN 포맷은 STR(2990)에 포함되고, 서명에 사용된 알고리즘 식별자(Algorithm ID)는 INT2 (2991)에 포함되며, 서명자 인증(Signer Cert)이전까지의 GID 데이터의 전체 서명값(Signature)은 STR(2992)에 포함된다.The random number value received by the challenge is contained in INT4 (2980), the BIN format of the administrator certificate associated with the Signer Cert is contained in the STR 2990, and the algorithm ID used for signing is INT2 (2991). ), And the entire signature value of the GID data until the Signer Cert is included in the STR 2992.

세 번째 데이터 포맷 시퀀스로, 서버 응답 포맷의 제너럴 랩퍼로써 태그 범위에 포함된 LSTR에 예를 들면, 0x05464C50로 나타내다.A third data format sequence, represented as 0x05464C50 in the LSTR included in the tag range as a general wrapper of the server response format.

그리고 리턴 코드로서 관리 프로토콜에 대한 응답 값이 INT4(2010)에 포함된다.The response value for the management protocol is included in the INT4 (2010) as a return code.

리턴코드의 설정은 다음과 같이 할 수 있다.The return code can be set as follows:

0 : 정상적인 수행 성공(Success)0: Normal execution success

100 : 프로토콜 에러(Syntax error)100: Syntax error

110 : 파라미터 오류(Parameter error)110: parameter error

200 : 서명 확인 실패(Signature Invalid)200: Signature Invalid

800 : 서버 작업 불가(Internal Error)800: Server not working (Internal Error)

서버 응답 파라미터로는 다음과 같은 것들이 포함된다.Server response parameters include the following:

INT4(2610) ; 1 등 당첨자의 수.INT4 2610; Number of winners.

LSTR(2611) : 1등 당첨자의 LD(LD의 개수는 당첨자의 수만큼 반복).LSTR 2611: LD of the first prize winner (the number of LDs is repeated by the number of winners).

INT4(2620) : 2등 당첨자의 수.INT4 (2620): Number of winners in second place.

LSTR(2621) : 2등 당첨자의 LD(LD의 개수는 당첨자의 수만큼 반복).LSTR 2621: LD of the second-place winner (the number of LDs is repeated by the number of winners).

INT4(2630) : 3등 당첨자의 수INT4 (2630): Number of winners in third place

LSTR(2631) : 3등 당첨자의 LD(LD의 개수는 당첨자의 수만큼 반복).LSTR (2631): LD of 3rd prize winners (number of LDs repeated as many as winners).

이상에서 설명된 본 발명은 다음과 같은 효과가 있다.The present invention described above has the following effects.

첫째, 오프라인(off-line)에서 서비스되었던 다양한 복권 서비스들이 인터넷과 같은 온라인(on-line) 상에서 수행될 수 있도록 함은 물론 전용 프로토콜(SFLP)을 사용함으로써 높은 신뢰성을 유지한다.First, various lottery services that were serviced off-line can be performed on-line such as the Internet as well as maintaining high reliability by using a dedicated protocol (SFLP).

둘째, 복권 서비스 전용의 전송 데이터 포맷을 이용한 전용 프로토콜을 사용함으로서 판매를 대행하는 서버를 개발하는데 있어서, 보다 간단한 개발환경을 제공한다.Second, in developing a server for sales by using a dedicated protocol using a transmission data format dedicated to lottery services, a simpler development environment is provided.

이상 설명한 내용을 통해 당업자라면 본 발명의 기술 사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit of the present invention.

따라서, 본 발명의 기술적 범위는 실시 예에 기재된 내용으로 한정하는 것이 아니라 특허 청구 범위에 의해서 정해져야 한다.Therefore, the technical scope of the present invention should not be limited to the contents described in the embodiments, but should be defined by the claims.

Claims (17)

설정된 헤더 문자열에 따라 응용 프로그램을 구분하는 태그(TAG) 필드 영역과, 상기 태그 필드 영역에 의해 구별된 응용 프로그램에 의해 동작되는 실제 데이터를 포함하는 밸류 필드 영역을 기본으로 포함하고, 상기 밸류 필드 영역의 전체 크기를 나타내는 길이 필드 영역을 선택적으로 포함하는 것을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.A tag field area for classifying an application program according to a set header string, and a value field area including actual data operated by an application program distinguished by the tag field area, and the value field area. And optionally including a length field area representing the total size of the digital lottery ticket data format. 제 1 항에 있어서, 상기 전송 데이터 포맷의 전체 길이는 4바이트의 배수로 정렬된 것을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.2. The digital electronic lottery transmission data format according to claim 1, wherein the total length of the transmission data format is arranged in multiples of 4 bytes. 제 2 항에 있어서, 상기 전송 데이터 포맷은 2바이트 태그 필드 영역과 2바이트 밸류 필드 영역으로 구성되거나, 4바이트 태그 필드 영역과 4바이트 밸류 필드 영역으로 구성되는 것을 특징으로 하는 전송 데이터 포맷.The transmission data format according to claim 2, wherein the transmission data format includes a 2-byte tag field region and a 2-byte value field region, or a 4-byte tag field region and a 4-byte value field region. 제 2 항에 있어서, 상기 전송 데이터 포맷은 2바이트 태그 필드 영역과 2바이트 길이 필드 영역 및 4바이트 배수의 밸류 필드 영역으로 구성되거나, 4바이트 태그 필드 영역과 4바이트 길이 필드 영역 및 4바이트 배수의 밸류 필드 영역으로 구성되는 것을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.3. The transmission data format of claim 2, wherein the transmission data format includes a 2-byte tag field area, 2-byte length field area, and 4-byte value field area, or 4-byte tag field area, 4-byte length field area, and 4-byte multiples. A digital electronic lottery transmission data format comprising a value field area. 제 1 항에 있어서, 상기 밸류 필드 영역이 정수로 구성되는 경우 상기 전송 데이터 포맷에 상기 길이 필드 영역이 포함되지 않고, 상기 밸류 필드 영역이 문자열을 포함하는 경우 상기 전송 데이터 포맷에 상기 길이 필드 영역이 포함되는 것을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.2. The method of claim 1, wherein the length field area is not included in the transmission data format when the value field area includes integers, and the length field area is included in the transmission data format when the value field area includes a character string. And digital electronic lottery transmission data format. 제 1 항에 있어서, 상기 태그 필드 영역에 디지털 전자 복권 구매 요청에 해당하는 문자열 데이터를 포함하고, 상기 밸류 필드 영역에 상기 디지털 전자 복권 전송 데이터 포맷의 버전 정보와 복권 타입 정보, 상기 복권의 판매대행서버 정보, 상기 복권을 구매한 사용자 정보, 상기 복권의 발권 기관 정보, 상기 복권의 등위 상금 포인트 상품 등 프라이즈 정보, 상기 복권 구매자의 시간 날인 토큰 정보(옵션), 게임 정보, 보안 정보 데이터들이 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보 데이터가 포함됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.The tag field region of claim 1, wherein the tag field region includes string data corresponding to a digital electronic lottery purchase request, and the value field region includes version information of the digital electronic lottery transmission data format, lottery type information, and sales representative of the lottery. Server information, user information of purchasing the lottery ticket, ticketing authority information of the lottery ticket, prize information such as prize money prize prize of the lottery ticket, time stamp token information of the lottery buyer (optional), game information, security information data, and the like. And total length information data of the information data of the value field area is included in the length field area. 제 1 항에 있어서, 상기 태그 필드 영역에 디지털 전자 복권 구매 요청에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 상기 실제 복권 구매자 또는 은닉 복권 구매자 정보, 상기 디지털 전자 복권 판매대행서버 정보, 발권 추적을 위한 고유의 시리얼 정보, 상기 은닉 복권 구매자 정보의 버전 정보, 상기 복권 구매자의 사용자 식별자 정보, 상기 복권 구매자의 등록 식별자 정보, 상기 복권 판매자 식별자 정보, 구매 요청 시간 날인 값 정보, 난수 시드 데이터(옵션), 상기 판매대행서버의 시간 문자열 정보, 상기 복권이 즉석식이냐 추첨식이냐 하는 정보, 서명자 인증 정보, 서명에 사용된 알고리즘 식별자 정보 데이터들이 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보가 포함됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.The tag field region of claim 1, wherein the tag field region includes a string corresponding to a digital electronic lottery purchase request, and the value field region includes the actual lottery purchaser or hidden lottery purchaser information, the digital electronic lottery sales agent server information, and ticketing tracking. Unique serial information, version information of the hidden lottery buyer information, user identifier information of the lottery buyer, registration identifier information of the lottery buyer, the lottery seller identifier information, purchase request time stamp value information, random seed data (optional) ), Time string information of the sales representative server, information that the lottery is an instant or lottery, signer authentication information, algorithm identifier information data used for signing, and the information data of the value field area in the length field area. D, characterized in that the full length information of the Digital Electronic Lottery Transfer Data Format. 제 1 항에 있어서, 상기 태그 필드 영역에 디지털 전자 복권 발권 관리에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 발권 요청, 복권 확인, 복권 조회 요구, 리포트 및 복권 당첨자 조회 정보 데이터가 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 정보 데이터들의 전체 길이 정보가 포함됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.The tag field region of claim 1, wherein the tag field region includes a character string corresponding to digital electronic lottery ticketing management, the value field region includes a ticketing request, lottery confirmation, lottery inquiry request, report, and lottery winner inquiry information data. And the total length information of the information data of the value field area is included in the length field area. 제 8 항에 있어서, 상기 발권 요청시의 상기 데이터 포맷은,The method of claim 8, wherein the data format at the time of ticketing request, 상기 발권 관리 요청 데이터 포맷에 해당하는 문자열과, 상기 복권의 프로토콜 버전 정보, 상기 복권 발권을 요청하는 명령어로 구성되는 요청 포맷과,A request format including a character string corresponding to the ticketing management request data format, protocol version information of the lottery ticket, and a command for requesting the lottery ticketing ticket; 상기 발권 관리 요청에 대한 발권 관리 요청 응답 데이터 포맷에 해당하는 문자열과, 상기 프로토콜에 대한 리턴 코드 및 복권의 매수를 나타내는 복권 카운트와 상기 복권 데이터에 정의된 복권 데이터의 시퀀스로 구성되는 요청 응답 포맷과,A request response format including a character string corresponding to a ticketing management request response data format for the ticketing management request, a lottery count indicating a return code for the protocol and the number of lottery tickets, and a sequence of lottery data defined in the lottery data; , 상기 프로토콜의 해석 데이터, 복권 발권 요청 데이터 및 복권 데이터 저장 데이터 쌍 및 복권 데이터 리턴 데이터로 구성된 내부 프로세스 포맷으로 구성됨을특징으로 하는 디지털 전자 복권 전송 데이터 포맷.And an internal process format consisting of interpretation data of the protocol, lottery ticketing request data, lottery data storage data pairs, and lottery data return data. 제 8 항에 있어서, 상기 복권 확인시의 상기 데이터 포맷은,The method of claim 8, wherein the data format at the time of lottery confirmation, 상기 복권 확인 요청 데이터 포맷에 해당하는 문자열과, 상기 복권의 프로토콜 버전 정보, 상기 복권 확인을 요청하는 명령어로 구성되는 요청 포맷과,A request format including a character string corresponding to the lottery confirmation request data format, protocol version information of the lottery, and a command for requesting the lottery confirmation; 상기 발권 확인 요청에 대한 발권 확인 요청 응답 데이터 포맷에 해당하는 문자열과, 상기 프로토콜에 대한 리턴 코드 및 복권의 상기 복권 데이터에 정의된 복권 데이터의 시퀀스로 구성되는 요청 응답 포맷과,A request response format including a character string corresponding to a ticketing confirmation request response data format for the ticketing confirmation request, a return code for the protocol, and a sequence of lottery data defined in the lottery data of the lottery; 상기 프로토콜의 해석 데이터, 발권 복권 번호와 은닉 식별자 일치 확인 데이터 및 결과와 복권 데이터의 리턴 데이터로 구성된 내부 프로세스 포맷으로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.And an internal process format consisting of interpretation data of the protocol, ticketing lottery number and hidden identifier matching confirmation data, and result and return data of the lottery data. 제 8 항에 있어서, 상기 복권 조회 요청의 상기 데이터 포맷은,The method of claim 8, wherein the data format of the lottery inquiry request is 상기 복권 조회 요청 데이터 포맷에 해당하는 문자열과, 상기 복권의 프로토콜 버전 정보, 상기 리포트를 요청하는 명령어로 구성되는 요청 포맷과,A request format including a character string corresponding to the lottery inquiry request data format, protocol version information of the lottery, and a command for requesting the report; 상기 리포트에 대한 리포트 복권 조회 응답 데이터 포맷에 해당하는 문자열과, 상기 프로토콜에 대한 리턴 코드 및 복권의 상기 복권 데이터에 정의된 복권 데이터의 시퀀스로 구성되는 요청 응답 포맷과,A request response format including a character string corresponding to a report lottery inquiry response data format for the report, a return code for the protocol, and a sequence of lottery data defined in the lottery data of the lottery; 상기 프로토콜의 해석 데이터, 복권 번호 일치 데이터 및 결과와 복권 데이터의 리턴 데이터로 구성된 내부 프로세스 포맷으로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.And an internal process format consisting of the interpretation data of the protocol, the lottery number matching data, and the result and return data of the lottery data. 제 8 항에 있어서, 상기 리포트 시의 상기 데이터 포맷은,The method of claim 8, wherein the data format at the time of report, 상기 리포트 데이터 포맷에 해당하는 문자열과, 상기 복권의 프로토콜 버전 정보, 상기 복권 조회를 요청하는 명령어 및 발권 회차로 구성되는 요청 포맷과,A request format including a character string corresponding to the report data format, protocol version information of the lottery ticket, a command for requesting the lottery inquiry, and a ticketing sequence; 상기 리포트 요청에 대한 리포트 응답 데이터 포맷에 해당하는 문자열과, 상기 프로토콜에 대한 리턴 코드 및 복권의 상금 구조 시퀀스로 구성되는 요청 응답 포맷과,A request response format comprising a character string corresponding to a report response data format for the report request, a return code for the protocol, and a lottery prize structure sequence; 상기 프로토콜의 해석 데이터, 리포트 정보 모음 및 리포트 리턴 결과 데이터로 구성된 내부 프로세스 포맷으로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.And an internal process format consisting of interpretation data of the protocol, report information collection and report return result data. 제 8 항에 있어서, 상기 복권 당첨자 조회시의 상기 데이터 포맷은,The method of claim 8, wherein the data format at the time of querying the lottery winner, 상기 당첨자 조회 요청 데이터 포맷에 해당하는 문자열과, 상기 복권의 프로토콜 버전 정보, 상기 복권 차수와 발권 회차 정보로 구성되는 요청 포맷과,A request format including a character string corresponding to the winner inquiry request data format, protocol version information of the lottery, the lottery order, and ticketing turn information; 상기 복권 당첨자 조회에 대한 데이터 포맷에 해당하는 문자열과, 상기 프로토콜에 대한 리턴 코드 및 복권의 상금 구조 시퀀스로 구성되는 요청 응답 포맷과,A request response format consisting of a character string corresponding to a data format for the lottery winner inquiry, a return code for the protocol, and a prize structure sequence of the lottery; 상기 프로토콜의 해석 데이터, 리포트 정보 모음 및 리포트 리턴 결과 데이터로 구성된 내부 프로세스 포맷으로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.And an internal process format consisting of interpretation data of the protocol, report information collection and report return result data. 제 1 항에 있어서, 상기 태그 필드 영역에 서버 관리 프로토콜에 해당되는 문자열이 포함되고, 상기 밸류 필드 영역에 서버 제어, 로그/리포트 제어 및 스코어보드 제어 데이터가 포함되고, 상기 길이 필드 영역에 상기 밸류 필드 영역의 상기 서버 제어, 로그/리포트 제어 및 스코어보드 제어 데이터들의 전체 길이 정보가 포함됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.The method of claim 1, wherein a string corresponding to a server management protocol is included in the tag field area, server control, log / report control, and scoreboard control data are included in the value field area, and the value is included in the length field area. And digital data of the server control, log / report control, and scoreboard control data of the field area. 제 14 항에 있어서, 상기 서버 제어와 관련된 데이터 포맷은,15. The method of claim 14, wherein the data format related to server control, 서버에서 난수를 발생시켜 리플레이 공격을 방지하는 서버 채널지와,A server channel that generates random numbers on the server to prevent replay attacks, 상기 서버의 기동, 중지, 종료, 복권 재충전 등을 수행하는 명령어, 서명자 인증, 서명자 인증에 사용된 알고리즘 식별자 데이터로 구성된 클라이언트 명령어 및,A command for executing the server, starting, stopping, terminating, recharging the lottery, a client command including algorithm identifier data used for signer authentication, signer authentication, and 서버 관리 프로토콜에 대한 리턴 코드로 구성된 서버 응답 데이터로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.Digital electronic lottery transmission data format, characterized in that consisting of server response data consisting of a return code for the server management protocol. 제 14 항에 있어서, 상기 로그/리포트와 관련된 데이터 포맷은,15. The method of claim 14, wherein the data format related to the log / report, 서버에서 난수를 발생시켜 리플레이 공격을 방지하는 서버 채널지와,A server channel that generates random numbers on the server to prevent replay attacks, 상기 현재 서버의 상태, 로그의 레벨, 채린지로 받은 난수 값, 서명자 인증 및 서명에 사용된 알고리 식별자 데이터로 구성된 클라이언트 명령어 및,A client command comprising the status of the current server, a log level, random numbers received by a fingerprint, algorithm identifier data used for signer authentication and signature, and 서버 관리 프로토콜에 대한 리턴 코드로 구성된 서버 응답 데이터로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.Digital electronic lottery transmission data format, characterized in that consisting of server response data consisting of a return code for the server management protocol. 제 14 항에 있어서, 상기 스코어보드 제어와 관련된 데이터 포맷은,The method of claim 14, wherein the data format associated with the scoreboard control is: 서버에서 난수를 발생시켜 리플레이 공격을 방지하는 서버 채널지와,A server channel that generates random numbers on the server to prevent replay attacks, 상기 복권의 매수, 등위 및 상금을 설정하는 스코어보드와 상기 복권의 매수, 등위 및 상금을 읽어오는 스코어 보드와 관련된 명령어, 챌린지로 받은 난수 값, 서명자 인증 및 서명에 사용된 알고리 식별자 데이터로 구성된 클라이언트 명령어 및,A scoreboard that sets the number, rank, and prize of the lottery, and instructions related to the scoreboard that reads the number, rank, and prize of the lottery, random values received by the challenge, and algorithm identifier data used for signer authentication and signature Client commands, 서버 관리 프로토콜에 대한 리턴 코드로 구성된 서버 응답 데이터로 구성됨을 특징으로 하는 디지털 전자 복권 전송 데이터 포맷.Digital electronic lottery transmission data format, characterized in that consisting of server response data consisting of a return code for the server management protocol.
KR1020020001180A 2002-01-09 2002-01-09 Digital cyber-lottery transmitting data format KR20030060465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020001180A KR20030060465A (en) 2002-01-09 2002-01-09 Digital cyber-lottery transmitting data format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020001180A KR20030060465A (en) 2002-01-09 2002-01-09 Digital cyber-lottery transmitting data format

Publications (1)

Publication Number Publication Date
KR20030060465A true KR20030060465A (en) 2003-07-16

Family

ID=32217425

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020001180A KR20030060465A (en) 2002-01-09 2002-01-09 Digital cyber-lottery transmitting data format

Country Status (1)

Country Link
KR (1) KR20030060465A (en)

Similar Documents

Publication Publication Date Title
US10931457B2 (en) Systems and methods for blockchain-based digital lottery ticket generation and distribution
US11582209B2 (en) Trusted communications between untrusting parties
US6962530B2 (en) Authentication in a secure computerized gaming system
US6119229A (en) Virtual property system
US7116782B2 (en) Encryption in a secure computerized gaming system
US7892087B1 (en) Authentication of game results
US7008317B2 (en) Computer gambling game
US6216227B1 (en) Multi-venue ticketing using smart cards
FI109278B (en) Method and arrangement for organizing electronic instant lottery
US20030014639A1 (en) Encryption in a secure computerized gaming system
US20060068913A1 (en) Methods and apparatus for facilitating game play and generating an authenticatable audit-trail
US20010008842A1 (en) Method and apparatus for securing a computer-based game of chance
US20120220362A1 (en) Lottery Method and System
EA003921B1 (en) Method enabling a purchaser to ask for the execution of an obligation related to a card and enabling an emitter to recognize said obligation
US8197333B2 (en) Method and management system for gaming management between a gaming management center and at least one gaming terminal, gaming management center and gaming terminal
KR20030060465A (en) Digital cyber-lottery transmitting data format
US10997827B2 (en) Distributed and deterministic random number generation for lottery drawings
KR20030060467A (en) method for managing digital cyber-lottery games, and system for the same
AU2001245518B2 (en) Encryption in a secure computerized gaming system
AU2001245518A1 (en) Encryption in a secure computerized gaming system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application