ledger/btc.py
def _unmask_sig(sig: bytes) -> bytes:
    '''Ledger masks the first byte with 0xFE. We need to remove the mask'''
    first_byte = sig[0] & 0xfe
    sig = bytes([first_byte]) + sig[1:]
    return sig
Ledger masks the first byte with 0xFE. We need to remove the mask
Ledger masks the first byte with 0xFE. We need to remove the mask
Ledger masks the first byte with 0xFE . We need to remove the mask
def _unmask_sig(sig: bytes) -> bytes:
    first_byte = sig[0] & 0xfe
    sig = bytes([first_byte]) + sig[1:]
    return sig
def _unmask_sig ( sig : bytes ) -> bytes : first_byte = sig [ 0 ] & 0xfe sig = bytes ( [ first_byte ] ) + sig [ 1 : ] return sig
Ledger masks the first byte with 0xFE.
Ledger masks the first byte with 0xFE .
'''Ledger masks the first byte with 0xFE. We need to remove the mask'''
sig
bytes