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.

v1 state

Back to all declarations

capsule

type

capsule carries no id field: the id belongs to the store, which hands it back on lookup and iteration.

Value

v1.capsule

capsules

*v0.Store

capsules assigns the capsule ids. v0 kept its own nextID plus an idKey() that called strings.Repeat WITHOUT the length guard the other realms had, so at the 10^12th capsule it did not mis-sort, it panicked: Repeat rejects a negative count, and the realm would have stopped accepting Leave calls. The store key is 8 fixed bytes with no width to outgrow.

Open
OID
0cafcf…0db0:4
capsules details

Inspect pointer

maxDelayBlocks

int64

Value

1000000

maxMessageLen

int

Value

500

Leave

func(message string, delayBlocks int64) int64

Leave seals a new message that stays hidden until \`delayBlocks\` blocks from now, then becomes publicly readable forever. Returns the capsule id.

Open
OID
0cafcf…0db0:7
Leave details

Inspect func

renderCapsule

func(idStr string) string
Open
OID
0cafcf…0db0:12
renderCapsule details

Inspect func

renderEntry

func(id v0.ID, c *v1.capsule) string
Open
OID
0cafcf…0db0:13
renderEntry details

Inspect func
capsule : type =v1.capsule
capsules : *v0.Store Inspect
maxDelayBlocks : int64 =1000000
maxMessageLen : int =500
Leave : func(message string, delayBlocks int64) int64 Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderSealed : func() string Inspect
renderCapsule : func(idStr string) string Inspect
renderEntry : func(id v0.ID, c *v1.capsule) string Inspect