Skip to content

Commit 36e4b45

Browse files
committed
sui-sdk-types: add PasskeyAuthenticator::public_key method
1 parent 804cd06 commit 36e4b45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/sui-sdk-types/src/crypto/passkey.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ impl PasskeyAuthenticator {
8282
public_key: self.public_key,
8383
}
8484
}
85+
86+
/// The passkey public key
87+
pub fn public_key(&self) -> PasskeyPublicKey {
88+
PasskeyPublicKey::new(self.public_key)
89+
}
8590
}
8691

8792
/// Public key of a `PasskeyAuthenticator`.

0 commit comments

Comments
 (0)