15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
"use strict";
|
|
|
|
const { LedgerSigner } = require("./lib");
|
|
|
|
(async function() {
|
|
const signer = new LedgerSigner();
|
|
console.log(signer);
|
|
try {
|
|
const sig = await signer.signMessage("Hello World");
|
|
console.log(sig);
|
|
} catch (error) {
|
|
console.log("ERR", error);
|
|
}
|
|
})();
|