(x: i32)
| 98 | } |
| 99 | |
| 100 | pub fn bitcoin_representation(x: i32) -> Vec<u8> { |
| 101 | let mut buf = [0u8; 8]; |
| 102 | let len = bitcoin::script::write_scriptint(&mut buf, x as i64); |
| 103 | return buf[0..len].to_vec(); |
| 104 | } |
| 105 | |
| 106 | #[cfg(test)] |
| 107 | mod test { |
no outgoing calls
no test coverage detected