DEV Community 👩‍💻👨‍💻

Discussion on: Blockchain using NodeJS and Socket.io

Collapse
 
rgopalan profile image
Raja Gopalan

This is very interesting work indeed! I have what i hope is a simple question and not too newbie-like: would it be possible to use blockchain with nodejs to have an exchange of public keys (like SSH keys) between two or more servers. In this case, the transactions would be minimal but the chain would need to be immutable. Is that possible or would you have any tips on how we could do it please?

Collapse
 
sadarshannaiynar profile image
Adarsh Author

Yes I believe it's possible the data just has to be the public key although I am not sure as to why we need a secure exchange for public SSH keys.

Collapse
 
rgopalan profile image
Raja Gopalan

Thank you Adarsh! You raise a great point! I dont believe we will need a secure exchange of public keys because the SSH protocol itself encrypts the files. However, once the public keys are copied over, they would be unhashed using the private keys and all we need is for blockchain to 1. enable links to be added and 2. keep the existing links otherwise immutable.

I was wondering how that might be possible? Any thoughts would be greatly appreciated and the preference is to use the nodejs blockchain modules to the extent possible.

Thread Thread
 
sadarshannaiynar profile image
Adarsh Author

I am not sure about it probably you might've to do some research. :)