MCPcopy Create free account
hub / github.com/0xMiden/node / encode

Method encode

crates/rpc/src/server/api/get_note_script_by_root.rs:20–22  ·  view source on GitHub ↗
(output: Self::Output)

Source from the content-addressed store, hash-verified

18 }
19
20 fn encode(output: Self::Output) -> tonic::Result<proto::rpc::MaybeNoteScript> {
21 Ok(proto::rpc::MaybeNoteScript { script: output.map(Into::into) })
22 }
23
24 #[miden_instrument(
25 target = COMPONENT,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected