mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-23 03:17:52 +00:00
9 lines
282 B
TypeScript
9 lines
282 B
TypeScript
import { registerPlugin } from '@capacitor/core';
|
|
|
|
export interface NativePOWPlugin {
|
|
computeProofOfWork(options: { chatBytes: string; difficulty: number }): Promise<{ nonce: string }>;
|
|
}
|
|
|
|
const NativePOW = registerPlugin<NativePOWPlugin>('NativePOW');
|
|
|
|
export default NativePOW |