UNPKG

filecoin-pin

Version:

Bridge IPFS content to Filecoin Onchain Cloud using familiar tools

24 lines 1.13 kB
/** * Address-only signer for session key authentication * * This signer provides an address but throws on any signing operations. * Used as the "owner" signer when authenticating with session keys, * where the actual signing is done by the session key wallet. */ import { AbstractSigner, type Provider, type TransactionRequest } from 'ethers'; /** * Symbol used to identify AddressOnlySigner instances * This is more reliable than instanceof checks across module boundaries */ export declare const ADDRESS_ONLY_SIGNER_SYMBOL: unique symbol; export declare class AddressOnlySigner extends AbstractSigner { readonly address: string; readonly [ADDRESS_ONLY_SIGNER_SYMBOL] = true; constructor(address: string, provider?: Provider); getAddress(): Promise<string>; connect(provider: Provider): AddressOnlySigner; signTransaction(_tx: TransactionRequest): Promise<string>; signMessage(_message: string | Uint8Array): Promise<string>; signTypedData(_domain: any, _types: Record<string, any[]>, _value: Record<string, any>): Promise<string>; } //# sourceMappingURL=address-only-signer.d.ts.map