Get the capability and its CID
(&self)
| 74 | |
| 75 | /// Get the capability and its CID |
| 76 | pub fn capability(&self) -> Option<&(Cid, Capability)> { |
| 77 | self.capability.as_ref() |
| 78 | } |
| 79 | |
| 80 | /// Constructs a signed event by signing a given event payload. |
| 81 | pub fn from_payload(payload: Payload<D>, signer: impl Signer) -> anyhow::Result<Self> { |