Skip to content

Commit

Permalink
feat!: Don't prepend signature scheme flag before public key
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jun 12, 2024
1 parent 57b3b6b commit ae356c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust-app/src/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ impl Address<SuiPubKeyAddress, ledger_device_sdk::ecc::ECPublicKey<65, 'E'>> for
key: &ledger_device_sdk::ecc::ECPublicKey<65, 'E'>,
) -> Result<Self, SyscallError> {
let key_bytes = ed25519_public_key_bytes(key);
let mut tmp = ArrayVec::<u8, 33>::new();
let _ = tmp.try_push(0); // SIGNATURE_SCHEME_TO_FLAG['ED25519']
let mut tmp = ArrayVec::<u8, 32>::new();
let _ = tmp.try_extend_from_slice(key_bytes);
let mut hasher: Blake2b = Hasher::new();
hasher.update(&tmp);
Expand Down

0 comments on commit ae356c1

Please sign in to comment.