mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
feat(ios): hashcash in swift (#8602)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface HashcashPlugin {
|
||||
hash(options: {
|
||||
challenge: string;
|
||||
bits?: number;
|
||||
}): Promise<{ value: string }>;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { registerPlugin } from '@capacitor/core';
|
||||
|
||||
import type { HashcashPlugin } from './definitions';
|
||||
|
||||
const Hashcash = registerPlugin<HashcashPlugin>('Hashcash');
|
||||
|
||||
export * from './definitions';
|
||||
export { Hashcash };
|
||||
Reference in New Issue
Block a user