circlefin / verite

https://verite.id
MIT License
137 stars 59 forks source link

Make sure did:key isn't assumed #514

Closed kimdhamilton closed 1 year ago

kimdhamilton commented 1 year ago

Need better abstractions for did methods. As mentioned in #378, also add support for other methods. (did:ion as well?)

kimdhamilton commented 1 year ago

Note: I was confused because we have a type called DidKey, but (I'd forgotten) it's just the general data model from DID documents (see below). I.e. it's not tied to the did:key did method, as I'd feared. This is ok for now, but we might consider renaming it if it causes confusion.

export type DidKey = {
  id: string
  controller: string
  subject: string
  publicKey: Uint8Array
  privateKey: Uint8Array
}