parseSerializedSignature
@iota/iota-sdk / cryptography / parseSerializedSignature
Function: parseSerializedSignature()
parseSerializedSignature(
serializedSignature): {authenticatorData:Uint8Array<ArrayBufferLike>;clientDataJson:string;publicKey:Uint8Array<ArrayBuffer>;serializedSignature:string;signature:Uint8Array<ArrayBufferLike>;signatureScheme:"Passkey";userSignature:Uint8Array<ArrayBuffer>; } | {bytes:Uint8Array<ArrayBufferLike>;moveAuthenticator?:undefined;multisig:MultiSigStruct;publicKey?:undefined;serializedSignature:string;signature?:undefined;signatureScheme:"MultiSig"; } | {bytes:Uint8Array<ArrayBufferLike>;moveAuthenticator: {$kind:"V1";V1: {callArgs:EnumOutputShapeWithKeys<{Object:EnumOutputShapeWithKeys<{ImmOrOwnedObject: {digest:string;objectId:string;version:string; };Receiving: {digest:string;objectId:string;version:string; };SharedObject: {initialSharedVersion:string;mutable:boolean;objectId:string; }; },"ImmOrOwnedObject"|"SharedObject"|"Receiving">;Pure: {bytes:string; }; },"Pure"|"Object">[];objectToAuthenticate:EnumOutputShapeWithKeys<{Object:EnumOutputShapeWithKeys<{ImmOrOwnedObject: {digest:string;objectId:string;version:string; };Receiving: {digest:string;objectId:string;version:string; };SharedObject: {initialSharedVersion:string;mutable:boolean;objectId:string; }; },"ImmOrOwnedObject"|"SharedObject"|"Receiving">;Pure: {bytes:string; }; },"Pure"|"Object">;typeArgs:string[]; }; };multisig?:undefined;publicKey?:undefined;serializedSignature:string;signature:Uint8Array<ArrayBufferLike>;signatureScheme:"MoveAuthenticator"; } | {bytes:Uint8Array<ArrayBufferLike>;moveAuthenticator?:undefined;multisig?:undefined;publicKey:Uint8Array<ArrayBuffer>;serializedSignature:string;signature:Uint8Array<ArrayBuffer>;signatureScheme:"ED25519"|"Secp256k1"|"Secp256r1"; }
Defined in: sdk/typescript/src/cryptography/signature.ts:52
Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key
Parameters
serializedSignature
string
Returns
{ authenticatorData: Uint8Array<ArrayBufferLike>; clientDataJson: string; publicKey: Uint8Array<ArrayBuffer>; serializedSignature: string; signature: Uint8Array<ArrayBufferLike>; signatureScheme: "Passkey"; userSignature: Uint8Array<ArrayBuffer>; } | { bytes: Uint8Array<ArrayBufferLike>; moveAuthenticator?: undefined; multisig: MultiSigStruct; publicKey?: undefined; serializedSignature: string; signature?: undefined; signatureScheme: "MultiSig"; } | { bytes: Uint8Array<ArrayBufferLike>; moveAuthenticator: { $kind: "V1"; V1: { callArgs: EnumOutputShapeWithKeys<{ Object: EnumOutputShapeWithKeys<{ ImmOrOwnedObject: { digest: string; objectId: string; version: string; }; Receiving: { digest: string; objectId: string; version: string; }; SharedObject: { initialSharedVersion: string; mutable: boolean; objectId: string; }; }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">; Pure: { bytes: string; }; }, "Pure" | "Object">[]; objectToAuthenticate: EnumOutputShapeWithKeys<{ Object: EnumOutputShapeWithKeys<{ ImmOrOwnedObject: { digest: string; objectId: string; version: string; }; Receiving: { digest: string; objectId: string; version: string; }; SharedObject: { initialSharedVersion: string; mutable: boolean; objectId: string; }; }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">; Pure: { bytes: string; }; }, "Pure" | "Object">; typeArgs: string[]; }; }; multisig?: undefined; publicKey?: undefined; serializedSignature: string; signature: Uint8Array<ArrayBufferLike>; signatureScheme: "MoveAuthenticator"; } | { bytes: Uint8Array<ArrayBufferLike>; moveAuthenticator?: undefined; multisig?: undefined; publicKey: Uint8Array<ArrayBuffer>; serializedSignature: string; signature: Uint8Array<ArrayBuffer>; signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1"; }