Skip to content

Commit abaf493

Browse files
authored
Merge pull request #101 from KeystoneHQ/update
fix: map order may cause cbor decode error with URKit for iOS
2 parents c3a9d65 + d20d010 commit abaf493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/ur-registry/src/zcash/zcash_full_viewing_key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ impl<C> minicbor::Encode<C> for ZcashFullViewingKey {
4242
) -> Result<(), minicbor::encode::Error<W::Error>> {
4343
e.map(self.map_size())?;
4444

45-
e.int(Int::from(KEY_DATA))?.bytes(&self.key_data)?;
46-
4745
e.int(Int::from(KEY_PATH))?
4846
.tag(Tag::Unassigned(CRYPTO_KEYPATH.get_tag()))?;
4947
CryptoKeyPath::encode(&self.key_path, e, _ctx)?;
5048

49+
e.int(Int::from(KEY_DATA))?.bytes(&self.key_data)?;
50+
5151
Ok(())
5252
}
5353
}

0 commit comments

Comments
 (0)