Skip to content

Commit 259528e

Browse files
committed
chore: prettier
1 parent 45c3d73 commit 259528e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/messaging/interface/session/response.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ import { DidUrl, DidDocument, VerificationMethod } from '@kiltprotocol/types'
99
import { stringToU8a } from '@polkadot/util'
1010
import * as Did from '@kiltprotocol/did'
1111

12-
import type { ISessionRequest, ISession, ISessionResponse, EncryptCallback, DecryptCallback } from '../../../types/index.js'
12+
import type {
13+
ISessionRequest,
14+
ISession,
15+
ISessionResponse,
16+
EncryptCallback,
17+
DecryptCallback,
18+
} from '../../../types/index.js'
1319

1420
/**
1521
* Prepares and returns a session response along with the prepared session.
@@ -42,7 +48,9 @@ export async function receiveSessionRequest(
4248
const responseEncryptionKey: DidUrl = `${didDocument.id}${didDocument.keyAgreement?.[0]}`
4349

4450
Did.validateDid(receiverEncryptionKeyUri)
45-
const { contentStream: receiverKey } = await dereferenceDidUrl(receiverEncryptionKeyUri, { accept: 'application/did+json' })
51+
const { contentStream: receiverKey } = await dereferenceDidUrl(receiverEncryptionKeyUri, {
52+
accept: 'application/did+json',
53+
})
4654
if ((receiverKey as any).type !== 'Multikey') {
4755
throw new Error('receiver key is expected to resolve to a Multikey verification method')
4856
}

0 commit comments

Comments
 (0)