Documentation
¶
Overview ¶
Package ipnstest builds IPNS records at the wire level for tests, bypassing ipns.NewRecord so callers can construct records that record creation would sanitize or that verification would reject (for example a negative TTL).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawRecordWithTTL ¶
RawRecordWithTTL builds an unsigned EOL IPNS record whose DAG-CBOR data carries exactly the given TTL, without going through ipns.NewRecord. This lets a test produce a record that NewRecord would floor or that ipns.Validate would reject (such as a negative TTL). The record is unsigned and must only be fed to code paths that do not verify signatures.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.