From e3bbcc66b35780062b8da1bc3526f0f821628e5c Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Wed, 7 Oct 2026 10:35:22 +0400 Subject: [PATCH] util-crypto: sr25519 vectors signed under the bizinikiwi context The sr25519 cases verified upstream's vectors, signed under the substrate context, which this package does not accept: four cases failed whenever the suite ran. New vectors come from fixed seeds named in the spec and verify in both implementations (scure-sr25519 and the wasm Rust one); the upstream signature stays as a case that must not verify. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../util-crypto/src/signature/verify.spec.ts | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/util-crypto/src/signature/verify.spec.ts b/packages/util-crypto/src/signature/verify.spec.ts index e02f221..6d5e976 100644 --- a/packages/util-crypto/src/signature/verify.spec.ts +++ b/packages/util-crypto/src/signature/verify.spec.ts @@ -11,14 +11,21 @@ import { secp256k1Sign } from '../secp256k1/sign.js'; import { signatureVerify } from './index.js'; const ADDR_ED = 'DxN4uvzwPzJLtn17yew6jEffPhXQfdKHTp2brufb98vGbPN'; -const ADDR_SR = 'EK1bFgKm2FsghcttHT7TB7rNyXApFgs9fCbijMGQNyFGBQm'; -const ADDR_SR_WRAP = 'J9nD3s7zssCX7bion1xctAF6xcVexcpy2uwy4jTm9JL8yuK'; +// sr25519 here signs under the bizinikiwi context, so these were made with it: +// sr25519PairFromSeed(blake2AsU8a(stringToU8a(