(buf: &mut &[u8])
| 959 | } |
| 960 | fn get_scope(validator: u8, buf: &mut &[u8]) -> Result<(), String> { |
| 961 | if get_u8(buf)? != 3 { |
| 962 | return Err("claim: unsupported object format".into()); |
| 963 | } |
| 964 | if get_u8(buf)? != validator { |
| 965 | return Err("claim: wrong validator identity".into()); |
| 966 | } |
| 967 | Ok(()) |
| 968 | } |
| 969 | |
| 970 | impl Claim { |
no test coverage detected