CN113888290A - Online course transaction method and system based on block chain intelligent contract - Google Patents

Online course transaction method and system based on block chain intelligent contract Download PDF

Info

Publication number
CN113888290A
CN113888290A CN202111487661.8A CN202111487661A CN113888290A CN 113888290 A CN113888290 A CN 113888290A CN 202111487661 A CN202111487661 A CN 202111487661A CN 113888290 A CN113888290 A CN 113888290A
Authority
CN
China
Prior art keywords
course
student
module
teacher
interface
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111487661.8A
Other languages
Chinese (zh)
Inventor
方莹
陈夏润
王雅仪
胡叶舟
肖遥
刘宇航
刘军杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yanling Wangwei Intelligent Technology Co ltd
Original Assignee
Beijing Yanling Wangwei Intelligent Technology Co ltd
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 Beijing Yanling Wangwei Intelligent Technology Co ltd filed Critical Beijing Yanling Wangwei Intelligent Technology Co ltd
Priority to CN202111487661.8A priority Critical patent/CN113888290A/en
Publication of CN113888290A publication Critical patent/CN113888290A/en
Pending legal-status Critical Current

Links

Images

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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Technology (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an online course transaction method and system based on a block chain intelligent contract, which can write commission of a third-party intermediary service mechanism into the intelligent contract for disclosure by combining key transaction operation with the intelligent contract, can ensure correct fund flow direction by a transaction mode of directly paying teachers and intermediaries one lesson at a time, can effectively avoid the occurrence of explosion situation by a refund mechanism of the intelligent contract, can prevent the third-party intermediary service mechanism from self-tampering and deleting by linking evaluation, and ensure that the evaluation is real and can not be tampered and traced. The invention can make the commission of the third-party intermediary service mechanism transparent, ensure the evaluation effectiveness and avoid the situation of money rolling and running of the mechanism.

Description

Online course transaction method and system based on block chain intelligent contract
Technical Field
The invention relates to the technical field of block chains, in particular to an online course transaction method and system based on a block chain intelligent contract.
Background
When a teacher is searched for professional knowledge or skill learning, due to asymmetry of information or limited time and energy, the student and the teacher are difficult to match quickly, and often a third party is needed to be used as a central hub to contact the student and the teacher.
In the traditional online course transaction system, a third-party intermediary service mechanism serves as a centralized platform for unified centralized management, provides a bridge for communication between students and teachers, and can quickly match the requirements of both parties. However, as the centralized system has defects, the third-party intermediary service organization also has the problems of opaque commission collection, unreal student evaluation and possible lightning explosion at any time, and the value loss caused by the problems is finally transmitted to the user.
Disclosure of Invention
In order to solve the problems of the existing platform, the invention provides the online course transaction method and the online course transaction system based on the block chain intelligent contract, which can ensure that the commission of a third-party intermediary service mechanism is transparent, ensure the evaluation to be real and traceable and avoid the occurrence of thunder explosion.
The technical scheme provided by the invention is as follows: an online course transaction method based on a block chain intelligent contract is characterized in that block chain account addresses are bound to students, intermediary service organizations and teachers through a course transaction platform, intelligent contracts following the EtherFang ERC20 token specification are deployed in the EtherFang, commission information is disclosed, the students purchase course tokens through calling a contract value storage interface when registering, the contracts automatically pay course tokens to the teachers and the intermediaries after courses are finished, the intermediaries and the teachers convert the obtained course tokens into digital currency through calling a contract extraction interface, the rest course tokens are converted into the digital currency after a certain commission fee is deducted through a contract fee refund interface when the students refund the courses, and feedback evaluation of the students on the courses of the teachers is stored in the chain after the courses are finished; the method mainly comprises the following steps: the intelligent contract compiling method comprises an intelligent contract compiling stage, an intelligent contract compiling and deploying stage and a front-end and back-end intelligent contract calling stage; wherein:
the intelligent contract compiling stage specifically executes the following steps:
step 1, developing the intelligent contract by using a solid language, inheriting an ERC20 protocol, realizing a standard interface function, setting the name and the issuing total amount of a course token, setting an account address and a key value pair corresponding to a balance, an account address and a key value pair corresponding to a role identity, and an account address and a key value pair fed back by evaluation;
step 2, the contract provides a stored value interface for the outside, the stored value interface Deposit realizes the exchange between the digital currency and the course token, the caller transfers the digital currency to the contract address, the contract address transfers the course token to the caller, the exchange ratio value rate is stored in the storage area storage as a state constant, and the change cannot be changed once set;
step 3, the contract provides a payment interface to the outside, the payment interface Pay realizes that the student pays the course token to the teacher and the intermediary, when the interface is called, the caller course token is deducted, and the deducted course token is transferred to the balance corresponding to the account address of the teacher and the intermediary according to a certain proportion;
step 4, the contract provides an extraction interface for the outside, the extraction interface Withdraw realizes the exchange of course tokens by the teacher and the middlings, the caller transfers course tokens to the contract address, the contract address transfers digital currency to the caller, and the exchange ratio value is the rate state constant defined in the step 2;
step 5, the contract provides an evaluation interface for the outside, the evaluation interface Comment realizes the requirement of timely feedback of the student to the course, when the interface is called, the student can perform the course feedback on the teacher in time, and the evaluation content is saved on the chain, so that the evaluation can be traced and cannot be tampered;
step 6, the contract provides a Refund interface to the outside, the Refund interface reflnd realizes the Refund requirement of the student, when the interface is called, the curriculum token of the caller is deducted, the corresponding digital currency is obtained according to the exchange ratio value rate, wherein the commission charge tax with a certain ratio is transferred into the intermediary account address, and the digital currency with the commission charge deducted is transferred into the student account address;
the intelligent contract compiling and deploying stage specifically executes the following steps:
step 7, after the intelligent contract is compiled, compiling by using a development framework truffle based on an Ether solid language to generate ABI and Bytecode;
step 8, performing local test after compiling success, generating a local test chain by using the ganache-cli, and performing deployment test on the contract through the truffle;
step 9, formally issuing after the local test is successful, running geth in an rpc mode, and deploying and issuing an intelligent contract on the geth;
the intelligent contract calling stage specifically executes the following steps:
and step 10, after the intelligent contract is deployed, calling a function in the intelligent contract through web3.js and ABI to read and modify data on the chain.
By utilizing the online course transaction method based on the block chain intelligent contract, the invention realizes the corresponding online course transaction system based on the block chain intelligent contract, the online course transaction system controls the on-chain contract, and the on-chain contract comprises a student service system and a teacher service system; wherein the content of the first and second substances,
the student service system comprises a recharging module, an information inquiry module, an appointment course selection module, a lesson-taking module, a post-class evaluation module and an autonomous refund module; the system adopts a B/S (browser/Server) architecture, and a Student list Student needs to be established in a background database to store relevant information of students; in the recharging module, a Student can recharge course tokens by calling the stored value interface Deposit in the step 2, after recharging, the Student is automatically identified as a Student user on a block chain storage node, a background server binds the address information of an Ethernet account for the Student, the Student can set related personal information at the front end, and the information is stored in a background database Student table; the information query module is used for account balance query and teacher related information query, wherein account balance can be checked through the data on the chain, and related information, evaluation and schedule of the teacher giving lessons can be checked through a background database of the platform; in the reservation course selection module, only students with sufficient course token balance can enter the course selection function, the students and teachers are matched through front-end and back-end interaction, the course token of a user is deducted in a course selection finishing background, the account balance number in the database is updated, the block chain account balance is not updated, the course selection can be cancelled freely by cancelling the course in advance, the course token is restored at the moment, the account balance number in the database is updated, and the block chain account balance is not updated; in the lesson-taking module, the students who have selected the lessons and have not cancelled in advance can enter the lesson-taking function, the connection is carried out through online audio or video, and the payment interface Pay in the step 3 is automatically triggered after the lessons are finished; in the post-lesson evaluation module, the student who finishes the corresponding course learning can enter the evaluation function and can timely feed back the teacher by calling the evaluation interface Comment in the step 5; in the automatic Refund module, a student who does not finish using the course token can apply for Refund operation, and the Refund requirement of the student is realized by calling the Refund interface Refund in the step 6;
the teacher service system comprises a qualification auditing module, a lesson opening module and a cash withdrawal module; a Teacher table Teacher is required to be established in the background database to store the relevant information of teachers; the checking module is used for checking the qualification of the user applying for registration as a Teacher, the bound block chain account address is allocated after the checking is passed, the default identifier on the block chain storage node is the Teacher user, and the relevant qualification and information of the Teacher are stored in a background database Teacher table and displayed in a front-end page; in the teaching starting module, a teacher who has a block chain account address and is selected by a student can enter a teaching starting function, teaching is carried out through online audio or video connection, and online teaching time is recorded in a background to ensure that a course is normally executed; in the cash-out module, a teacher obtaining the course token can call the extraction interface Withdraw in the step 4 to exchange the course token.
The invention has the beneficial effects that:
the invention provides an online course transaction method and system based on a block chain intelligent contract, which can write commission of a third-party intermediary service mechanism into the intelligent contract for disclosure by combining key transaction operation with the intelligent contract, can ensure correct fund flow direction by a transaction mode of directly paying teachers and intermediaries one lesson at a time, can effectively avoid the occurrence of explosion situation by a fee refunding mechanism of the intelligent contract, can prevent the third-party intermediary service mechanism from self-tampering and deletion by linking evaluation, and ensure that the evaluation is real and can not be tampered and can be traced. The invention can make the commission of the third-party intermediary service mechanism transparent, ensure the evaluation effectiveness and avoid the situation of money rolling and running of the mechanism.
Drawings
FIG. 1 is a block diagram of a block chain intelligent contract-based online course transaction method according to the present invention.
Fig. 2 is a block diagram of the online course transaction system based on the blockchain intelligent contract according to the present invention.
Detailed Description
The invention will be further described by way of examples, without in any way limiting the scope of the invention, with reference to the accompanying drawings.
Fig. 1 is a block diagram of a block chain intelligent contract-based online course transaction method according to the present invention, and the specific implementation process includes three stages:
stage one, an intelligent contract compiling stage;
stage two, intelligent contract compiling and deploying stage;
and step three, calling the intelligent contract stage by the front end and the back end.
Wherein, the first stage comprises the following steps:
step 1, the intelligent contract is compiled by using a most widely applied solid language, inherits an ERC20 protocol and realizes a balance inquiry balanceOf method, a transfer function transfer method, sets a course token name, sets an issuing total amount totalSupply, sets an account address and a key value pair balance corresponding to the balance, sets the account address and a key value pair identity corresponding to the role identity, and sets the account address and key value pair commenting GoodMark and commenting BatMark fed back by evaluation;
step 2, the contract provides a stored value interface for the outside, the stored value interface Deposit realizes the exchange between the digital currency and the course token, the caller transfers the digital currency to the contract address, the contract address transfers the course token to the caller, the exchange ratio value rate is stored in the storage area storage as a state constant, and the change cannot be changed once set;
step 3, the contract provides a payment interface to the outside, the payment interface Pay realizes that the student pays course token to the teacher and the intermediary, when the interface is called, whether the account balance of the student is larger than the course cost is checked at first, the caller course token is deducted when the condition is met, the deducted course token is respectively added into the course token balances of the teacher account address and the intermediary account address according to a certain commission proportion, the commission proportion value fe is stored in the storage area store as a state variable, a change function is provided, and the contract creator is allowed to change subsequently;
function Pay(address teacher, address mediator, uint coursefee) public{
uint feeToMediator;
uint remaining;
require(balanceOf(msg.sender) > coursefee);
feeToMediator = coursefee * fee;
remaining = course –feeToMediator;
transfer(mediator, feeToMediator);
transfer(teacher, remaining);
}
step 4, the contract provides an extraction interface for the outside, the extraction interface Withdraw realizes that the teacher and the middle exchange course token into digital currency, the caller transfers the course token to the contract address, the contract address transfers the digital currency to the caller, and the exchange ratio value is the rate state constant defined in the step 2;
step 5, the contract provides an evaluation interface for the outside, the evaluation interface Comment realizes the timely feedback requirement of the student on the course, when the interface is called, the student can feed back the course to the teacher in time, the evaluation content is stored on the chain, the evaluation can be traced and cannot be tampered, in order to save the overhead stored on the chain, the evaluation adopts the mapping of the address and unsigned number uint32, namely a good evaluation key value pair and a bad evaluation key value pair, the corresponding good evaluation number is added by one when the student gives a good evaluation, and the corresponding bad evaluation number is added by one when the student gives a bad evaluation;
step 6, the contract provides a Refund interface to the outside, the Refund interface reflnd realizes the Refund requirement of the student, when the interface is called, the curriculum token of the caller is deducted, wherein the commission transfer-in intermediary account address is calculated by a certain commission ratio value tax, the curriculum token after the commission is deducted is transferred to the contract account address, a corresponding digital currency value is obtained according to an exchange ratio value rate, wherein the commission ratio value tax is stored in a storage area store as a state variable, and the subsequent contract creator is allowed to change;
the intelligent contract compiling and deploying stage specifically executes the following steps:
step 7, compiling the original code into byte codes approved by the Ethengfang by using a truffle frame after the intelligent contract is compiled, and generating ABI, wherein the compiled file is in a json format;
step 8, performing local test after compiling success, generating a local test chain by using the ganache-cli, deploying the contract through the truffle, opening a truffle console, and testing the compiled contract;
step 9, formally issuing after the local test is successful, running geth in an rpc mode, and deploying and issuing an intelligent contract on the geth;
the intelligent contract calling stage specifically executes the following steps:
and step 10, after the intelligent contract is deployed, calling a function in the intelligent contract through web3.js and ABI to read and modify data on the chain.
Through the operation of the three stages, online course transaction based on the intelligent block chain contract is realized.
By utilizing the online course transaction method based on the blockchain intelligent contract, the invention realizes a corresponding online course transaction system based on the blockchain intelligent contract, and FIG. 2 is a structural block diagram of the online course transaction system based on the blockchain intelligent contract; the online course transaction system based on the block chain intelligent contract comprises the following subsystems:
the subsystem is a student service system;
a subsystem II and a teacher service system;
the subsystem comprises the following modules:
the module I and the recharging module are used for recharging course tokens by a Student through calling the stored value interface Deposit in the step 2, the Student is automatically identified as a Student user on a block chain storage node after recharging, a background server binds the address information of an Ethernet account for the Student, the Student can set related personal information at the front end, and the information is stored in a background database Student table;
the second module is an information query module which comprises account balance query and teacher related information query, wherein the account balance can be checked through the linked data, the related information of the teacher giving lessons can be checked through a background database of the platform, and the evaluation and the schedule are carried out;
the third module is a course reservation and selection module, only students with sufficient course token balance can enter the course selection function, the students and teachers are matched through front-end and rear-end interaction, the course token of a user is deducted in a course selection finishing background, the account balance number in the database is updated, the block chain account balance is not updated, the course selection can be cancelled freely by cancelling the course in advance, the course token is recovered, the account balance number in the database is updated, and the block chain account balance is not updated;
the fourth module is a lesson-taking module, students who have selected lessons and are not cancelled in advance can enter a lesson-taking function, the connection is carried out through online audio or video, and the payment interface Pay in the step 3 is automatically triggered after the lessons are finished;
a fifth module, a post-class evaluation module, wherein the student who finishes the corresponding course learning can enter an evaluation function, and the teacher is fed back in time by calling the evaluation interface Comment in the step 5;
a sixth module is an independent Refund module, a student who does not finish using the course token can apply for Refund operation, and the Refund requirement of the student is realized by calling the Refund interface Refund in the step 6;
wherein the second subsystem comprises the following modules:
a seventh module, a checking module, configured to perform qualification checking on the user applying for registration as a Teacher, allocate a bound blockchain account address after the checking is passed, default the identifier on the blockchain storage node as the Teacher user, store the relevant qualifications and information of the Teacher in a backend database Teacher table, and display the qualifications and information in a front-end page;
the module eight is a teaching opening module which has a block chain account address, enables a teacher selected by a student to enter a teaching opening function, and records online teaching time through online audio or video connection and ensures normal execution of a course in a background;
and a ninth module, namely a cash withdrawal module, wherein a teacher obtaining the course token can call the extraction interface Withdraw in the step 4 to exchange the course token.
It is noted that the disclosed embodiments are intended to aid in further understanding of the invention, but those skilled in the art will appreciate that: various substitutions and modifications are possible without departing from the spirit and scope of the invention and appended claims. Therefore, the invention should not be limited to the embodiments disclosed, but the scope of the invention is defined by the appended claims.

Claims (8)

1. An online course transaction method based on a block chain intelligent contract is characterized in that block chain account addresses are bound to students, intermediary service organizations and teachers through a course transaction platform, intelligent contracts following the EtherFang ERC20 token specification are deployed in the EtherFang, commission information is disclosed, the students purchase course tokens through calling a contract value storage interface when registering, the contracts automatically pay course tokens to the teachers and the intermediaries after courses are finished, the intermediaries and the teachers convert the obtained course tokens into digital currency through calling a contract extraction interface, the rest course tokens are converted into the digital currency after a certain commission fee is deducted through a contract fee refund interface when the students refund the courses, and feedback evaluation of the students on the courses of the teachers is stored in the chain after the courses are finished; the online course transaction method comprises an intelligent contract compiling stage, an intelligent contract compiling and deploying stage and a front-end and back-end intelligent contract calling stage, and specifically comprises the following execution steps:
1) developing the intelligent contract by using a Solidity language, inheriting an ERC20 protocol, realizing a standard interface function, setting the name and the issuing total amount of a course token, setting an account address and a key value pair corresponding to balance, an account address and a key value pair corresponding to role identity, and an account address and a key value pair fed back by evaluation;
2) writing a value-storing interface to realize the exchange between the digital currency and the course token, wherein a caller transfers the digital currency to a contract address, the contract address transfers the course token to the caller, and the exchange proportion value is stored in a storage area as a state constant and cannot be changed once set;
3) writing a payment interface to realize that a student pays course tokens to a teacher and an intermediary, deducting the course tokens of a caller when calling the interface, and transferring the deducted course tokens into a balance corresponding to account addresses of the teacher and the intermediary according to a certain proportion;
4) writing an extraction interface to realize the course token exchange between the teacher and the broker, transferring the course token to the contract address by the caller, and transferring the corresponding digital currency to the caller according to the exchange ratio value by the contract address;
5) an evaluation interface is compiled, the requirement of the student on timely course feedback is met, when the interface is called, the student can perform timely course feedback on the teacher, evaluation contents are stored on a chain, and the evaluation is guaranteed to be traceable and not to be tampered;
6) writing a refund interface to realize the refund requirement of the student, deducting the curriculum token of the caller when calling the interface, obtaining corresponding digital currency according to the exchange proportion value, transferring the commission fee into the intermediary account address according to a certain proportion, and transferring the digital currency after deducting the commission fee into the student account address;
7) after the intelligent contract is compiled, compiling by using a development framework truffle based on an Ether solid language to generate ABI and Bytecode;
8) after the compiling is successful, performing local test, generating a local test chain by using the ganache-cli, and performing deployment test on the contract through the Truffle;
9) after the local test is successful, formal issuing is carried out, the geth is operated in an rpc mode, and intelligent contracts are deployed and issued on the geth;
10) after the intelligent contract is deployed, functions in the intelligent contract are called through web3.js and ABI to read and modify data on the chain.
2. The online course transaction method as claimed in claim 1, wherein in step 3), the deducted course tokens are transferred to the balance of the account addresses of the teacher and the agent respectively in a commission ratio, the commission ratio value is stored in the storage area as a state variable, a change function is provided, and the contract creator is subsequently allowed to change.
3. The on-line course transaction method of claim 1, wherein said evaluation in step 5) takes a mapping of an address to an unsigned digit 32, a high rating key value pair and a low rating key value pair, respectively, and the corresponding high rating number is increased by one when the student gives a high rating and the corresponding low rating number is increased by one when the student gives a low rating.
4. The online course transaction method as recited in claim 1, wherein the procedure proportion value in step 6) is stored as a state variable in the storage area, and subsequently allowed to be changed by the contract creator.
5. An online course transaction system based on a blockchain intelligent contract, which is used for realizing the online course transaction method of any one of claims 1 to 4, wherein the online course transaction system comprises a student service system and a teacher service system, and the online course transaction system comprises:
the student service system comprises a recharging module, an information query module, a reservation course selection module, a lesson-taking module, a post-class evaluation module and an autonomous refund module, adopts a B/S (browser/Server) framework, and establishes a student table in a background database to store relevant information of students; the recharging module is used for recharging course tokens by students, automatically identifying the recharged courses as student users on a block chain storage node, binding address information of an Ethernet account for the student users by a background server, and storing personal information of the students in a student table of a background database; the information query module is used for account balance query and teacher related information query; in the reservation course selection module, allowing students with sufficient course token balance to enter a course selection function, matching the students with teachers through front-end and back-end interaction, deducting the user course tokens in a course selection finishing background, updating the account balance number in the database, but not updating the block chain account balance; in the class-giving module, a class-selecting student enters a class-giving function, the connection is carried out through online audio or video, and a payment interface is automatically triggered after the course is finished; in the post-class evaluation module, a student who finishes learning corresponding to a course can enter an evaluation function, and an evaluation interface is called to feed back teachers in time; in the automatic refund module, a student who does not finish using the course token can apply for refund operation, and the refund requirement of the student is realized by calling a refund interface;
the teacher service system comprises a qualification auditing module, a lesson opening module and a cash withdrawal module, and a teacher table is established in a background database to store relevant information of teachers; the checking module is used for checking the qualification of the user applying for registration as a teacher, distributing a bound block chain account address after the checking is passed, defaulting the identification as the teacher user on a block chain storage node, and storing the relevant qualification and information of the teacher in a teacher table of a background database and displaying the qualification and the information in a front-end page; in the teaching starting module, a teacher who has a block chain account address and is selected by a student enters a teaching starting function, teaching is carried out through online audio or video connection, and online teaching time is recorded in a background to ensure that a course is normally executed; in the cash withdrawal module, a teacher who obtains the course token calls the extraction interface to exchange the course token.
6. The system of claim 5, wherein in the recharge module, the student recharges the course token by calling a recharging interface, the recharged student is automatically identified as a student user on the blockchain storage node, the background server binds the address information of the Etherhouse account, the student sets up the related personal information at the front end, and the information is stored in the student table in the background database.
7. The system of claim 5, wherein the information query module is configured to view account balance via the linked data and view information, ratings and schedules of teachers in the class via the background database of the platform.
8. The on-line course transaction system of claim 5, wherein in the reservation course selection module, the advance cancellation of course selection can be performed free of charge, the course token is restored after the cancellation of course selection, the amount of the account balance in the database is updated, and the block chain account balance is not updated.
CN202111487661.8A 2021-12-08 2021-12-08 Online course transaction method and system based on block chain intelligent contract Pending CN113888290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111487661.8A CN113888290A (en) 2021-12-08 2021-12-08 Online course transaction method and system based on block chain intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111487661.8A CN113888290A (en) 2021-12-08 2021-12-08 Online course transaction method and system based on block chain intelligent contract

