pub const fn new(code: &'a str) -> Script<'a> {
        let b = const_sha1::sha1(
            &const_sha1::ConstBuffer::from_slice(code.as_bytes())
        ).bytes();

        let hash_bytes = [
            HEX_TABLE[((b[0] >> 4) & 0xf) as usize], HEX_TABLE[(b[0] & 0xf) as usize],
            HEX_TABLE[((b[1] >> 4) & 0xf) as usize], HEX_TABLE[(b[1] & 0xf) as usize],
            HEX_TABLE[((b[2] >> 4) & 0xf) as usize], HEX_TABLE[(b[2] & 0xf) as usize],
            HEX_TABLE[((b[3] >> 4) & 0xf) as usize], HEX_TABLE[(b[3] & 0xf) as usize],
            HEX_TABLE[((b[4] >> 4) & 0xf) as usize], HEX_TABLE[(b[4] & 0xf) as usize],
            HEX_TABLE[((b[5] >> 4) & 0xf) as usize], HEX_TABLE[(b[5] & 0xf) as usize],
            HEX_TABLE[((b[6] >> 4) & 0xf) as usize], HEX_TABLE[(b[6] & 0xf) as usize],
            HEX_TABLE[((b[7] >> 4) & 0xf) as usize], HEX_TABLE[(b[7] & 0xf) as usize],
            HEX_TABLE[((b[8] >> 4) & 0xf) as usize], HEX_TABLE[(b[8] & 0xf) as usize],
            HEX_TABLE[((b[9] >> 4) & 0xf) as usize], HEX_TABLE[(b[9] & 0xf) as usize],
            HEX_TABLE[((b[10] >> 4) & 0xf) as usize], HEX_TABLE[(b[10] & 0xf) as usize],
            HEX_TABLE[((b[11] >> 4) & 0xf) as usize], HEX_TABLE[(b[11] & 0xf) as usize],
            HEX_TABLE[((b[12] >> 4) & 0xf) as usize], HEX_TABLE[(b[12] & 0xf) as usize],
            HEX_TABLE[((b[13] >> 4) & 0xf) as usize], HEX_TABLE[(b[13] & 0xf) as usize],
            HEX_TABLE[((b[14] >> 4) & 0xf) as usize], HEX_TABLE[(b[14] & 0xf) as usize],
            HEX_TABLE[((b[15] >> 4) & 0xf) as usize], HEX_TABLE[(b[15] & 0xf) as usize],
            HEX_TABLE[((b[16] >> 4) & 0xf) as usize], HEX_TABLE[(b[16] & 0xf) as usize],
            HEX_TABLE[((b[17] >> 4) & 0xf) as usize], HEX_TABLE[(b[17] & 0xf) as usize],
            HEX_TABLE[((b[18] >> 4) & 0xf) as usize], HEX_TABLE[(b[18] & 0xf) as usize],
            HEX_TABLE[((b[19] >> 4) & 0xf) as usize], HEX_TABLE[(b[19] & 0xf) as usize],
        ];
        Script::<'a> {
            code,
            hash_hex_bytes: hash_bytes
        }
    }
/// Creates a new script object.
Creates a new script object.
Creates a new script object .
pub const fn new(code: &'a str) -> Script<'a> {
        let b = const_sha1::sha1(
            &const_sha1::ConstBuffer::from_slice(code.as_bytes())
        ).bytes();
        let hash_bytes = [
            HEX_TABLE[((b[0] >> 4) & 0xf) as usize], HEX_TABLE[(b[0] & 0xf) as usize],
            HEX_TABLE[((b[1] >> 4) & 0xf) as usize], HEX_TABLE[(b[1] & 0xf) as usize],
            HEX_TABLE[((b[2] >> 4) & 0xf) as usize], HEX_TABLE[(b[2] & 0xf) as usize],
            HEX_TABLE[((b[3] >> 4) & 0xf) as usize], HEX_TABLE[(b[3] & 0xf) as usize],
            HEX_TABLE[((b[4] >> 4) & 0xf) as usize], HEX_TABLE[(b[4] & 0xf) as usize],
            HEX_TABLE[((b[5] >> 4) & 0xf) as usize], HEX_TABLE[(b[5] & 0xf) as usize],
            HEX_TABLE[((b[6] >> 4) & 0xf) as usize], HEX_TABLE[(b[6] & 0xf) as usize],
            HEX_TABLE[((b[7] >> 4) & 0xf) as usize], HEX_TABLE[(b[7] & 0xf) as usize],
            HEX_TABLE[((b[8] >> 4) & 0xf) as usize], HEX_TABLE[(b[8] & 0xf) as usize],
            HEX_TABLE[((b[9] >> 4) & 0xf) as usize], HEX_TABLE[(b[9] & 0xf) as usize],
            HEX_TABLE[((b[10] >> 4) & 0xf) as usize], HEX_TABLE[(b[10] & 0xf) as usize],
            HEX_TABLE[((b[11] >> 4) & 0xf) as usize], HEX_TABLE[(b[11] & 0xf) as usize],
            HEX_TABLE[((b[12] >> 4) & 0xf) as usize], HEX_TABLE[(b[12] & 0xf) as usize],
            HEX_TABLE[((b[13] >> 4) & 0xf) as usize], HEX_TABLE[(b[13] & 0xf) as usize],
            HEX_TABLE[((b[14] >> 4) & 0xf) as usize], HEX_TABLE[(b[14] & 0xf) as usize],
            HEX_TABLE[((b[15] >> 4) & 0xf) as usize], HEX_TABLE[(b[15] & 0xf) as usize],
            HEX_TABLE[((b[16] >> 4) & 0xf) as usize], HEX_TABLE[(b[16] & 0xf) as usize],
            HEX_TABLE[((b[17] >> 4) & 0xf) as usize], HEX_TABLE[(b[17] & 0xf) as usize],
            HEX_TABLE[((b[18] >> 4) & 0xf) as usize], HEX_TABLE[(b[18] & 0xf) as usize],
            HEX_TABLE[((b[19] >> 4) & 0xf) as usize], HEX_TABLE[(b[19] & 0xf) as usize],
        ];
        Script::<'a> {
            code,
            hash_hex_bytes: hash_bytes
        }
    }
pub const fn new ( code : & ' a str ) -> Script < ' a > { let b = const_sha1 :: sha1 ( & const_sha1 :: ConstBuffer :: from_slice ( code . as_bytes ( ) ) ) . bytes ( ) ; let hash_bytes = [ HEX_TABLE [ ( ( b [ 0 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 0 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 1 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 1 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 2 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 2 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 3 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 3 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 4 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 4 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 5 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 5 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 6 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 6 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 7 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 7 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 8 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 8 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 9 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 9 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 10 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 10 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 11 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 11 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 12 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 12 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 13 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 13 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 14 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 14 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 15 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 15 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 16 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 16 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 17 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 17 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 18 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 18 ] & 0xf ) as usize ] , HEX_TABLE [ ( ( b [ 19 ] >> 4 ) & 0xf ) as usize ] , HEX_TABLE [ ( b [ 19 ] & 0xf ) as usize ] , ] ; Script :: < ' a > { code , hash_hex_bytes : hash_bytes } }
Creates a new script object.
Creates a new script object .
code
&'a str
code
&'a str