Blockchain system for verifying student credentials - hyperledger-fabric

So I am new to blockchain. In fact, I am actually doing a one-year diploma for it. I found out it's incredibly hard to find accurate information online regarding blockchain. It's either a chunky mess or completely irrelevant. Right now my team's project is to work on a real-life situation where blockchain could be implemented and we chose blockchain for student credentials. We went with a Hybrid blockchain where certain personal information will be private and other stuff like credentials will be public so that educational institutes can validate them. We are supposed to be working with Hyperledger Fabric for the assignment, but we are stuck deciding whether we should be using ERC-721 Tokens or smart contracts to assign every student a unique digital asset. I am posting this here to see if I can get some help.
p.s dont mind if my concepts are completely off because its only been like a week or 2 since my classes started.

In Russia, finance academy "Active" already uses Emercoin blockchain for this purpose for years. You can use Google Translate and read the interview article.
I think, if you contact them, they will share with you their solutions and source code.

You can implement your use cases with Hyperledger Indy blockchain framework. Hyperledger Indy will suit your use cases as this blockchain framework is used to manage identities.
You can visit Indy Walkthrough demo where you can find tutorial with code based on your use cases.
You can also check the following demo:
https://www.youtube.com/watch?v=9WZxlrGMA3s

Related

Need help conceptualizing a blockchain industry 4.0 project

Like the title suggest, I need help.
I've little experience with the blockchain, mainly a simple ERC20 token projet I did a few months ago.
Now for my bachelor thesis, i was asked the following :
Develop one or several smart contract(s) to trace the origin of the product and its
conformity certifications / administrative attributes and behaviours.
Register the product on the blockchain and deploy a validation scheme to protect it
against counterfeit
Protect the production method (recipe) as an IPR
The said "product" in this refers mainly to manufactured pieces, like a watch piece.
This project is a proof of concept more than anything else so I have no real pieces. I have to create a mockup of what could be used in a manufacture.
Now I was wondering what to use to achieve this goal. Are NFTs are a good option to insure each piece's conformity or should it be used only for the final product or else ?
I don't know all the possibilities of the technology, thus why I'm asking for help.
Any leads to what to use or tutorials would be more than welcome.
Thanks in advance

Need some ideas to achieve data marketplace through hyperledger

I am trying to create a data marketplace where a party can transact with other parties, agree on the set of terms and sell data from one to another.
Here data security is of utmost concern. A party makes data available on the hyperledger, this data should be secured and no one should get hold of it. If an interested party wants this data, they have to transact with data owner party and agree on the set of terms. Only then the interested party will get the data. And now only two parties should have hold of this data. Everyone else should not get hold of it.
I would like to know what components of hyperledger can be used here. I have an idea of private data concept in hyperledger, but not sure how and where it would fit.
Would love to hear some comments from experts regarding this.
Edit:
I am thinking of using private data for data sharing securely whenever two parties agree for the transaction. And for that I am thinking of upgrading chaincode every time two parties agree on set of terms for data sharing. Only thing concerns me is that every endorsing peer needs to install and upgrade the new version of chaincode simultaneously and that could be undesirable, because data exchanges on this platform could be very frequent.
You can refer to this, and get some idea
When to use a collection within a channel vs. a separate channel

what is the difference between orbitdb (based on IPFS) and gun ?

I'm looking for a decentralized database for my Dapp.
I found two helpful solutions orbitdb and gun but I couldn't realize the main difference and which one is more suitable for a social-media-like application that use ethereum smart contract.
I'm the author of gun. I've seen OrbitDB floating around (ha, pardon the pun!) but obviously am not intimately knowledgable about it enough to speak about it. I'll leave that for them to answer. :)
It does look like OrbitDB also uses CRDTs, which means they are probably doing things right/correct. Very few people are using CRDTs, which is sad, but makes GUN pretty unique! Despite the last 4 years I've been trying to evangelize to people that they should use CRDTs, I welcome it.
Maybe a practical way to answer your question, #maroodb , is around GUN's use case for social media:
Yes, GUN is already being used for P2P social media dApps. You can do:
User account systems, including traditional username/password, and password reset (no server, fully P2P).
Published user data, like tweets, etc. that cannot be tampered with by anybody else (signature encryption, but not private).
Private data to the user (cypher encryption).
Secret data between 2 users, like private messages (diffie-hellman).
And we're currently working on making it easier to do group read/write data, which is possible, but no demos yet.
Here are some links that show demos, and other resources, that might be helpful in building your app:
Conceptual understanding of P2P security, done in 1 minute animated cartoon explainers - https://gun.eco/explainers/data/security.html
Short, fast article on how to get started with user accounts for a P2P Twitter - https://hackernoon.com/so-you-want-to-build-a-p2p-twitter-with-e2e-encryption-f90505b2ff8
A 4 minute and 40 line of code interactive coding tutorial, on how to build a super basic P2P Twitter - https://scrimba.com/c/c2gBgt4
Social network idea - https://d.tube/#!/v/marknadal/lanz4e6z (d.tube itself is a P2P youtube)
P2P user account management system - https://d.tube/#!/v/marknadal/gfqglxvd
Super basic Private Message demo in 75 lines of code - https://d.tube/#!/v/marknadal/ganoayt8
Documentation on how to use the security API - https://gun.eco/docs/SEA
And of course, a super friendly chat room of Open Source developers helping each other out build these kind of stuff, https://github.com/amark/gun ! :)
You'll have to ask OrbitDB for their examples/use case for P2P social networking dApps, maybe they know what makes gun different.
Note: A GUN+IPFS adapter will be out soon.
Ethereum is great, but your social network might not scale up if it is implemented primarily as an ethereum smart contract, just as a warning.
We recommend you use Ethereum for any cryptocurrency payments or transactions for your user (not GUN or Orbit).
But we do not recommend building basic social network features (profile info, posts, messages, etc.) using Ethereum.
Likely, 90 to 95% of your app will be GUN or Orbit, and possibly only 3 to 5% smart contracts.

