Encodes the capability as IPLD if present
(&self)
| 128 | } |
| 129 | /// Encodes the capability as IPLD if present |
| 130 | pub fn encode_capability(&self) -> anyhow::Result<Option<(Cid, Vec<u8>)>> { |
| 131 | self.capability |
| 132 | .as_ref() |
| 133 | .map(|(cid, cacao)| Ok((*cid, cacao.to_cbor()?))) |
| 134 | .transpose() |
| 135 | } |
| 136 | |
| 137 | /// Get the CID of the signature envelope |
| 138 | pub fn envelope_cid(&self) -> &Cid { |
no test coverage detected