Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
harbu committed Jul 9, 2024
1 parent 706ec64 commit 949c6dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@jest/globals": "^29.5.0",
"@lit-protocol/lit-node-client": "^6.0.3",
"@streamr/test-utils": "101.0.1",
"@types/heap": "^0.2.34",
"@types/lodash": "^4.17.6",
Expand Down
9 changes: 4 additions & 5 deletions packages/sdk/src/encryption/LitProtocolFacade.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { LitNodeClient } from '@lit-protocol/lit-node-client'
import { Logger, StreamID, binaryToHex, randomString } from '@streamr/utils'
import { ethers } from 'ethers'
import * as siwe from 'lit-siwe'
import { Logger, StreamID, randomString } from '@streamr/utils'
//import * as siwe from 'lit-siwe'
import { Lifecycle, inject, scoped } from 'tsyringe'
import { Authentication, AuthenticationInjectionToken } from '../Authentication'
import { ConfigInjectionToken, StrictStreamrClientConfig } from '../Config'
Expand Down Expand Up @@ -54,7 +53,7 @@ const formEvmContractConditions = (streamRegistryChainAddress: string, streamId:
}
])

const signAuthMessage = async (litNodeClient: LitNodeClient, authentication: Authentication) => {
/*const signAuthMessage = async (litNodeClient: LitNodeClient, authentication: Authentication) => {
const domain = 'localhost'
const uri = 'https://localhost/login'
const statement = 'dummy'
Expand All @@ -79,7 +78,7 @@ const signAuthMessage = async (litNodeClient: LitNodeClient, authentication: Aut
signedMessage: messageToSign,
address: addressInChecksumCase
}
}
}*/

function splitGroupKeyId(groupKeyId: string): { ciphertext: string, dataToEncryptHash: string } | undefined {
const [ciphertext, dataToEncryptHash] = groupKeyId.split(GROUP_KEY_ID_SEPARATOR)
Expand Down

0 comments on commit 949c6dc

Please sign in to comment.