Skip to content

Commit

Permalink
feat: remove references to GaiaHubConfig in auth package
Browse files Browse the repository at this point in the history
  • Loading branch information
yknl committed Aug 11, 2020
1 parent cb7b293 commit f0f97de
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1,653 deletions.
8 changes: 4 additions & 4 deletions packages/auth/src/auth.ts
Expand Up @@ -6,18 +6,18 @@ import {
isLaterVersion,
getGlobalObject,
LoginFailedError,
Logger
Logger,
BLOCKSTACK_DEFAULT_GAIA_HUB_URL
} from '@stacks/common'
import { getAddressFromDID } from './dids'
import { decryptPrivateKey } from './messages'
import {
BLOCKSTACK_DEFAULT_GAIA_HUB_URL,
NAME_LOOKUP_PATH
} from './constants'
import { extractProfile } from './legacy/profiles/profileTokens'
import { UserSession } from './userSession'
import { config } from './legacy/config'
import { GaiaHubConfig } from './legacy/storage/hub'
// import { GaiaHubConfig } from './legacy/storage/hub'
import { hexStringToECPair } from '@stacks/encryption'


Expand Down Expand Up @@ -63,7 +63,7 @@ export interface UserData {
// This is the data that gets used when the `new blockstack.Person(profile)` class is used.
profile: any;
// private: does not get sent to webapp at all.
gaiaHubConfig?: GaiaHubConfig;
gaiaHubConfig?: any;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/legacy/encryption/ec.ts
Expand Up @@ -6,7 +6,7 @@ import { getPublicKeyFromPrivate } from '../keys'
import { hashSha256Sync, hashSha512Sync } from './sha2Hash'
import { createHmacSha256 } from './hmacSha256'
import { createCipher } from './aesCipher'
import { getAesCbcOutputLength, getBase64OutputLength } from '../utils'
import { getAesCbcOutputLength, getBase64OutputLength } from '@stacks/common'

const ecurve = new EllipticCurve('secp256k1')

Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/legacy/profiles/profileTokens.ts
@@ -1,7 +1,7 @@
import { ECPair } from 'bitcoinjs-lib'
import { decodeToken, SECP256K1Client, TokenSigner, TokenVerifier } from 'jsontokens'
import { TokenInterface } from 'jsontokens/lib/decode'
import { nextYear, makeUUID4 } from '../utils'
import { nextYear, makeUUID4 } from '@stacks/common'
import { ecPairToAddress } from '../keys'

/**
Expand Down
10 changes: 0 additions & 10 deletions packages/auth/src/legacy/public.ts
@@ -1,10 +1,5 @@
export * from './profiles'

export {
EncryptionOptions, EncryptContentOptions,
PutFileOptions, getUserAppFileUrl, GetFileUrlOptions, GetFileOptions, getAppBucketUrl
} from './storage'

export {
makeDIDFromAddress, makeDIDFromPublicKey, getDIDType, getAddressFromDID
} from '../dids'
Expand All @@ -14,11 +9,6 @@ export {
hexStringToECPair, ecPairToHexString, ecPairToAddress
} from './keys'

export {
nextYear, nextMonth, nextHour, makeUUID4, updateQueryStringParameter,
isLaterVersion, isSameOriginAbsoluteUrl
} from './utils'

export {
transactions, safety, TransactionSigner,
PubkeyHashSigner, addUTXOsToFund, estimateTXBytes
Expand Down
223 changes: 0 additions & 223 deletions packages/auth/src/legacy/storage/hub.ts

This file was deleted.

0 comments on commit f0f97de

Please sign in to comment.