Closed zachferland closed 1 year ago
@AaronGoldman
@oed dont think aaron is in here, could not add as reviewer, I cant access settings either
That's odd. Sent an org invite to you @AaronGoldman
Imo we can merge this before we add support for DID PKH
Sounds good, pkh can go in another pr after, for this PR will change API to following
type InspectObject = {
methodCode: number
methodIdBytes: Uint8Array
urlBytes: Uint8Array
}
class Multidid {
constructor(private code: number, private id: Uint8Array, private url: Uint8Array): Multidid
static fromBytes(bytes: Uint8Array): Multidid
toBytes(): Uint8Array
toMultibase(base: SupportedBase = 'base58btc'): string
static fromMultibase(multidid: string): Multidid
static fromString(did: string): Multidid
toString(): string
inspect(): InspectObject
}
Covered all comments, and changed what was listed above, moved out of draft, all set to merge
oh the docs build, will update, but it is built before docs are pushed out on merge
Add multidid library based on specification and examples as test vectors.
Does not have did:pkh support yet, and few small todos left.
Pretty simple, but feedback on interface, what to add/remove etc, would be helpful.