Diffrence between block chain smart contract platforms ?!!

kinda new to block chain technologies and going to work on a project of a smart contract based on block-chain .
i was wondering what are the platforms available ?
what is the difference between them ? (points of comparison)
Help plz :) !!
I understand that the term “Contract” it has not communicated clearly. Assuming you have the fair understanding on “what is Blockchain”. Let me give a perspective – it is contact between parties stored on the Blockchain or any computation that takes place on a Blockchain. Referring to some of technical forums, the answer to contract platforms depends on the what type of “Contract”? Mainly any one of the two types of contract (generally refers to the capabilities you looking for).
Smart contract code: This is to identify a specific technology – code that is stored, verified, and executed on a Blockchain. Example, Ethereum or Eris platform, whose primary purpose is to be a platform for smart contract code. The platform provides code that could articulate a conditional financial transaction, While the code could articulate a conditional financial transaction (“send 1 Ether from Alice to Bob on Jan 1, 2017”), it could also be a governance application that controls account permissions (“if Alice has voted yes, remove Bob’s voting rights over Application X and notify the following accounts…”).
You can make smart contract code using Ethereum or Eris Blockchain-based application. Please refer to their respective website. You will find lots of materials. There are may others as well.
And the other type of smart contract,
Smart legal contracts (the real world): This is to a specific application of that technology – as a complement, or substitute, for legal contracts. This type of contract does not limit only to be executed using Blockchain platform. It is still a debatable… as many commercial, clauses may not be always suitably represented using code. But in future the integration of 1 & 2 would most likely replace some of traditional legal contract languages.
Bitcoin Blockchain itself can be used for developing Smart Contracts, though it is a little bit challenging for beginners.
Bitcoin Contracts
Ethereum is one of the most widely used Blockchain Platform for writing smart contracts.
Solidity Smart Contracts
You can also use Hyperledger for writing smart contracts / chain codes.
Smart Contracts on IBM Blockchain
NEO is emerging as another popular Blockchain platform for authoring smart contracts.
Developing Smart Contracts in NEO

Moodle + Expression Engine Integration + eCommerce

A client I am beginning to work with has a very specific need that I can't seem to find the best solution too nor any definitive yes or no because of conflicting answers in forums and documentation.
Goal: We are looking to use Moodle to handle the clients course management and course subscriptions. While using EE for other content as well as a store and cart to manage course related materials and supplies that will not be sold through Moodle.
Requirement: A synchronous cart so that if a student purchases a subscription to a course, they can also purchase any materials from the EE store in one go.
Upon doing my research I have found one piece that can help: aMember, but I cannot find a definitive Yes or No to these things:
Is Single Sign On between EE, Moodle, and aMember possible?
Is the cart functionality possible?
I apologize if this question is out of place here, but I'd very much like an answer because many of the proposed solutions have a relatively high cost if they don't work.
Any one here dealt with this kind of integration before?
I've never tried to integrate with Moodle or any other third party, but I know you'd have to create a way for the two to talk to each other. Would you use Moodle as the root authentication method? EE? I'm not sure which approach would work best. You can learn more about how to create that integration by browsing the EE add-on development documentation.
Also, depending on what your goals are, you may not need aMember at all. Take a look at Membrr, which excels at managing membership subscriptions. CartThrob and Brilliant Retail are two popular ecommerce add-ons for EE, and they're worth checking out, too.
Sorry I couldn't be more targeted with my answers. Hopefully someone with more experience can chime in as well. Best of luck!
I just completed a full EE/Moodle integration and would love to share how I did it. In a quick overview, We are using EE and CarthThrob to manage the purchases of the actual courses and Moodle for course delivery. What I ended up doing was a bit complicated but hopefully this will point you in the right direction.
Courses are sold through the EE site. When they're sold, I have a table that is populated on the cartthrob_on_authorize hook to populate a table with email address, role (student) and course id. I run a cron through Moodle to do remote enrollment so it will grab that data and enroll the student. This works both ways so if you delete a row from the table in EE, it will also un-enroll the student in Moodle.
I am using Moodle's user sync to pull in all of my EE users into Moodle on a cron job as well as using their remote authentication. One issue is that Moodle only offers SHA1 and MD5 out of the box so I had to modify their remote login script to first query the salt and then do a SHA512 hash of the salt and password for it to authenticate. What this does is allow users to log into Moodle using their EE credentials and creates the record to enroll the students against.
The biggest caveat is that you essentially have two different accounts on two systems and since EE stores its user data across multiple tables, you can't easily pull in data like First Name, Last Name so moodle prompts for this information (again) before taking a course. Not a great solution but it works. I am sure there are ways you could get around this (create an enrollment table that has all of this data in it to sync against Moodle with an EE extension).
Hope that helps move things in the right direction if you're still trying to do this.
We have created a solution close to what you are looking for in WordPress. Here we integrate Moodle with WooCommerce, an ecommerce solution for WordPress, to sell Moodle courses online.
Other features include:
Automatic registration to Moodle LMS
Single Login Credentials for registered users
Export Customer Information from WooCommerce
You can read indepth about the features here. http://wisdmlabs.com/woocommerce-moodle-integration-solution/

Resources