A map whose five keys collide on native conversion, used as a storage key
The colliding map (u32 1, i32 1, u64 1, string "1", symbol 1) is the contract-data KEY: it sits in the LedgerKey and the event topic.
The shape
The colliding map (u32 1, i32 1, u64 1, string "1", symbol 1) is the contract-data KEY: it sits in the LedgerKey and the event topic. Converting it to a native object collapses the keys and changes the entry identity. js-stellar-sdk#1789.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,940 B | beeffd7903fd… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,932 B | b127b3718d5a… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,940 B | 2f79b2787a7d… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 2,932 B | 006598dd5639… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The created entry's key is a map with 5 entries. | some change where 1 fields match | constructionsnapshotcorewalker |
Sightings
js-stellar-sdk#1789Check it yourself
make verify # schema, hashes, the byte-for-byte round trip and every fact above
make oracle # the facts' values, re-read by stellar-core and the schema walkerEntry id scval.map.colliding-keys-as-key · compiled from catalog/scval.map.colliding-keys-as-key.json · entry.json
Every ScVal number and time type at its extreme
i64 min, u128 max, i128 min, u256 max, i256 min, timepoint and duration max, 64 bytes, a non-UTF-8 string, bool and void in one vector: storage, event and return value.
Map keys that collide
A contract stores and emits a map with five distinct keys that all read as "1" once converted to a native object. A lossy reader keeps one.