MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / with_controller

Method with_controller

core/src/event_id.rs:375–384  ·  view source on GitHub ↗

Specify the controller for the event

(mut self, controller: &str)

Source from the content-addressed store, hash-verified

373 }
374 /// Specify the controller for the event
375 pub fn with_controller(mut self, controller: &str) -> Builder<WithController> {
376 self.state
377 .bytes
378 .extend(last8_bytes(&sha256_digest(controller)));
379 Builder {
380 state: WithController {
381 bytes: self.state.bytes,
382 },
383 }
384 }
385}
386impl Builder<WithController> {
387 /// Specify that the minimum init value should be used for the event

Callers 8

newMethod · 0.45
no_cidFunction · 0.45
get_interestsFunction · 0.45
get_interests_for_peerFunction · 0.45

Calls 3

last8_bytesFunction · 0.85
sha256_digestFunction · 0.85
extendMethod · 0.45

Tested by 6

no_cidFunction · 0.36
get_interestsFunction · 0.36
get_interests_for_peerFunction · 0.36