Function catalyst_toolbox::rewards::chain_proposal_id_bytes
source · pub(crate) fn chain_proposal_id_bytes(v: &[u8]) -> Result<[u8; 32], Error>
Expand description
Convert a slice of bytes that represent a valid ExternalProposalId
, and returns an array of
the decoded 32-byte array.