ssbc / ssb-keys

keyfile operations for ssb
36 stars 26 forks source link

keys structure [question] #42

Closed nichoth closed 5 years ago

nichoth commented 6 years ago

Hello. Is the documentation out of date? It looks like it is missing the field curve.

//usually, load keys like this
var keys = ssbkeys.loadOrCreateSync(filename)
/* => {
  id: String,
  public: String,
  private: String
}*/

but there is also curve: 'ed25519'

Also, what is the id field? a random string to identify this key pair?

evbogue commented 6 years ago

@nichoth id is the same as public, but with an @ sign in front of it. It's always seemed a little redundant to me. Perhaps we could deprecate id someday and instead have ssbkey.id return public with a prepended @ sign?

And yes, curve is specified in secret files.

dominictarr commented 6 years ago

id is the ssb id, which has the @ and curve type combined. We currently only have one supported signature algorithm, so the curve field isn't very useful, but will be when we need to support another.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.