/** * barkd REST API * A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis. * * The version of the OpenAPI document: 0.6.2 * Contact: hello@second.tech * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { MessageVerification, SignMessageRequest, SignedMessage, VerifyMessageRequest } from '../models/index'; export interface SignMessageOperationRequest { signMessageRequest: SignMessageRequest; } export interface VerifyMessageOperationRequest { verifyMessageRequest: VerifyMessageRequest; } /** * */ export declare class MessageApi extends runtime.BaseAPI { /** * Creates request options for signMessage without sending the request */ signMessageRequestOpts(requestParameters: SignMessageOperationRequest): Promise; /** * Signs an arbitrary message with a BIP-340 Schnorr signature over a prefixed hash (`SHA256(\"bark/message\" || message)`) of the UTF-8 message bytes. The message is signed with the key of the given Ark address, which must be one of the wallet\'s own addresses; addresses that do not belong to the wallet are rejected. The resulting signature can be checked with the `/message/verify` endpoint. * Sign a message */ signMessageRaw(requestParameters: SignMessageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Signs an arbitrary message with a BIP-340 Schnorr signature over a prefixed hash (`SHA256(\"bark/message\" || message)`) of the UTF-8 message bytes. The message is signed with the key of the given Ark address, which must be one of the wallet\'s own addresses; addresses that do not belong to the wallet are rejected. The resulting signature can be checked with the `/message/verify` endpoint. * Sign a message */ signMessage(requestParameters: SignMessageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for verifyMessage without sending the request */ verifyMessageRequestOpts(requestParameters: VerifyMessageOperationRequest): Promise; /** * Verifies a BIP-340 Schnorr signature over a prefixed hash (`SHA256(\"bark/message\" || message)`) of the UTF-8 message bytes, as created by the `/message/sign` endpoint. The signature is checked against a public key (`pubkey`) or against the user public key of an Ark address (`address`); exactly one of the two must be set. Verification is stateless and works for signatures made by any wallet, not just this one. * Verify a signed message */ verifyMessageRaw(requestParameters: VerifyMessageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Verifies a BIP-340 Schnorr signature over a prefixed hash (`SHA256(\"bark/message\" || message)`) of the UTF-8 message bytes, as created by the `/message/sign` endpoint. The signature is checked against a public key (`pubkey`) or against the user public key of an Ark address (`address`); exactly one of the two must be set. Verification is stateless and works for signatures made by any wallet, not just this one. * Verify a signed message */ verifyMessage(requestParameters: VerifyMessageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }