zklogin/utils library

Functions

findFirstNonZeroIndex(Uint8List bytes) int
getExtendedEphemeralPublicKey(PublicKey publicKey) String
Flag-prefixed base64 ephemeral public key expected by the proving service.
normalizeZkLoginIssuer(String iss) String
Normalize a zkLogin issuer: accounts.google.com -> https://accounts.google.com.
toBigEndianBytes(BigInt num, int width) Uint8List
Big-endian bytes of num with leading zeros stripped.
toPaddedBigEndianBytes(BigInt num, int width) Uint8List
Big-endian bytes of num, left-padded with zeros to width.