Entry
typeEntry is a single signed guestbook line.
Value
v0.Entry
maxMessageLen
untyped bigintValue
(280 <untyped> bigint)
entries
*v0.Tree- OID
- 01b27e…6aec:4
entries details
count
intValue
0
Sign
func(message string)Sign appends a new entry to the guestbook attributed to the immediate caller. It is a crossing function (gno 0.9 interrealm convention): callers invoke it as Sign(cross(cur), "hello"). The cur.IsCurrent() guard is the authentication primitive — without it a stale/forged realm value could spoof the author.
- OID
- 01b27e…6aec:7
Sign details
addEntry
func(author string, message string, height int64) *v0.EntryaddEntry validates the message and appends an entry. Non-crossing internal helper so the append/validation logic is unit-testable without a realm frame. Panics (aborting the tx, reverting state) on an invalid message.
- OID
- 01b27e…6aec:9
addEntry details
Count
func() intCount returns the total number of signatures. Read-only, non-crossing.
- OID
- 01b27e…6aec:10
Count details
Render
func(path string) stringRender lists every entry newest-first as a Markdown table plus a total count.
- OID
- 01b27e…6aec:11
Render details
seqKey
func(n int) stringseqKey renders a sequence number as a fixed-width, zero-padded string so avl's lexicographic key order matches numeric order.
- OID
- 01b27e…6aec:12
seqKey details
shortAddr
func(addr string) stringshortAddr abbreviates a bech32 address for compact display.
- OID
- 01b27e…6aec:13
shortAddr details
escapeCell
func(s string) stringescapeCell neutralizes characters that would break a Markdown table cell.
- OID
- 01b27e…6aec:14