prikk-object 0.27.0

Object identity, canonical encoding, and payload types for Prikk. Internal to the prikk CLI; its API may change without notice before 1.0.
Documentation
1
2
3
4
5
6
7
8
use super::CanonicalWriter;

#[test]
fn rejects_decreasing_tags() {
    let mut writer = CanonicalWriter::new();
    assert!(writer.field_u32(2, 1).is_ok());
    assert!(writer.field_u32(1, 1).is_err());
}