7 Commits

Author SHA1 Message Date
257330cc1b dependency change for neptuneprivacy 2025-11-27 13:59:19 +07:00
Alan Szepieniec
1de0c69405 chore(README.md): Clarify roles of site name and domain 2025-08-22 16:38:30 +02:00
Alan Szepieniec
86698687a8 feat: Add Announcement viewer
Every transaction can have zero or more announcements, which are essentially
messages that must be included across all future mergers and updates.
Announcements are typically used for transmitting information related to
receiving UTXOs, encrypted. However, a new use case is that of *transparent
transaction info*, which is an announcement containing the UTXOs and the
commitment randomnesses needed to reproduce the transaction's inputs and
outputs. With such a transparent transaction info announcement, third parties
can transparently audit transactions.

This commit adds a page for viewing announcements, and if the announcement can
be parsed as a transparent transaction info type announcement then it is
rendered as such, complete with native currency amounts and linkable UTXOs
(where possible).

The path for accessing announcements is any of
 - `/announcement/digest/<hex-string>/<index>`
 - `/announcement/tip/<index>`
 - `/announcement/genesis/<index>`
 - `/announcement/height/<height>/<index>`
 - `/announcement/height_or_digest/<height-or-diges>/index/<index>`.
The last bullet point exists to support the quick lookup functionality, which is
also new. A `AnnouncementSelector` has display and from-string methods relating
these path formats to the relevant object. A suite of (prop)tests verifies
parsing.

Also, this commit enables mocking, which is useful when the neptune-core node
the explorer is connected to is outdated, unsynced, or for whatever reason does
not serve the desired data. The RPC client call is intercepted, and if it fails
and mocking is enabled, an imagined (pseudorandom) resource of the requested
type is returned. To enable mocking, compile with the "mock" feature flag and
set the "MOCK" environment variable.
2025-08-22 16:38:30 +02:00
Alan Szepieniec
67962a5d12 chore: Upgrade to neptune-core v0.3.0 2025-08-05 22:29:11 +02:00
danda
938f12a943 docs: add note about pkg-config and libssl-dev 2024-05-28 13:06:59 -07:00
danda
d99fe3ff84 feat: add --listen-port and rename --port
Changes:
 * adds --listen-port for specifying http port to listen on.
 * renames --port to --neptune-rpc-port which is clearer
 * updates README accordingly
2024-05-22 19:41:21 -07:00
danda
7dfe9366be doc: add README.md 2024-05-22 17:46:42 -07:00