splitSignature
splitSignature(
signature):Signature
Defined in: utils/split-signature.ts:34
Expands a signature into the full signature object and fills in missing properties.
Same as “splitSignature” in ethers.js
Parameters
Section titled “Parameters”signature
Section titled “signature”the signature object to split, parse, and compute missing properties from
Returns
Section titled “Returns”a full signature object with all properties filled
Example
Section titled “Example”const signature = '0x60bc4ed91f2021aefe7045f3f77bd12f87eb733aee24bd1965343b3c27b3971647252185b7d2abb411b01b5d1ac4ab41ea486df1e9b396758c1aec6c1b6eee331b';splitSignature(signature); { r: "0x60bc4ed91f2021aefe7045f3f77bd12f87eb733aee24bd1965343b3c27b39716", s: "0x47252185b7d2abb411b01b5d1ac4ab41ea486df1e9b396758c1aec6c1b6eee33", _vs: "0x47252185b7d2abb411b01b5d1ac4ab41ea486df1e9b396758c1aec6c1b6eee33", recoveryParam: 0, v: 27, yParityAndS: "0x47252185b7d2abb411b01b5d1ac4ab41ea486df1e9b396758c1aec6c1b6eee33", compact: "0x60bc4ed91f2021aefe7045f3f77bd12f87eb733aee24bd1965343b3c27b3971647252185b7d2abb411b01b5d1ac4ab41ea486df1e9b396758c1aec6c1b6eee33" }