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

Method decode

crates/rpc/src/server/api/submit_auth_tx.rs:14–18  ·  view source on GitHub ↗
(request: proto::sequencer::AuthenticatedTransaction)

Source from the content-addressed store, hash-verified

12 type Output = proto::blockchain::BlockNumber;
13
14 fn decode(request: proto::sequencer::AuthenticatedTransaction) -> tonic::Result<Self::Input> {
15 AuthenticatedTransaction::try_from(request).map_err(|err| {
16 Status::invalid_argument(err.as_report_context("invalid authenticated transaction"))
17 })
18 }
19
20 fn encode(output: Self::Output) -> tonic::Result<proto::blockchain::BlockNumber> {
21 Ok(output)

Callers

nothing calls this directly

Calls 2

as_report_contextMethod · 0.80
map_errMethod · 0.45

Tested by

no test coverage detected