UNPKG

@dfinity/ledger-icp

Version:

A library for interfacing with the ICP ledger on the Internet Computer.

6 lines (5 loc) 434 B
import type { Principal } from "@dfinity/principal"; import type { AccountIdentifierHex } from "../types/common"; export declare const accountIdentifierToBytes: (accountIdentifier: AccountIdentifierHex) => Uint8Array; export declare const accountIdentifierFromBytes: (accountIdentifier: Uint8Array) => AccountIdentifierHex; export declare const principalToAccountIdentifier: (principal: Principal, subAccount?: Uint8Array) => string;