MaxEntries
untyped bigintValue
(512 <untyped> bigint)
MaxEntryLen
untyped bigintValue
(256 <untyped> bigint)
renderEntries
untyped bigintValue
(10 <untyped> bigint)
log
*v0.MMR- OID
- 0a6108…1635:26
log details
entries
[]string- OID
- 0a6108…1635:36
entries details
init.5
func()- OID
- 0a6108…1635:7
init.5 details
Append
func(entry string) intAppend adds an entry to the log and returns its index. The root moves, so every previously issued proof stops verifying against the new root: that is the nature of an append-only commitment, not a bug.
- OID
- 0a6108…1635:9
Append details
appendEntry
func(entry string) int- OID
- 0a6108…1635:10
appendEntry details
Size
func() intSize returns the number of entries.
- OID
- 0a6108…1635:11
Size details
Root
func() stringRoot returns the current log root, hex-encoded. It is also the Tendermint simple-tree root over the same entries, so any Tendermint verifier accepts it.
- OID
- 0a6108…1635:12
Root details
Entry
func(index int) stringEntry returns the entry at index.
- OID
- 0a6108…1635:13
Entry details
ProofOf
func(index int) (path string, before string, after string)ProofOf returns the inclusion proof for index, as the three comma-separated hex lists Verify expects.
- OID
- 0a6108…1635:14
ProofOf details
Verify
func(root string, index int, total int, entry string, path string, before string, after string) boolVerify checks a proof against a root the caller supplies, which is the honest signature: the realm is a verifier, not an oracle. Pass Root() to check against the live log.
- OID
- 0a6108…1635:15
Verify details
VerifyFixed
func(root string, index int, total int, leaf string, siblings string) boolVerifyFixed checks a Tendermint simple-tree proof, the fixed-leaf-set encoding, against a root the caller supplies. Same tree as the log, a different proof shape: siblings are one flat list, leaf first. Both encodings verify against the same root, because the Tendermint tree and a right-bagged mountain range are the same structure.
- OID
- 0a6108…1635:16
VerifyFixed details
mustRange
func(index int)- OID
- 0a6108…1635:17
mustRange details
hexHash
func(s string) ([]uint8, .uverse.error)- OID
- 0a6108…1635:18
hexHash details
seed
func()seed returns the realm to its deployed state: an empty log plus the three demo entries, so a fresh deployment renders something and so the example tests have a fixed starting point. Realm globals persist across a whole test binary and examples run after every Test, so a pinned Render must call this first.
- OID
- 0a6108…1635:19
seed details
Render
func(path string) stringRender serves the overview at "" and one entry with its proof at "entry/\<index>". Output is a fixed size: the entry list is capped at renderEntries, so a full log still renders. The chain caps a query at maxGasQuery and a reader cannot raise it, so an unbounded Render is a permanently unreadable page.
- OID
- 0a6108…1635:20
Render details
renderIndex
func() string- OID
- 0a6108…1635:22
renderIndex details
renderEntry
func(raw string) string- OID
- 0a6108…1635:23
renderEntry details
rootOrDash
func() string- OID
- 0a6108…1635:24
rootOrDash details
orDash
func(s string) string- OID
- 0a6108…1635:25