mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00: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 }>;
|
||||
}
|
||||
8
packages/frontend/apps/ios/src/plugins/hashcash/index.ts
Normal file
8
packages/frontend/apps/ios/src/plugins/hashcash/index.ts
Normal file
@@ -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