Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions move/sources/multisig.move
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ module multisig::multisig {
address_from_bytes(pk, 34, 0x02)
}

/// Converts a ZKLoginPublicIdentifier to an address.
/// identifier - The ZKLoginPublicIdentifier including the 0x05 scheme flag.
/// Returns the address.
public fun zklogin_public_identifier_to_address(
identifier: &vector<u8>,
): address {
address_from_bytes(identifier, identifier.length(), 0x05)
}

/// Converts a public key to an address.
/// pk - The public key.
/// length - The expected length of the public key.
Expand Down