ledger/btc.py
def _transaction_final_packet(
        lock_time: bytes,
        path: List[int],
        sighash_type: int) -> bytes:
    '''
    UNTRUSTED HASH SIGN packet with locktime and sighash type
    This packet actually requests the sig

    Args:
        lock_time  (bytes): 4 byte LE-encoded locktime field
        path   (List[int]): list of derivation indices
        sighash_type (int): bitcoin consensus sighash type. NONE not supported
    Returns:
        (bytes): the apdu packet
    '''
    data = bytearray()
    data.extend(blue.derivation_path_to_apdu_data(path))  # derivation info
    data.extend(b'\x00')                              # user validation code ??
    data.extend(lock_time)
    data.append(sighash_type)
    return blue.make_apdu(
        command=b'\x48',
        data=data)

    UNTRUSTED HASH SIGN packet with locktime and sighash type
    This packet actually requests the sig

    Args:
        lock_time  (bytes): 4 byte LE-encoded locktime field
        path   (List[int]): list of derivation indices
        sighash_type (int): bitcoin consensus sighash type. NONE not supported
    Returns:
        (bytes): the apdu packet
    
UNTRUSTED HASH SIGN packet with locktime and sighash type
This packet actually requests the sig
UNTRUSTED HASH SIGN packet with locktime and sighash type This packet actually requests the sig
def _transaction_final_packet(
        lock_time: bytes,
        path: List[int],
        sighash_type: int) -> bytes:
    data = bytearray()
    data.extend(blue.derivation_path_to_apdu_data(path))  
    data.extend(b'\x00')                              
    data.extend(lock_time)
    data.append(sighash_type)
    return blue.make_apdu(
        command=b'\x48',
        data=data)
def _transaction_final_packet ( lock_time : bytes , path : List [ int ] , sighash_type : int ) -> bytes : data = bytearray ( ) data . extend ( blue . derivation_path_to_apdu_data ( path ) ) data . extend ( b'\x00' ) data . extend ( lock_time ) data . append ( sighash_type ) return blue . make_apdu ( command = b'\x48' , data = data )
UNTRUSTED HASH SIGN packet with locktime and sighash type
This packet actually requests the sig
UNTRUSTED HASH SIGN packet with locktime and sighash type This packet actually requests the sig
'''
    UNTRUSTED HASH SIGN packet with locktime and sighash type
    This packet actually requests the sig

    Args:
        lock_time  (bytes): 4 byte LE-encoded locktime field
        path   (List[int]): list of derivation indices
        sighash_type (int): bitcoin consensus sighash type. NONE not supported
    Returns:
        (bytes): the apdu packet
    ''' # derivation info # user validation code ??
the apdu packet
the apdu packet
(bytes)
lock_time
bytes
4 byte LE-encoded locktime field
4 byte LE - encoded locktime field
path
List[int]
list of derivation indices
list of derivation indices
sighash_type
int
bitcoin consensus sighash type. NONE not supported
bitcoin consensus sighash type . NONE not supported