pkgPath
untyped stringValue
"gno.land/r/tests/vm/subhost"
Observe
func()Observe reports what the immediate caller presented as its identity. The three cur.Previous() views (address, synthesized pkgpath, subpath) are the callee-side surface a sub-token must present; the two parity booleans assert unsafe.PreviousRealm() reads the SAME identity (v2 §5.4: unsafe.\* must agree with cur.Previous()). prevParity is the load-bearing assertion for the identity-chain walk; curParity guards height 0.
- OID
- 06c6d9…90f7:3
Observe details
pkgPathOf
func(p string) stringpkgPathOf returns the host portion of a possibly-synthesized pkgpath, so DerivePkgSubAddr (which takes the host) can be recomputed from the callee's observation alone.
- OID
- 06c6d9…90f7:5
pkgPathOf details
ActAsSub
func(subpath string)ActAsSub mints a sub-identity of subhost's OWN live cur and crosses with it into Observe. Used by the MsgRun-entry parity test: the outermost entry is a \`/e/\<addr>/run\` ephemeral, but subhost's cur is a first-class primary here, so cur.Sub is legal and the sub presents to Observe exactly as in the MsgCall path.
- OID
- 06c6d9…90f7:6