Utility for converting a Move value to its binary representation in BCS (Diem Canonical Serialization). BCS is the binary encoding for Move resources and other non-module values published on-chain.
Return the binary representation of v
in BCS (Starcoin Canonical Serialization) format
public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>
Implementation
native public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>;
Return the address of key bytes
public fun to_address(key_bytes: vector<u8>): address
Implementation
native public fun to_address(key_bytes: vector<u8>): address;
pragma verify;
pragma aborts_if_is_strict;
native fun serialize<MoveValue>(v: &MoveValue): vector<u8>;