Publications (1)

Publication Number Publication Date
CN113888290A true CN113888290A (en) 2022-01-04

Family

ID=79015905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111487661.8A Pending CN113888290A (en) 2021-12-08 2021-12-08 Online course transaction method and system based on block chain intelligent contract

Country Status (1)

Country Link
CN (1) CN113888290A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754253A (en) * 2019-01-11 2019-05-14 青岛华智慧链科技有限公司 A kind of digital education asset operation platform based on block chain
CN109784886A (en) * 2018-12-29 2019-05-21 贵州蓝石科技有限公司 The dual accounts model for the restricted circulation that can be supervised
US20200027067A1 (en) * 2017-01-08 2020-01-23 Bprotocol Foundation Methods for exchanging and evaluating virtual currency
CN111177273A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Training academic expense trusteeship system based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200027067A1 (en) * 2017-01-08 2020-01-23 Bprotocol Foundation Methods for exchanging and evaluating virtual currency
CN109784886A (en) * 2018-12-29 2019-05-21 贵州蓝石科技有限公司 The dual accounts model for the restricted circulation that can be supervised
CN109754253A (en) * 2019-01-11 2019-05-14 青岛华智慧链科技有限公司 A kind of digital education asset operation platform based on block chain
CN111177273A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Training academic expense trusteeship system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
那个大螺丝: ""以太坊Solidity开发入门(ERC20发币篇)"", 《HTTPS://WWW.JIANSHU.COM/P/B5BABB09EFEA》 *

