• Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key

    Parameters

    • serializedSignature: string

    Returns
        | {
            authenticatorData: number[];
            clientDataJson: string;
            publicKey: Uint8Array;
            serializedSignature: string;
            signature: Uint8Array;
            signatureScheme: "Passkey";
            userSignature: Uint8Array;
        }
        | {
            publicKey: Uint8Array;
            serializedSignature: string;
            signature: Uint8Array;
            signatureScheme: "ZkLogin";
            zkLogin: {
                addressSeed: bigint;
                inputs: {
                    addressSeed: string;
                    headerBase64: string;
                    issBase64Details: {
                        indexMod4: number;
                        value: string;
                    };
                    proofPoints: {
                        a: string[];
                        b: string[][];
                        c: string[];
                    };
                };
                iss: string;
                maxEpoch: string;
                userSignature: number[];
            };
        }
        | {
            bytes: Uint8Array;
            multisig: MultiSigStruct;
            publicKey: undefined;
            serializedSignature: string;
            signature: undefined;
            signatureScheme: "MultiSig";
        }
        | {
            bytes: Uint8Array;
            multisig: undefined;
            publicKey: Uint8Array;
            serializedSignature: string;
            signature: Uint8Array;
            signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
        }