Skip to content

Commit

Permalink
Merge branch 'signed-labels' into label-exp
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Mar 9, 2024
2 parents 80868b7 + 9105e56 commit fd19f34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/ozone/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type AppContextOptions = {
appviewAgent: AtpAgent
pdsAgent: AtpAgent | undefined
signingKey: Keypair
signingKeyId: number
idResolver: IdResolver
imgInvalidator?: ImageInvalidator
backgroundQueue: BackgroundQueue
Expand Down Expand Up @@ -105,6 +106,7 @@ export class AppContext {
appviewAgent,
pdsAgent,
signingKey,
signingKeyId,
idResolver,
backgroundQueue,
sequencer,
Expand Down Expand Up @@ -151,6 +153,10 @@ export class AppContext {
return this.opts.signingKey
}

get signingKeyId(): number {
return this.opts.signingKeyId
}

get plcClient(): plc.Client {
return new plc.Client(this.cfg.identity.plcUrl)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ozone/tests/sequencer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('sequencer', () => {
cid: label.cid ? label.cid : '',
exp: null,
sig: label.sig ? Buffer.from(label.sig) : null,
signingKey: network.ozone.ctx.signingKey.did(),
signingKeyId: network.ozone.ctx.signingKeyId,
}
}

Expand Down

0 comments on commit fd19f34

Please sign in to comment.