From fae47d2dac0758d45070864ef5d7671bd26f7fbc Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 Oct 2025 15:20:13 +0800 Subject: [PATCH] fix length printout in credential id --- signing/extract_sk_credential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signing/extract_sk_credential.py b/signing/extract_sk_credential.py index 2b604e986..5b1d88b78 100644 --- a/signing/extract_sk_credential.py +++ b/signing/extract_sk_credential.py @@ -91,7 +91,7 @@ def main(): print(f"pub const {name}_PUB: [u8; 32] = [{pubkey_formatted}];") print(f"pubkey base64: {base64.b64encode(pubkey_blob)}") key_handle_formatted = ', '.join(f"0x{byte:02x}" for byte in key_handle) - print(f"pub const {name}_CRED_ID: [u8; 32] = [{key_handle_formatted}];") + print(f"pub const {name}_CRED_ID: [u8; {len(key_handle)}] = [{key_handle_formatted}];") print(f"cred id base64: {base64.b64encode(key_handle)}") if __name__ == "__main__":