storacha-network / w3cli

💾 w3 command line interface
Other
30 stars 7 forks source link

feat: `w3 key create` #155

Closed olizilla closed 7 months ago

olizilla commented 7 months ago

Print a new key pair. Does not change your current signing key.

Bring the feature from ucan-key into w3cli

$ w3 key create
# did:key:z6Mkne1JnNWCvUgxsdo552FW8jRN78uxbpCnBmDiPmf1koYc
MgCZ5ftHm9e0FnNtFXA2sMZgcf97GO4vTaybGEfkBp/KR5+0BeZ44TKEOwUjbLqvFFs2hpFxD++IAEEL+3ySROyDsSRk=

$ w3 key create --json | jq
{
  "did": "did:key:z6Mkt7urpgJKK38cEyB1uMGBzfdn6sZN2daB5pr75DZbgahZ",
  "key": "MgCYj0pKJn5uf+4yr2DApB8idYtDY+9yhEYH64Po0uaj+R+0Byw7B8cSYrO4//5PqgWodYq8PMI/fSWZ1xdvdw15bmAw="
}

see: https://github.com/web3-storage/w3cli/issues/154#issuecomment-1885042715

License: MIT

olizilla commented 7 months ago

I bow deeply in apology for the prettier noise. tis an obnoxious and persistent bot, and I let my guard down. As the harm is now done, I leave it in this PR so others do not suffer the same semantically-meaningless, unrelated change fate.

alanshaw commented 7 months ago

I merge this so I can do some other readme cleanup.