The binding id over the canonical signed bytes.
(&self)
| 490 | |
| 491 | /// The binding id over the canonical signed bytes. |
| 492 | pub fn id(&self) -> BindingId { |
| 493 | let mut hasher = blake3::Hasher::new(); |
| 494 | hasher.update(ID_DOMAIN); |
| 495 | hasher.update(&self.payload_bytes); |
| 496 | hasher.update(&self.signature); |
| 497 | BindingId(*hasher.finalize().as_bytes()) |
| 498 | } |
| 499 | |
| 500 | /// Decode and fully validate canonical signed bytes. |
| 501 | /// |