UNPKG

@dfinity/utils

Version:

A collection of utilities and constants for NNS/SNS projects.

8 lines (7 loc) 353 B
import type { Principal } from "@dfinity/principal"; /** * Convert a principal to a Uint8Array 32 length. * e.g. Useful to convert a canister ID when topping up cycles with the Cmc canister * @param principal The principal that needs to be converted to Subaccount */ export declare const principalToSubAccount: (principal: Principal) => Uint8Array;