From aecde9fb0f64b5ffb15db9c25c38008625c93418 Mon Sep 17 00:00:00 2001 From: vnprc Date: Mon, 11 Nov 2024 21:05:31 -0500 Subject: [PATCH] nut13 specify keyset ID integer size: 32 bits --- 13.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13.md b/13.md index 7e641773..696636e9 100644 --- a/13.md +++ b/13.md @@ -42,7 +42,7 @@ The wallet starts with `counter_k := 0` upon encountering a new keyset and incre #### Keyset ID -The integer representation `keyset_id_int` of a keyset is calculated from its [hexadecimal ID][02] which has a length of 8 bytes or 16 hex characters. First, we convert the hex string to a big-endian sequence of bytes. This value is then modulo reduced by `2^31 - 1` to arrive at an integer that is a unique identifier `keyset_id_int`. +The 32 bit integer representation `keyset_id_int` of a keyset is calculated from its [hexadecimal ID][02] which has a length of 8 bytes or 16 hex characters. First, we convert the hex string to a big-endian sequence of bytes. This value is then modulo reduced by `2^31 - 1` to arrive at an integer that is a unique identifier `keyset_id_int`. Example in Python: ```python