consensus: height/time-gated removal of the CRYPTO555/notary t-vout exemption (F16)

On the fully-private chain (ac_private=1) all transparent outputs are banned except coinbase,
but hush_isnotaryvout() exempts CRYPTO555 and dPoW notary addresses -- so a public transparent
UTXO to those addresses is accepted on a chain users treat as fully shielded. Drop that
exemption so such vouts are rejected like any other taddr.

Dropping a previously-accepted output is a consensus change that could fork the live chain, so
it is activated by block time (DRAGONX_NOTARYVOUT_BAN_TIME, same mechanism as
HUSH_SAPING_ACTIVATION). It ships DEFAULT-OFF via the 0xFFFFFFFF sentinel (year 2106), so
merging is a verified no-op; the operator sets a real future timestamp once (a) the upgrade
window has passed and (b) they have confirmed no active dPoW notarization posts transparent
notary vouts on-chain -- otherwise activation would reject notarization txs and halt/fork.

Adversarially reviewed as SOUND (default-off, safe to merge): tiptime is deterministic at the
authoritative connect paths (prev->nTime), the sentinel is byte-identical to prior behavior,
and coinbase + ac_burn paths are preserved. Reviewer note: a height-based gate would be
marginally cleaner than time if ever made live.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 22:28:32 -05:00
co-authored by Claude Opus 4.8
parent 1c29fe86ff
commit 10217af8e4
2 changed files with 17 additions and 1 deletions
+9
View File
@@ -32,6 +32,15 @@
#define CRYPTO555_PUBSECPSTR "038a1bd41a08f38edda51042988022933c5775dfce81f7bae0b32a9179650352ac"
#define CRYPTO555_HUSHADDR "RFetqf8WUfWnwNeXdknkm8ojk7EXnYFzrv"
#define CRYPTO555_RMD160STR "deadbeefbadcaca748c4986b240ff7d7bc3fffb0"
// DragonX: block time at/after which the inherited CRYPTO555/notary transparent-vout exemption on
// the fully-private chain is removed, so those vouts become invalid like any other taddr. Dropping
// a previously-accepted output is a consensus change, so it is activated by block time (same
// mechanism as HUSH_SAPING_ACTIVATION) to let the whole network upgrade before it bites.
// 0xFFFFFFFF is a SENTINEL meaning "never active": the operator sets a real future timestamp once
// the upgrade window has passed AND they have confirmed no active dPoW notarization posts
// transparent notary vouts on-chain (which this ban would otherwise reject). Until then this commit
// is a no-op and changes no validation behavior.
#define DRAGONX_NOTARYVOUT_BAN_TIME 0xFFFFFFFF
#define HUSH_FIRSTFUNGIBLEID 100
#define HUSH_SAPING_ACTIVATION 1544832000 // Dec 15th, 2018
#define HUSH_SAPING_DEADLINE 1550188800 // Feb 15th, 2019
+8 -1
View File
@@ -1598,7 +1598,14 @@ bool CheckTransactionWithoutProofVerification(uint32_t tiptime,const CTransactio
char destaddr[65];
Getscriptaddress(destaddr,txout.scriptPubKey);
if ( hush_isnotaryvout(destaddr,tiptime) == 0 )
// The CRYPTO555/notary allowlist exempts those transparent vouts from the private-chain
// ban, leaving a public UTXO on a chain users treat as fully shielded. At/after the
// activation time that exemption is dropped and such vouts are rejected like any other
// taddr (time-gated + default-off via the sentinel so the whole network upgrades first).
// The gate is checked first so the allowlist lookup is skipped entirely once active.
int32_t isNotaryVout = ( tiptime >= DRAGONX_NOTARYVOUT_BAN_TIME )
? 0 : hush_isnotaryvout(destaddr,tiptime);
if ( isNotaryVout == 0 )
{
const bool isburn = (strcmp(destaddr,BURN_ADDRESS) == 0);
if ((ASSETCHAINS_BURN == 1) && isburn && tx.vin.empty()) {