Function decode_message
pub unconstrained fn decode_message(
message: BoundedVec<Field, 14>,
) -> (u64, u64, BoundedVec<Field, 13>)
pub unconstrained fn decode_message(
message: BoundedVec<Field, 14>,
) -> (u64, u64, BoundedVec<Field, 13>)
Decodes a standard aztec-nr message, i.e. one created via
encode_message, returning the original encoded values.Note that
encode_messagereturns a fixed size array while this function takes aBoundedVec: this is because prior to decoding the message type is unknown, and consequentially not known at compile time. If working with fixed-size messages, consider usingBoundedVec::from_arrayto convert them.