Skip to content

Commit f10c230

Browse files
committed
chore: doc about context specific
Signed-off-by: bkioshn <[email protected]>
1 parent 4a07cae commit f10c230

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rust/rbac-registration/src/cardano/cip509/validation.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ use super::{
4444

4545
/// Context-specific primitive type with tag number 6 (`raw_tag` 134) for
4646
/// uniform resource identifier (URI) in the subject alternative name extension.
47+
/// Following the ASN.1 <https://www.oss.com/asn1/resources/asn1-made-simple/asn1-quick-reference/asn1-tags.html>,
48+
/// the tag is derive from
49+
/// | Class (2 bit) | P/C (1 bit) | Tag Number (5 bit) |
50+
/// |`CONTEXT_SPECIFIC` | `PRIMITIVE` `| 6` |
51+
/// |`10` | `0` `| 00110` |
52+
/// Result in 0x86 or 134 in decimal.
4753
pub(crate) const URI: u8 = 134;
4854

4955
// ------------------------ Validate Txn Inputs Hash ------------------------

0 commit comments

Comments
 (0)