#dfinity #subcanister #principal #canister

bity-ic-ledger-utils

Description spécifique de la crate

1 unstable release

0.1.0 Mar 14, 2025

#4 in #principal

MIT license

19KB
241 lines

Module for handling Internet Computer ledger operations and account management.

This module provides utilities for working with the Internet Computer's ledger system, including account identifier computation, subaccount management, and conversion between different account formats.

Example

use candid::Principal;
use ic_ledger_types::AccountIdentifier;

let principal = Principal::from_text("rrkah-fqaaa-aaaaa-aaaaq-cai").unwrap();
let account_id = principal_to_legacy_account_id(principal, None);

Dependencies

~5–14MB
~160K SLoC