Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
new timesTwo, r(`rho:registry`), print in {
	contract timesTwo(@x, ret) = {
		ret!(x * 2)
	} |
	[r, "register"]!("uuid", bundle+{*timesTwo}, *print)
}

A user would be able to predict the contents of the print name, and would therefore know what UUID was registered by monitoring that name for events. It will be sent a uri that looks likeĀ `rho:uuid:<uuid-hex>`

...

Code Block
new timesThree, r(`rho:registry`), print in {
	contract timesThree(@x, ret) = {
		ret!(x * 3)
	} |
	[r, "register"]!("pubkey:ed25519", "<pubkey-hex-bytes>".hexToBytes(), bundle+{*timesThree}, "<signature-of-timesThree-hex-bytes>".hexToBytes(), *print)
}

...

Code Block
new r(`rho:registry`), twoXret, print in {
	[r, "lookup"]!(`rho:uuid:<uuid given by registering timesTwo>`, *twoXret) |
	for (twoX <- twoXret) {
		twoX!(7, print)
	}
}

...

Code Block
new r(`rho:registry`), threeXret, print in {
	[r, "lookup"]!(`rho:pubkey:ed25519:<pubkey hash computed above>`, *threeXret) |
	for (threeX <- threeXret) {
		threeX!(7, print)
	}
}

...