mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-10-20 18:56:18 +00:00
Apply lint's own fixes to the sr25519 sources and network interfaces
Import order and stray blank lines left by the scure-sr25519 swap, plus the 2026 headers of these files. eslint --fix output; no code changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
bebfcee609
commit
f081bedcf7
9 files changed
+11
-18
No files matched your search
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { getSharedSecret } from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Keypair } from '../types.js';
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { isU8a } from '@pezkuwi/util';
|
||||
|
||||
export function createDeriveFn (derive: (pair: Uint8Array, cc: Uint8Array) => Uint8Array): (keypair: Keypair, chainCode: Uint8Array) => Keypair {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { isU8a, u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
export function sr25519DerivePublic (publicKey: string | Uint8Array, chainCode: Uint8Array): Uint8Array {
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Keypair } from '../../types.js';
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Keypair } from '../types.js';
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Keypair } from '../types.js';
|
||||
|
||||
import { randomBytes } from '@noble/hashes/utils';
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
const EMPTY_U8A = new Uint8Array();
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import * as sr25519 from '@pezkuwi/scure-sr25519';
|
||||
|
||||
import { u8aToU8a } from '@pezkuwi/util';
|
||||
|
||||
const EMPTY_U8A = new Uint8Array();
|
||||
|
||||
Reference in new issue
Block a user