memba_notes_v1 source realm
Package memba\_notes\_v1 stores versioned Markdown notes and their receipts. Publication is immutable; deployment is ...
Package memba_notes_v1 stores versioned Markdown notes and their receipts. Publication is immutable; deployment is gated on the complete contract audit.
19
const ModePrivate, ModeShared, ModeLink, ModePublic, ModePublicOpen
const MaxBodyBytes, MaxCipherBodyBytes, MaxTitleBytes, MaxCipherTitleBytes, MaxReaders, MaxPage
const CommentCooldownBlocks
const GovRealmPath
const ManifestEntryBytes
const MaxAccessRequests
const MaxAnchorBytes
const MaxBackupBytes
const MaxBodyChunkBytes
const MaxCipherCommentBytes
const MaxCommentBytes
const MaxCommentPage
const MaxGovPayloadBytes
const MaxManifestBytes
const MaxModerators
const RealmPath
const RedactedTitle
RedactedTitle replaces a redacted current title, which must stay valid.
const RequestTTLBlocks
72
func AcceptAdmin
crossing Actionfunc AcceptOwnership
crossing Actionfunc AccessRequestJSON
Actionfunc AccessRequestsJSON
Actionfunc AddComment
crossing Action1func AddComment(cur realm, id, cid [16]byte, bodyRevision uint64, epoch uint32, parent [16]byte, anchor, body []byte, opID [16]byte)Public comments carry UTF8 anchor/body separately. Encrypted comments will carry their combined authenticated payload in Body and an empty Anchor.
func AddModerator
crossing Actionfunc AddWriter
crossing Actionfunc ApplyAccess
crossing Action1func ApplyAccess(cur realm, id [16]byte, baseRevision uint64, expectedEpoch uint32, mode uint8, manifest []byte, opID [16]byte)ApplyAccess grants access to the CURRENT epoch and its history. Removing a reader/writer or changing link scope requires Rotate, never this entrypoint.
func CancelAccessRequest
crossing Actionfunc CommentJSON
Actionfunc CommentsJSON
ActionComments paginate in append order; editing or moderation never reorders them.
func Commit
crossing Action1func Commit(cur realm, id [16]byte, baseRevision uint64, expectedEpoch uint32, fieldMask uint8, title, body []byte, opID [16]byte)fieldMask: 1 title, 2 body, 3 both. An unchanged field must be omitted (empty blob). The separate field revision advances only when that field changes.
func ConfigJSON
Actionfunc CreateNote
crossing Action1func CreateNote(cur realm, id [16]byte, mode uint8, title, body, access, commitment []byte, maxFee int64, opID [16]byte)CreateNote is the only payable entrypoint; encrypted creation is atomic.
func Delete
crossing ActionDelete retains the ID and last operation receipt forever. Large collections are purged by bounded follow-up calls, never by an unbounded delete loop.
func DeleteComment
crossing Actionfunc EpochJSON
Actionfunc EpochsJSON
Actionfunc GovApply
crossing Actionfunc GovDigest
Actionfunc GrantAccess
crossing Action1func GrantAccess(cur realm, id [16]byte, baseRevision uint64, expectedEpoch uint32, manifest []byte, opID [16]byte)A holder may grant a read-policy-approved recipient the current epoch. Every existing entry must remain byte-identical: a grantee cannot corrupt someone else's wrap, change writers, remove access or rotate the owner into new keys.
func HideComment
crossing Actionfunc ListByOwnerJSON
Actionfunc ListPublicJSON
Actionfunc ListSharedWithJSON
Actionfunc ModerateListing
crossing Action1func ModerateListing(cur realm, id [16]byte, baseRevision uint64, visible bool, opID [16]byte)Directory moderation is separate from owner discoverability. Owners cannot undo a moderation hide by toggling their own listing preference.
func ModeratorsJSON
Actionfunc NoteBodyChunkJSON
ActionEach page is tied to the complete state revision, including access/mode and epoch changes. Clients concatenate binary chunks before decoding UTF8/AEAD.
func NoteJSON
Actionfunc NoteMetaJSON
Actionfunc Pause
crossing Actionfunc PoliciesJSON
Actionfunc ProposeOwner
crossing Actionfunc PublicCapabilitiesJSON
ActionSeparate schema: existing NoteJSON consumers retain their exact field set.
func PublicHistoryBodyChunkJSON
ActionPublicHistoryBodyChunkJSON reads the body of the version recorded by the note-level event seq (a version's recorded_seq). A later note-level event that kept the body returns the same body; comment and cleanup events, deletion versions, unknown seqs and redacted bodies return null.
func PublicHistoryCommentJSON
Actionfunc PublicHistoryEntryJSON
Actionfunc PublicHistoryInfoJSON
Actionfunc PublicHistoryJSON
Actionfunc PublicHistoryVersionJSON
ActionPublicHistoryVersionJSON reads the public state recorded at a state revision. recorded_seq is the event that recorded it; PublicHistoryBodyChunkJSON and RedactPublicContentAtSeq address that version by this seq.
func Publish
crossing Actionfunc Purge
crossing ActionPurge never operates on a live note. Each call erases at most limit records (including cooldowns); a permanent note tombstone prevents ID reuse.
func PurgeExpiredRequests
crossing ActionAt most limit records are inspected, not just removed. The returned cursor lets a caller sweep the full request set without an unbounded scan.
func ReadersJSON
Actionfunc RedactPublicComment
crossing ActionRedactPublicComment removes a public comment's anchor and body from both the live comment (which becomes hidden and cannot be shown again) and its public history. A purged comment keeps only its history record, which is redacted the same way; baseRevision is then ignored (pass 0).
func RedactPublicContentAtSeq
crossing Action1func RedactPublicContentAtSeq(cur realm, id [16]byte, baseRevision uint64, field uint8, seq uint64, opID [16]byte)RedactPublicContentAtSeq removes one public title (field 1) or body (field 2) from realm storage: the one recorded by the note-level history event seq (a version's recorded_seq). The name carries the addressing so a caller written for field revisions cannot act on the wrong version. History stores each field revision once, so every version that kept that title or body shows it redacted. Public history keeps its SHA-256 and a content-redact entry naming the moderator and the field revision. Redacting the current version also replaces it (placeholder title, empty body) under a new field revision. Gno refunds the freed storage to the moderator who frees it.
func RefreshOwnWrap
crossing Action1func RefreshOwnWrap(cur realm, id [16]byte, baseRevision uint64, expectedEpoch uint32, manifest []byte, opID [16]byte)RefreshOwnWrap changes only the caller's identity envelope. It cannot change roles, readers, modes or epochs, and never rewrites anybody else's recovery.
func RegisterPolicy
crossing Actionfunc RejectAccessRequest
crossing Actionfunc RemoveModerator
crossing Actionfunc RemoveWriter
crossing Actionfunc Rename
crossing Actionfunc Render
gnoweb uses bounded pages. A revision in every continuation link prevents assembling a whitepaper from different edits; the app reads binary chunks.
func RequestAccess
crossing Actionfunc ResolveComment
crossing Actionfunc Reveal
crossing Actionfunc Rotate
crossing Action1func Rotate(cur realm, id [16]byte, baseRevision uint64, expectedEpoch uint32, mode uint8, title, body, manifest, kc []byte, opID [16]byte)Rotate installs the entire next epoch in one transaction. Historical epoch records stay available until Delete+boundedPurge; rotation never scans them.
func SealJSON
Actionfunc SeedBackupAtJSON
Actionfunc SeedBackupJSON
Actionfunc SeedBackupsJSON
Actionfunc SetCommentMode
crossing Actionfunc SetCreateFee
crossing Actionfunc SetGovWriters
crossing Actionfunc SetListed
crossing Actionfunc SetPolicy
crossing Actionfunc SetPublicWrites
crossing Actionfunc SetSeedBackup
crossing Actionfunc SetTreasury
crossing Actionfunc TransferAdmin
crossing Actionfunc WrapJSON
Actionfunc WritersJSON
Action1
18
- bytes stdlib
- chain stdlib
- chain/banker stdlib
- chain/runtime stdlib
- chain/runtime/unsafe stdlib
- crypto/bech32 stdlib
- crypto/sha256 stdlib
- encoding/base64 stdlib
- encoding/binary stdlib
- encoding/hex stdlib
- gno.land/p/samcrew/avl package
- gno.land/p/samcrew/daoauth package
- gno.land/r/samcrew/enckeys_v1 realm
- gno.land/r/samcrew/memba_gov realm
- strconv stdlib
- strings stdlib
- unicode stdlib
- unicode/utf8 stdlib