0x1::BCSUtility 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.
to_bytesReturn the binary representation of v in BCS (Starcoin Canonical Serialization) format
public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>
native public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>;
to_addressReturn the address of key bytes
public fun to_address(key_bytes: vector<u8>): address
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>;