Proper way to maintain Key to store value( STATE) in chaincode.?

Viewed 825

Chain code basically store data in key-value pair(STATE).

If I have to store student data,I have to pass key-value e.g. 1001-{student info}. simply I can create any number of student.

But the problem is if student want to register dynamically. to manage it, student have to pass unique studentId or have to create dynamic key.?

Which is the proper way to implement this.?

Can anyone help me to understand this basic flow.?

Thanks

1 Answers
Related