Similar Documents

Publication Publication Date Title
Kimmel et al. Financial accounting: tools for business decision-making
Sharp et al. Workflow modeling: tools for process improvement and applications development
CN111402026B (en) Business processing method and reason publication sale processing method
CN108520008A (en) The construction method and construction device of data warehouse model
CN107944851B (en) Group fund account management method, device and system
US20220164735A1 (en) Systems and methods for providing a marketplace for accessories of a business automation system
CN109377208A (en) A kind of wisdom chemical industrial park credit payment based on block chain and circulation method
CN111177273A (en) Training academic expense trusteeship system based on block chain
CN107369013A (en) Educational training method of payment, device and system
CN109118351A (en) Integrated automatic settlement method, system, computer equipment and storage medium
CN109726315A (en) Data query method, apparatus calculates equipment and storage medium
WO2020262828A1 (en) Method and apparatus for providing gips certification support services
CN113888290A (en) Online course transaction method and system based on block chain intelligent contract
WO2022119188A1 (en) System, method, and computer-readable recording medium for integrally operating loan account and credit risk collateral account associated therewith
US8429039B1 (en) Method and apparatus for tax refund allocation
KR101500832B1 (en) Withholding agency method and system performing the same
Bakshi et al. Simulation of derivatives post-trade services using an authoritative data store and the ISDA Common Domain Model
JP4951198B2 (en) Fund centralized management method, fund centralized management system, and program for fund centralized management system
JPH08255203A (en) Cash flow schedule simulation system
JP7299735B2 (en) Service reservation management device, service reservation management method, and service reservation management program
Ojha et al. E-Banking: Banking Solution In Modern Era
JP6461400B1 (en) Information processing apparatus, information processing method, and program
KR102236887B1 (en) A method and apparatus of transferring funds including fees and grant
KR20140123804A (en) Apparatus and method for processing a setoff
TWI271662B (en) Method for managing and tracing an account payable

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220104