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

Method decode

crates/rpc/src/server/api/get_note_script_by_root.rs:16–18  ·  view source on GitHub ↗
(request: proto::note::NoteScriptRoot)

Source from the content-addressed store, hash-verified

14 type Output = Option<NoteScript>;
15
16 fn decode(request: proto::note::NoteScriptRoot) -> tonic::Result<Self::Input> {
17 Ok(request)
18 }
19
20 fn encode(output: Self::Output) -> tonic::Result<proto::rpc::MaybeNoteScript> {
21 Ok(proto::rpc::MaybeNoteScript { script: output.map(Into::into) })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected