| … | … | @@ -44,7 +44,11 @@ test('it matches on EITHER derivation path, because genesis used the signing pat |
| 44 | 44 | }) |
| 45 | 45 | |
| 46 | 46 | test('a DID whose rotation key we do NOT hold reports held:false — the alarm', async (t) => { |
| 47 | | const foreign = 'did:key:zQ3sheRHJoLgdiqjFjLyTnVF2sXbP1HNEXnANEwZGjGzCeeGy' // wj62's real one |
| 47 | // Derived from a DIFFERENT BIP39 test vector, so it cannot collide with anything on the machine. |
| 48 | // This previously hard-coded wj62's real rotation key as the "foreign" example — which passed only |
| 49 | // while that key was missing from this box, and started failing (correctly!) the moment the vault |
| 50 | // was restored. A test whose verdict depends on the operator's live secrets is not a test. |
| 51 | const foreign = deriveAtprotoKey('legal winner thank year wave sausage worth useful legal winner thank yellow', ATPROTO_SIGNING_PATH).didKey |
| 48 | 52 | const r = (await collectRotationHeld({ cfg, fetchImpl: plc([foreign]) })).get(DID) |
| 49 | 53 | t.is(r.held, false, 'false, not null — this is a determined verdict') |
| 50 | 54 | t.ok(r.reason && r.reason.includes('no local secret'), 'and says why') |