cash_tx_builder::script
pub fn null_data_script(data: &[u8]) -> Result<Vec<u8>>
Build scriptPubKey from null data
scriptPubKey
null data
data
let data = hex!("1234567890"); let script_pub_key = null_data_script(&data)?; assert_eq!(script_pub_key, hex!("6a051234567890"));