@@ -14,9 +14,9 @@ pub struct RoleData {
1414 /// Role number.
1515 pub role_number : u8 ,
1616 /// Optional role signing key.
17- pub role_signing_key : Option < Vec < KeyLocalRef > > ,
17+ pub role_signing_key : Option < KeyLocalRef > ,
1818 /// Optional role encryption key.
19- pub role_encryption_key : Option < Vec < KeyLocalRef > > ,
19+ pub role_encryption_key : Option < KeyLocalRef > ,
2020 /// Optional payment key.
2121 pub payment_key : Option < i16 > ,
2222 /// Optional role extended data keys.
@@ -56,20 +56,12 @@ impl Decode<'_, ()> for RoleData {
5656 role_data. role_number = decode_helper ( d, "RoleNumber in RoleData" , ctx) ?;
5757 } ,
5858 RoleDataInt :: RoleSigningKey => {
59- let arr_len = decode_array_len ( d, "RoleSigningKey" ) ?;
60- let mut role_signing_key = Vec :: new ( ) ;
61- for _ in 0 ..arr_len {
62- role_signing_key. push ( KeyLocalRef :: decode ( d, ctx) ?) ;
63- }
64- role_data. role_signing_key = Some ( role_signing_key) ;
59+ decode_array_len ( d, "RoleSigningKey" ) ?;
60+ role_data. role_signing_key = Some ( KeyLocalRef :: decode ( d, ctx) ?) ;
6561 } ,
6662 RoleDataInt :: RoleEncryptionKey => {
67- let arr_len = decode_array_len ( d, "RoleEncryptionKey" ) ?;
68- let mut role_encryption_key = Vec :: new ( ) ;
69- for _ in 0 ..arr_len {
70- role_encryption_key. push ( KeyLocalRef :: decode ( d, ctx) ?) ;
71- }
72- role_data. role_encryption_key = Some ( role_encryption_key) ;
63+ decode_array_len ( d, "RoleEncryptionKey" ) ?;
64+ role_data. role_encryption_key = Some ( KeyLocalRef :: decode ( d, ctx) ?) ;
7365 } ,
7466 RoleDataInt :: PaymentKey => {
7567 role_data. payment_key =
0 commit comments