Wrap already-produced change bytes without conversion or validation. The recipient must validate the payload and claimed identity before storing it.
(hash: &Hash, bytes: Vec<u8>)
| 336 | /// Wrap already-produced change bytes without conversion or validation. The |
| 337 | /// recipient must validate the payload and claimed identity before storing it. |
| 338 | pub fn change_bundle(hash: &Hash, bytes: Vec<u8>) -> pb::ChangeBundle { |
| 339 | pb::ChangeBundle { |
| 340 | hash: Some(hash_proto(hash)), |
| 341 | schema: change_schema(&bytes).to_string(), |
| 342 | payload: bytes, |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | /// Unwrap an interchange envelope without converting its payload. Legacy v3 |
| 347 | /// and empty labels remain accepted, including schema-5 bytes sent by older |