Function parseSerializedSignature
- parseSerializedSignature(
serializedSignature: string,
):
| {
bytes: Uint8Array;
publicKey: Uint8Array<ArrayBuffer>;
serializedSignature: string;
signature: Uint8Array<ArrayBuffer>;
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
}
| {
authenticatorData: number[];
clientDataJson: string;
publicKey: Uint8Array<ArrayBuffer>;
serializedSignature: string;
signature: Uint8Array;
signatureScheme: "Passkey";
userSignature: Uint8Array<ArrayBuffer>;
}
| {
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;
serializedSignature: string;
signature: undefined;
signatureScheme: "MultiSig";
} Parameters
- serializedSignature: string
Returns
| {
bytes: Uint8Array;
publicKey: Uint8Array<ArrayBuffer>;
serializedSignature: string;
signature: Uint8Array<ArrayBuffer>;
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
}
| {
authenticatorData: number[];
clientDataJson: string;
publicKey: Uint8Array<ArrayBuffer>;
serializedSignature: string;
signature: Uint8Array;
signatureScheme: "Passkey";
userSignature: Uint8Array<ArrayBuffer>;
}
| {
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;
serializedSignature: string;
signature: undefined;
signatureScheme: "MultiSig";
}
Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key