1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
//
// SPDX-License-Identifier: MIT OR Apache-2.0
//! # reallyme-codec
//!
//! Codec-only utilities used by ReallyMe and DID tooling: base encodings,
//! canonical JSON/CBOR serialization, multicodec lookup, multikey handling, and
//! PEM text armor.
//! SHA-256 is used for content identifiers. This crate does not expose signing,
//! encryption, or key generation.
//!
//! # Usage examples
//!
/// Standard (RFC 4648) base64 encode/decode.
/// URL-safe (RFC 4648 ยง5) base64 encode/decode without padding.
/// Borrowed general CBOR, deterministic CBOR, DAG-CBOR, and CID helpers.
/// Strict, bounded, schema-directed DER parsing for Rust consumers.
/// Bounded definite BER/ISO 7816 and DER header framing.
/// Canonical lowercase hexadecimal encode/decode helpers.
/// JSON Canonicalization Scheme helpers.
/// Multibase self-describing base encodings.
/// Semantic multicodec registry lookup, prefix handling, and metadata.
/// Multikey encoding/parsing that binds an algorithm to opaque key bytes.
/// PEM text armor parsing and encoding.
/// Generated protobuf operation contract lane.