Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/extension/background-script/connectors/alby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,19 @@
};
}

signMessage(args: SignMessageArgs): Promise<SignMessageResponse> {
// signMessage requires proof of ownership of a non-custodial node
// this is not the case in the Alby connector which connects to Lndhub
throw new Error(
"SignMessage is not supported by Alby accounts. Generate a Master Key to use LNURL auth."
async signMessage(args: SignMessageArgs): Promise<SignMessageResponse> {
const data = await this._request((client) =>
client.signMessage({

Check failure on line 241 in src/extension/background-script/connectors/alby.ts

View workflow job for this annotation

GitHub Actions / typecheck

Property 'signMessage' does not exist on type 'Client'.
message: args.message,
})
);

return {
data: {
message: data.message,
signature: data.signature,
},
};
}

async makeInvoice(args: MakeInvoiceArgs): Promise<MakeInvoiceResponse> {
Expand Down
Loading