scatter-js icon indicating copy to clipboard operation
scatter-js copied to clipboard

Add arbitrary sigs for lynx

Open nsjames opened this issue 5 years ago • 0 comments

// Use await to return a promise
(async () => {

    let result;

    try {
        result = await window.lynxMobile.requestArbitrarySignature({
            data: "the string you wish to sign",
            whatFor: "The reason you want the signature. This will displayed to the user."
        });
    } catch (err) {
        console.log(err);
    }

    console.log(result); // "SIG_K1_JvbGYMSe7auMt8TvLUkoi1A1ywdqoNMmZ4vSeMfaFFtLL58eRGBtzk8HqbmyyrGWTUvhmFAQFHoMeF4icHrtwJQAqynqcD"

})();

nsjames avatar May 18 '19 02:05 nsjames