Canonical bytes for signing (JCS of `signing_value`).
(&self)
| 366 | |
| 367 | /// Canonical bytes for signing (JCS of `signing_value`). |
| 368 | pub fn signing_bytes(&self) -> Vec<u8> { |
| 369 | jcs::canonicalize(&self.signing_value()).into_bytes() |
| 370 | } |
| 371 | |
| 372 | /// Recompute the content hash from the current node state. |
| 373 | pub fn compute_content_hash(&self) -> String { |