Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions crates/twigpine-node/src/ans104.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ use sha2::{Digest, Sha256, Sha384};
/// The signature type byte for Ed25519. ANS-104 defines several
/// signature algorithms. Binary parsing accepts the spec signature
/// types (1 to 4), but `sign_data_item` and `verify_data_item` on this
/// slice support Ed25519 (sigtype 2) only. The Ethereum golden output
/// is illustrative and non-normative (see
/// `scripts/ans104_golden_output.txt`).
/// slice support Ed25519 (sigtype 2) only. The golden vector is
/// Ed25519 (see `scripts/ans104_golden_output.txt`).
pub const SIGNATURE_TYPE_ED25519: u8 = 2;
#[allow(dead_code)] // used by the binary golden-vector test; clippy sees no caller at the bin-build level
pub const SIGNATURE_TYPE_ETHEREUM: u8 = 3;
Expand Down Expand Up @@ -991,8 +990,7 @@ mod tests {
//! module (low-level primitives) AND the golden vector in
//! `dataitem_matches_arbundles_golden_vector` — a real signed
//! DataItem captured from arbundles 0.10.x via
//! `scripts/ans104_golden_ed25519.mjs` (Ed25519 interop pin; the legacy
//! Ethereum script `scripts/ans104_golden.mjs` is illustrative only). The team memory
//! `scripts/ans104_golden_ed25519.mjs` (the Ed25519 interop pin). The team memory
//! `self-roundtrip-tests-do-not-prove-interop.md` is the policy.
use super::*;
use twigpine_core::identity::Keypair;
Expand Down
33 changes: 0 additions & 33 deletions scripts/ans104_golden.mjs

This file was deleted.

7 changes: 4 additions & 3 deletions scripts/ans104_golden_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The Rust side will:
4. Assert sha256(signature_bytes) base64url-encodes to the captured id.
5. Assert to_binary round-trips byte-exact (signature slot preserved).

Legacy Ethereum script (scripts/ans104_golden.mjs) now signs before
capture as well; its output is illustrative only — the node verifies
Ed25519 (sigtype 2) on the verify path.
The node verifies Ed25519 (sigtype 2) on the verify path. An older script
that signed an illustrative Ethereum (sigtype 3) item was removed: nothing
pinned its output, and it was the only caller of elliptic's ECDSA
(GHSA-848j-6mx2-7j84, no patched version).