The canonical signed message: domain separator, then the content hash.
(content_hash: &Hash)
| 103 | |
| 104 | /// The canonical signed message: domain separator, then the content hash. |
| 105 | fn signature_message(content_hash: &Hash) -> Vec<u8> { |
| 106 | let mut message = Vec::with_capacity(CHANGE_SIGNATURE_DOMAIN.len() + 1 + 32); |
| 107 | message.extend_from_slice(CHANGE_SIGNATURE_DOMAIN); |
| 108 | message.push(0); |
| 109 | message.extend_from_slice(content_hash.as_bytes()); |
| 110 | message |
| 111 | } |
| 112 | |
| 113 | /// Base32-encode raw bytes for error messages. |
| 114 | fn baseline32(bytes: &[u8; 32]) -> String { |
no test coverage detected