Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v0 state

Back to all declarations

MaxEntries

untyped bigint

Value

(512 <untyped> bigint)

MaxEntryLen

untyped bigint

Value

(256 <untyped> bigint)

renderEntries

untyped bigint

Value

(10 <untyped> bigint)

Append

func(entry string) int

Append 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.

Open
OID
020aab…efbf:9
Append details

Inspect func

appendEntry

func(entry string) int
Open
OID
020aab…efbf:10
appendEntry details

Inspect func

Size

func() int

Size returns the number of entries.

Open
OID
020aab…efbf:11
Size details

Inspect func

Root

func() string

Root 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.

Open
OID
020aab…efbf:12
Root details

Inspect func

Entry

func(index int) string

Entry returns the entry at index.

Open
OID
020aab…efbf:13
Entry details

Inspect func

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.

Open
OID
020aab…efbf:14
ProofOf details

Inspect func

Verify

func(root string, index int, total int, entry string, path string, before string, after string) bool

Verify 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.

Open
OID
020aab…efbf:15
Verify details

Inspect func

VerifyFixed

func(root string, index int, total int, leaf string, siblings string) bool

VerifyFixed 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.

Open
OID
020aab…efbf:16
VerifyFixed details

Inspect func

hexHash

func(s string) ([]uint8, .uverse.error)
Open
OID
020aab…efbf:18
hexHash details

Inspect func

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.

Open
OID
020aab…efbf:19
seed details

Inspect func

Render

func(path string) string

Render 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.

Open
OID
020aab…efbf:20
Render details

Inspect func

renderEntry

func(raw string) string
Open
OID
020aab…efbf:23
renderEntry details

Inspect func
MaxEntries : untyped bigint =(512 <untyped> bigint)
MaxEntryLen : untyped bigint =(256 <untyped> bigint)
renderEntries : untyped bigint =(10 <untyped> bigint)
log : *v0.MMR Inspect
entries : []string (len=3) Inspect
init.5 : func() Inspect
Append : func(entry string) int Inspect
appendEntry : func(entry string) int Inspect
Size : func() int Inspect
Root : func() string Inspect
Entry : func(index int) string Inspect
ProofOf : func(index int) (path string, before string, after string) Inspect
Verify : func(root string, index int, total int, entry string, path string, before string, after string) bool Inspect
VerifyFixed : func(root string, index int, total int, leaf string, siblings string) bool Inspect
mustRange : func(index int) Inspect
hexHash : func(s string) ([]uint8, .uverse.error) Inspect
seed : func() Inspect
Render : func(path string) string Inspect
renderIndex : func() string Inspect
renderEntry : func(raw string) string Inspect
rootOrDash : func() string Inspect
orDash : func(s string) string Inspect