Learn sCrypt Contents
The contents of interactive Learn sCrypt.
Structure
To create a new course, use the following format. Pull requests are welcome.
#language ├── course-#courseNum │ ├── index.json (required) │ ├── lesson-#lessonNum │ ├── chapter-#chapterNum │ ├── README.md (required) │ ├── script-#scriptNum (optional) │ ├── puzzle.#ext (optional) │ ├── solution.#ext (required)
Note:
#courseNum
/#lessonNum
/#chapterNum
should all be numbers and continuously increased.
index.json
Example of {
"title": "Learn sCrypt", // the course's title (required)
"desc": "This is the first course for learning sCrypt", // the course's description (required)
"lessons": [
{
"title": "Let's start learning sCrypt", // the lesson's title (required)
"num": 1, // the lesson's number (optional)
"chapters": [
{
"num": 1, // the chapter's number (optional)
"title": "What is Bitcoin smart contract?" // the chapter's title (required)
},
{
"num": 2,
"title": "The first sCrypt contract",
"scripts": [ // the scripts of this chapter (optional)
{
"name": "demo.scrypt", // the name of the script, extension included. (required)
"lang": "scrypt", // the language of the script code (optional)
"hints": ["You can name it Demo"] // the hints for the script puzzles (optional)
},
{
"name": "demo.scrypttest.js",
"lang": "javascript"
}
]
}
]
}
]
}