test-ic-wallet-middleware-icrc
Version:
Ic middleware wallet ICRC protocol
11 lines (10 loc) • 420 B
TypeScript
import { Principal } from "@dfinity/principal";
import { SubAccountId } from "../types";
export declare class PrincipalProvider {
static toAccountIdentifier(principal: Principal, subAccountId: SubAccountId): string;
static toPrincipalAndSubAccountId(accountIdentifier: string): {
owner: Principal;
subaccount: SubAccountId;
};
static toSubAccountId(principal: Principal): SubAccountId;
}