ton_lib 0.0.38

A collection of types and utilities for interacting with the TON network
1
2
3
4
5
6
7
8
9
10
use ton_lib_core::cell::TonHash;
use ton_lib_core::TLBDerive;

// https://github.com/ton-blockchain/ton/blob/ed4682066978f69ffa38dd98912ca77d4f660f66/crypto/block/block.tlb#L302
#[derive(Default, Debug, PartialEq, Clone, TLBDerive)]
#[tlb_derive(prefix = 0x72, bits_len = 8)]
pub struct HashUpdate {
    pub old: TonHash,
    pub new: TonHash,
}