fission-codes / fission-cli

Rewrite it in Rust 🦀
Apache License 2.0
1 stars 1 forks source link

Add generate credentials #3

Closed BoisterousCoder closed 1 year ago

BoisterousCoder commented 1 year ago

This PR implements the add generate credentials command.

Testing

To test this command

cargo run generate credentials

The output should produce the ed222519 key pair and its did, which should look something like the following:

✅ Generated an Ed25519 key pair and associated DID
🗝️ Private key: uwBK0fIWYZeg8Dr5gyw8/8Yf0khRxFegIPeWgP2o5jI=
🔑 Public key: ANqzyN5Y33byvfbf6Z7J54Jo1ZQn978YFrIIZbMrSnI=
🆔 DID: did:key:z6M14LRScqxd9a9XWJko3toZy9xQbHxWEo8SCCfy5PRCGFs

Related Issues

Closes #2