#dfinity #subcanister #principal #canister

bity-ic-ledger-utils

Description spécifique de la crate

1 unstable release

0.1.0 Mar 14, 2025

#6 in #principal

Download history 112/week @ 2025-03-11 12/week @ 2025-03-18 1/week @ 2025-03-25

125 downloads per month

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–12MB
~155K SLoC