01Sheet 01 · the motto

If stellar-core can emit it, your code should survive it.

Test your Stellar indexer and SDK against the ledger's rarest shapes. Real stellar-core bytes for the shapes behind real incidents, kept with the facts a correct reader must return. Real indexer builds ingest them; SDK builds run test vectors for the same shapes.

Fig. 01 · the signer that halted wallet-backendCAP-0040 · testnet ledger 4437357 · 44 bytes
TYPE · 3ED25519 KEY · 32 BYTESLENGTH · 3PAYLOADPAD00000000034404ad47185a0830e91c24125e8b058216b191e27d2099fb40f924ff48ca0d287e1264ec32879b200036000003de40adbe00payload = de ad bethe 3 bytes a 33-byte column loses · wallet-backend#71601 · 79EA2ACD#715wallet-backend, ledgers 4437356–59keeps 33 of 41 strkey bytes33 B02 · 6E5A5910#693wallet-backend, ledgers 4437356–59stops at ledger 4437357HALTED03 · 2C873353#729wallet-backend, ledgers 4437356–59keeps all 41 strkey bytesHANDLEDSHAPESignerKey · signed payloadCAP · PROTOCOL0040 · 28FROMtestnet ledger 4437357ENTRYsigner.signed-payload…
Hazards

77 in 8 layers

Corpus

201 entries · 37 mined ledgers

Union arms

350 of 499, entries + mined

SDK builds

7 under test

Sheet

01 / 04

02Sheet 02 · the specimen

Every digit is money.
Hold all of them.

The trustline in the SAC entry has the largest limit the ledger allows. Read it as a float64 and the last three digits are gone.

Fig. 02 · trustline limit · i64::MAX9,223,372,036,854,775,807 stroops ÷ 10⁷ · XPF
922,337,203,685
.4775807

ExactA 64-bit integer of stroops: 9,223,372,036,854,775,807. Every digit is real.

As a float64922,337,203,685.4775
The last three digits are gone.

On recordHazard H-B3: amounts as lossy floats, stellar-etl#454

03Sheet 03 · the record

One team's 3 a.m.
is everyone's test.

Six real bugs, reproduced from corpus ledgers (wallet-backend) and test vectors (the SDKs): each fails on the build before its fix and passes after. Verdicts come from state, never from logs.

RefShapeWhat went wrongWhereCAPReproduced by
R-01Signed-payload signerStored as 33 bytes: the payload is lostwallet-backend#716CAP-0040make replay
R-02Signed-payload signerIngestion halts at the ledgerwallet-backend#729CAP-0040make replay
R-03Trustline created by a contract callNo TRUSTLINE/ADD is recordedwallet-backend#731CAP-0073make replay
R-04Asset orderingSorted by strkey text, not XDR bytes (Go had the twin)js-stellar-sdk#1766–make conformance
R-05Muxed and offer IDsNon-canonical forms acceptedjs-stellar-sdk#1785CAP-0027make conformance
R-06Map keysKeys that collide on conversion are droppedjs-stellar-sdk#1789CAP-0046make conformance
ALLEvery check, one commandVerify, oracle, coverage, generate, conformance and replaymake all

Run the corpus on your machine.

git clone https://github.com/XDRProof/xdrproof && cd xdrproof && make verify