Skip to content

Commit

Permalink
Cleanup (bluesky-social#210)
Browse files Browse the repository at this point in the history
* messing around w pino

* rework locals & add pino-http

* subsystem logging off env vars

* remove auth tokens from logs

* lots of logging

* re-enable tests

* update enabled check

* fix subsystem logging

* some quick cleanup
  • Loading branch information
dholms authored Oct 5, 2022
1 parent b26eb75 commit 7233ce0
Show file tree
Hide file tree
Showing 32 changed files with 19 additions and 586 deletions.
2 changes: 1 addition & 1 deletion packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
- [Auth](./auth): ADX's core permissioning library (based on UCANs).
- [Common](./common): A library containing code which is shared between ADX packages.
- [Crypto](./crypto): ADX's common cryptographic operations.
- [DID SDK](./did-sdk): A library for interacting with ADX's Decentralized ID methods.
- [DID Resolver](./did-resolver): A library for resolving ADX's Decentralized ID methods.
- [Repo](./repo): The "ADX repository" core implementation (a Merkle Search Tree).
- [Schemas](./schemas/): A library for validating data using ADX's schema system.
7 changes: 3 additions & 4 deletions packages/auth/src/verifier.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import * as ucans from '@ucans/core'
import * as didSdk from '@adxp/did-sdk'
import { DidableKey, EcdsaKeypair, p256Plugin } from '@adxp/crypto'
import { PluginInjectedApi } from './plugins'
import { verifySignature, verifySignatureUtf8 } from './signatures'
import { verifyUcan, verifyAdxUcan, verifyFullWritePermission } from './verify'
import AuthStore from './auth-store'
import { DidResolver } from '@adxp/did-sdk'
import { DidResolver } from '@adxp/did-resolver'

export const DID_KEY_PLUGINS = [p256Plugin]

Expand All @@ -18,7 +17,7 @@ export type VerifierOpts = {
}

export class Verifier {
didResolver: didSdk.DidResolver
didResolver: DidResolver
plugins: ucans.Plugins
ucanApi: PluginInjectedApi

Expand All @@ -32,7 +31,7 @@ export class Verifier {

const resolver =
opts.didResolver ??
new didSdk.DidResolver({
new DidResolver({
plcUrl,
timeout: resolutionTimeout,
})
Expand Down
7 changes: 1 addition & 6 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
export * as check from './check'
export * as util from './util'
export * from './util'

export * from './util'
export * from './tid'
export * from './cid'

export * from './logger'

export * from './network/names'
export * from './network/uri'

export * from './types'
40 changes: 0 additions & 40 deletions packages/common/src/network/names.ts

This file was deleted.

127 changes: 0 additions & 127 deletions packages/common/src/network/uri.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/common/src/network/util.ts

This file was deleted.

Loading

0 comments on commit 7233ce0

Please sign in to comment.