Skip to content

Commit

Permalink
map blind to celo blind to avoid a conflict (and maybe fix all the er…
Browse files Browse the repository at this point in the history
…rors :)
  • Loading branch information
aaronmgdr committed Sep 19, 2023
1 parent 4e0ed0b commit 37942ba
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/phone-number-privacy/combiner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@opentelemetry/sdk-trace-web": "^1.15.2",
"@opentelemetry/sdk-trace-base": "^1.17.0",
"@opentelemetry/semantic-conventions": "^1.15.2",
"@celo/blind-threshold-bls": "1.0.0-beta",
"blind-threshold-bls": "npm:@celo/blind-threshold-bls@1.0.0-beta",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"firebase-admin": "^11.10.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import threshold_bls from '@celo/blind-threshold-bls'
import { ErrorMessage } from '@celo/phone-number-privacy-common'
import threshold_bls from 'blind-threshold-bls'
import Logger from 'bunyan'
import { CryptoClient, ServicePartialSignature } from './crypto-client'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sleep } from '@celo/base'
import threshold_bls from '@celo/blind-threshold-bls'
import { StableToken } from '@celo/contractkit'
import { OdisUtils } from '@celo/identity'
import { ErrorMessages, getServiceContext, OdisAPI } from '@celo/identity/lib/odis/query'
Expand All @@ -12,6 +11,7 @@ import {
SignMessageResponseSchema,
} from '@celo/phone-number-privacy-common'
import { normalizeAddressWith0x } from '@celo/utils/lib/address'
import threshold_bls from 'blind-threshold-bls'
import { randomBytes } from 'crypto'
import 'isomorphic-fetch'
import { config as signerConfig } from '../../../signer/src/config'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import threshold_bls from '@celo/blind-threshold-bls'
import { newKit } from '@celo/contractkit'
import {
AuthenticationMethod,
Expand Down Expand Up @@ -33,6 +32,7 @@ import {
} from '@celo/phone-number-privacy-signer/dist/config'
import { startSigner } from '@celo/phone-number-privacy-signer/dist/server'
import BigNumber from 'bignumber.js'
import threshold_bls from 'blind-threshold-bls'
import { Server } from 'http'
import { Server as HttpsServer } from 'https'
import { Knex } from 'knex'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import threshold_bls from '@celo/blind-threshold-bls'
import { KeyVersionInfo, rootLogger } from '@celo/phone-number-privacy-common'
import threshold_bls from 'blind-threshold-bls'
import { BLSCryptographyClient } from '../../src/common/crypto-clients/bls-crypto-client'
import { ServicePartialSignature } from '../../src/common/crypto-clients/crypto-client'
import config from '../../src/config'
Expand Down
2 changes: 1 addition & 1 deletion packages/phone-number-privacy/combiner/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import threshold_bls from '@celo/blind-threshold-bls'
import threshold_bls from 'blind-threshold-bls'
import { Server } from 'http'
import { Server as HttpsServer } from 'https'

Expand Down
2 changes: 1 addition & 1 deletion packages/phone-number-privacy/signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"dependencies": {
"@celo/base": "^5.0.3-dev",
"blind-threshold-bls": "npm:@celo/[email protected]",
"@celo/contractkit": "^5.0.3-dev",
"@celo/phone-number-privacy-common": "^3.0.4-dev",
"@celo/poprf": "^0.1.9",
Expand All @@ -53,7 +54,6 @@
"@opentelemetry/sdk-trace-web": "^1.15.1",
"@types/bunyan": "^1.8.8",
"aws-sdk": "^2.705.0",
"@celo/blind-threshold-bls": "1.0.0-beta",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"knex": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable: no-console
import threshold_bls from '@celo/blind-threshold-bls'
import threshold_bls from 'blind-threshold-bls'
import crypto from 'crypto'

const t = 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import threshold_bls from '@celo/blind-threshold-bls'
import { ErrorMessage } from '@celo/phone-number-privacy-common'
import threshold_bls from 'blind-threshold-bls'
import Logger from 'bunyan'
import { OdisError } from '../error'
import { Counters } from '../metrics'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sleep } from '@celo/base'
import threshold_bls from '@celo/blind-threshold-bls'
import { newKit, StableToken } from '@celo/contractkit'
import {
AuthenticationMethod,
Expand All @@ -14,6 +13,7 @@ import {
TestUtils,
WarningMessage,
} from '@celo/phone-number-privacy-common'
import threshold_bls from 'blind-threshold-bls'
import { randomBytes } from 'crypto'
import 'isomorphic-fetch'
import { config } from '../../src/config'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import threshold_bls from '@celo/blind-threshold-bls'
import threshold_bls from 'blind-threshold-bls'

require('dotenv').config()

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@celo/phone-number-privacy-common": "^3.0.4-dev",
"@types/debug": "^4.1.5",
"bignumber.js": "^9.0.0",
"@celo/blind-threshold-bls": "1.0.0-beta",
"blind-threshold-bls": "npm:@celo/blind-threshold-bls@1.0.0-beta",
"cross-fetch": "3.0.6",
"debug": "^4.1.1",
"elliptic": "^6.5.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/identity/src/odis/bls-blinding-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class WasmBlsBlindingClient implements BlsBlindingClient {
} else if (this.isBrowserEnvironment()) {
throw new Error('Cannot use WasmBlsBlindingClient in a browser environment')
} else {
this.thresholdBls = require('@celo/blind-threshold-bls')
this.thresholdBls = require('blind-threshold-bls')
}
}

Expand Down

0 comments on commit 37942ba

Please sign in to comment.