From: Chris Duncan Date: Sat, 15 Aug 2026 21:41:04 +0000 (-0700) Subject: Fix wording on problem vector. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=7b8e73f69077fdd205f88c79cdfcf5659c9374bc;p=nano25519.git Fix wording on problem vector. --- diff --git a/test/node.mjs b/test/node.mjs index 7c55e09..9afaf3b 100644 --- a/test/node.mjs +++ b/test/node.mjs @@ -187,7 +187,7 @@ check(`sign message too long (65538 '1's)`, test) passes += +test failures += +!test -// Check verification of cemented block from non-canonical account +// Check verification of live cemented block from small-order public key result = verify(PROBLEM_VECTOR.signature, PROBLEM_VECTOR.blockHash, PROBLEM_VECTOR.publicKey) test = result === true check(`verify problematic signature string ${NANO_ORG_VECTOR.signature}`, test) diff --git a/test/vectors.mjs b/test/vectors.mjs index 380b477..0f97bba 100644 --- a/test/vectors.mjs +++ b/test/vectors.mjs @@ -18,6 +18,7 @@ export const NANO_ORG_VECTOR = { } // https://github.com/rsnano-node/rsnano-node/blob/develop/types/src/private_key.rs +// Small-order public key producing malleable signatures // Address: nano_11a11111111111111111111111111111111111111111111111116iq5p4i8 export const PROBLEM_VECTOR = { blockHash: '150AFD70BD1E9845715F91D7CD7D5EE2683668199F19B4DF533FC7802CE07CA2',