Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lint fixes

+4 -10
-1
packages/lib/src/document.ts
··· 1 - import * as uint8arrays from 'uint8arrays' 2 1 import * as crypto from '@atproto/crypto' 3 2 import * as t from './types' 4 3 import { UnsupportedKeyError } from './error'
+4 -9
packages/lib/tests/document.test.ts
··· 1 - import * as uint8arrays from 'uint8arrays' 2 1 import { EcdsaKeypair, parseDidKey, Secp256k1Keypair } from '@atproto/crypto' 3 2 import * as document from '../src/document' 4 3 import * as t from '../src/types' ··· 48 47 expect(doc.verificationMethod.length).toBe(2) 49 48 50 49 expect(doc.verificationMethod[0].id).toEqual(data.did + '#atproto') 51 - expect(doc.verificationMethod[0].type).toEqual( 52 - 'Multikey', 53 - ) 50 + expect(doc.verificationMethod[0].type).toEqual('Multikey') 54 51 expect(doc.verificationMethod[0].controller).toEqual(data.did) 55 - const parsedAtprotoKey = parseDidKey(atprotoKey.did()) 52 + parseDidKey(atprotoKey.did()) 56 53 const atprotoKeyMultibase = atprotoKey.did().replace(/^(did:key:)/, '') 57 54 expect(doc.verificationMethod[0].publicKeyMultibase).toEqual( 58 55 atprotoKeyMultibase, 59 56 ) 60 57 61 58 expect(doc.verificationMethod[1].id).toEqual(data.did + '#other') 62 - expect(doc.verificationMethod[1].type).toEqual( 63 - 'Multikey', 64 - ) 59 + expect(doc.verificationMethod[1].type).toEqual('Multikey') 65 60 expect(doc.verificationMethod[1].controller).toEqual(data.did) 66 - const parsedOtherKey = parseDidKey(otherKey.did()) 61 + parseDidKey(otherKey.did()) 67 62 const otherKeyMultibase = otherKey.did().replace(/^(did:key:)/, '') 68 63 expect(doc.verificationMethod[1].publicKeyMultibase).toEqual( 69 64 otherKeyMultibase,