[][src]Function cash_tx_builder::script::null_data_script

pub fn null_data_script(data: &[u8]) -> Result<Vec<u8>>

Build scriptPubKey from null data

Arguments

  • data - null data

Returns

  • scriptPubKey

Example

let data = hex!("1234567890");
let script_pub_key = null_data_script(&data)?;
assert_eq!(script_pub_key, hex!("6a051234567890"));