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.

add test for 'exotic' service key type (BLS12-381)

+11
+11
packages/server/tests/server.test.ts
··· 106 106 const newSigningKey = 107 107 'did:key:z6MkjwbBXZnFqL8su24wGL2Fdjti6GSLv9SWdYGswfazUPm9' 108 108 109 + // Note: atproto itself does not currently support ed25519 keys, but PLC 110 + // does not have opinions about atproto (or other services!) 109 111 await client.updateAtprotoKey(did, rotationKey1, newSigningKey) 112 + 113 + // a BLS12-381 key 114 + const exoticSigningKeyFromTheFuture = 115 + 'did:key:zUC7K4ndUaGZgV7Cp2yJy6JtMoUHY6u7tkcSYUvPrEidqBmLCTLmi6d5WvwnUqejscAkERJ3bfjEiSYtdPkRSE8kSa11hFBr4sTgnbZ95SJj19PN2jdvJjyzpSZgxkyyxNnBNnY' 116 + await client.updateAtprotoKey( 117 + did, 118 + rotationKey1, 119 + exoticSigningKeyFromTheFuture, 120 + ) 110 121 111 122 // put the old key back so as not to disrupt the other tests 112 123 await client.updateAtprotoKey(did, rotationKey1, signingKey.did())