privengine.gno
0.71 Kb · 20 lines
1// Package privengine is spike §5.5-5: the same honest engine, but deployed
2// with `private = true`. gnomod docs say data whose type is defined in a
3// private realm cannot be retained in other realms, so Register is expected
4// to FAIL. If it succeeds, a private (re-deployable) adapter could swap the
5// art of every collection that uses it, and core must refuse it explicitly.
6package privengine
7
8import (
9 "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa/spike/registry"
10)
11
12type impl struct{}
13
14func (impl) Name() string { return "spike-private" }
15
16func (impl) Render(seed string) string { return "<svg>" + seed + "</svg>" }
17
18func Register(cur realm) string {
19 return registry.Register(cross(cur), impl{})
20}