Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Aug 20, 2024
1 parent ba48e9b commit 160e4ff
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/internal/address/fromPublicKey.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Address } from 'abitype'

import type { Bytes, Hex } from '../types/data.js'
import type { GlobalErrorType } from '../errors/error.js'
import { keccak256 } from '../hash/keccak256.js'
import { toHex } from '../hex/toHex.js'
import type { GlobalErrorType } from '../errors/error.js'
import type { Bytes, Hex } from '../types/data.js'
import { toAddress } from './from.js'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/getPublicKey.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { secp256k1 } from '@noble/curves/secp256k1'

import type { Bytes, Hex } from '../types/data.js'
import type { GlobalErrorType } from '../errors/error.js'
import { toHex } from '../hex/toHex.js'
import type { Bytes, Hex } from '../types/data.js'

type To = 'bytes' | 'hex'

Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/randomPrivateKey.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { Secp256k1 } from 'ox'
import { expect, test } from 'vitest'

test('default', () => {
const privateKey = Secp256k1.randomPrivateKey()
Expand Down
4 changes: 2 additions & 2 deletions src/internal/secp256k1/randomPrivateKey.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { secp256k1 } from '@noble/curves/secp256k1'

import type { Bytes, Hex } from '../types/data.js'
import { toHex } from '../hex/toHex.js'
import type { GlobalErrorType } from '../errors/error.js'
import { toHex } from '../hex/toHex.js'
import type { Bytes, Hex } from '../types/data.js'

type To = 'bytes' | 'hex'

Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/recoverAddress.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { Address, Secp256k1 } from 'ox'
import { expect, test } from 'vitest'
import { accounts } from '../../../test/constants/accounts.js'

const address = accounts[0].address
Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/recoverAddress.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Address } from 'abitype'

import type { GlobalErrorType } from '../errors/error.js'
import { publicKeyToAddress } from '../address/fromPublicKey.js'
import type { GlobalErrorType } from '../errors/error.js'
import { recoverPublicKey } from './recoverPublicKey.js'

type To = 'bytes' | 'hex'
Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/recoverPublicKey.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { Secp256k1 } from 'ox'
import { expect, test } from 'vitest'
import { accounts } from '../../../test/constants/accounts.js'

const privateKey = accounts[0].privateKey
Expand Down
6 changes: 3 additions & 3 deletions src/internal/secp256k1/recoverPublicKey.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { secp256k1 } from '@noble/curves/secp256k1'

import type { Bytes, Hex } from '../types/data.js'
import type { Signature } from '../types/signature.js'
import { toBytes } from '../bytes/toBytes.js'
import type { GlobalErrorType } from '../errors/error.js'
import { toHex } from '../hex/toHex.js'
import { toBytes } from '../bytes/toBytes.js'
import type { Bytes, Hex } from '../types/data.js'
import type { Signature } from '../types/signature.js'

type To = 'bytes' | 'hex'

Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/verify.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { Secp256k1 } from 'ox'
import { expect, test } from 'vitest'
import { accounts } from '../../../test/constants/accounts.js'

const address = accounts[0].address
Expand Down
2 changes: 1 addition & 1 deletion src/internal/secp256k1/verify.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Address } from 'abitype'

import { isAddressEqual } from '../address/isEqual.js'
import { recoverAddress } from './recoverAddress.js'
import type { GlobalErrorType } from '../errors/error.js'
import type { Bytes, Hex } from '../types/data.js'
import type { Signature } from '../types/signature.js'
import { recoverAddress } from './recoverAddress.js'

/**
* Verifies a payload was signed by the provided address.
Expand Down

0 comments on commit 160e4ff

Please sign in to comment.