@ceramicnetwork/blockchain-utils-linking
Version:
Blockchain utils for linking blockchain accounts to DID
16 lines • 752 B
TypeScript
import { AuthProvider } from './auth-provider.js';
import { AccountId } from 'caip';
import { LinkProof } from './util.js';
export declare class EosioAuthProvider implements AuthProvider {
private readonly provider;
private readonly address;
readonly isAuthProvider = true;
constructor(provider: any, address: string);
accountId(): Promise<AccountId>;
authenticate(message: string): Promise<string>;
createLink(did: string): Promise<LinkProof>;
withAddress(address: string): AuthProvider;
}
export declare function toPayload(message: string, accountID: AccountId): string;
export declare function toSignedPayload(message: string, accountID: AccountId, provider: any): Promise<string>;
//# sourceMappingURL=eosio.d.ts.map