mediachain / concat

Mediachain daemons
MIT License
42 stars 13 forks source link

mcid: mediachain identity and manifest signing/verification #110

Closed vyzo closed 7 years ago

vyzo commented 7 years ago

Adds the mcid program for managing the user identity and signing manifests [#14] Supports verification with blockstack entities, and should be easily extensible to handle any identity provider that supports some form of app specific keys.

Next steps:

Example:

$ mcid id
{"keyId":"Qmcvnd3Jn41DwSjaZcVXpTpX873czeSAAf3PcyyULdvFZc","key":"CAESICE5OCB4j15p2U4SeYkcl9OtyJpR1vwjVT142uM9n+Qx"}

$ cat /tmp/mf.json 
{"node": {"peer": "QmeBkfxcaBfA9pvzivRwhF2PM7sXpp4HHQbp7jfTkRCWEa", "publisher": "4XTTMADSKQUN3jkeZngbtuE35w9y5YnDTicVTeeji7N2Npkey"}}

$ mcid sign blockstack:vyzobot.id /tmp/mf.json > /tmp/smf.json

$ cat /tmp/smf.json 
{"entity":"blockstack:vyzobot.id","keyId":"Qmcvnd3Jn41DwSjaZcVXpTpX873czeSAAf3PcyyULdvFZc","body":{"node":{"peer":"QmeBkfxcaBfA9pvzivRwhF2PM7sXpp4HHQbp7jfTkRCWEa","publisher":"4XTTMADSKQUN3jkeZngbtuE35w9y5YnDTicVTeeji7N2Npkey"}},"timestamp":"1483644133","signature":"V6bzJeBPRLcEpwda54/G6XAXAgtFRU6hm4d+QQW+2iBejqXwHd+FVoCYUo+s6qX+tXjBvhb1weE3f9uH6QPmCA=="}

$ blockstack lookup vyzobot.id
...
            {
                "@type": "Account", 
                "identifier": "CAESICE5OCB4j15p2U4SeYkcl9OtyJpR1vwjVT142uM9n+Qx", 
                "service": "mediachain"
            }
...

$ mcid verify /tmp/smf.json 
OK
parkan commented 7 years ago

Looks OK modulo the things that you mentioned, will look through again tmw