How to use the protobuf.BoolType function in protobuf

To help you get started, we’ve selected a few protobuf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trezor / trezor-firmware / src / trezor / messages / TezosGetAddress.py View on Github external
def get_fields(cls):
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('show_display', p.BoolType, 0),
        }
github trezor / trezor-firmware / src / trezor / messages / GetAddress.py View on Github external
def get_fields(cls):
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('coin_name', p.UnicodeType, 0),  # default=Bitcoin
            3: ('show_display', p.BoolType, 0),
            4: ('multisig', MultisigRedeemScriptType, 0),
            5: ('script_type', p.UVarintType, 0),  # default=SPENDADDRESS
        }
github trezor / trezor-firmware / core / src / trezor / messages / OntologyGetPublicKey.py View on Github external
def get_fields(cls) -> Dict:
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('show_display', p.BoolType, 0),
        }
github trezor / trezor-firmware / src / trezor / messages / DebugLinkDecision.py View on Github external
def get_fields(cls):
        return {
            1: ('yes_no', p.BoolType, 0),
            2: ('up_down', p.BoolType, 0),
            3: ('input', p.UnicodeType, 0),
        }
github trezor / trezor-firmware / core / src / trezor / messages / StellarGetAddress.py View on Github external
def get_fields(cls) -> Dict:
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('show_display', p.BoolType, 0),
        }
github trezor / trezor-firmware / core / src / trezor / messages / EosActionDelegate.py View on Github external
def get_fields(cls) -> Dict:
        return {
            1: ('sender', p.UVarintType, 0),
            2: ('receiver', p.UVarintType, 0),
            3: ('net_quantity', EosAsset, 0),
            4: ('cpu_quantity', EosAsset, 0),
            5: ('transfer', p.BoolType, 0),
        }
github trezor / trezor-firmware / src / trezor / messages / StellarGetAddress.py View on Github external
def get_fields(cls):
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('show_display', p.BoolType, 0),
        }
github trezor / trezor-firmware / core / src / trezor / messages / TezosGetPublicKey.py View on Github external
def get_fields(cls) -> Dict:
        return {
            1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
            2: ('show_display', p.BoolType, 0),
        }
github trezor / trezor-firmware / core / src / trezor / messages / DebugLinkDecision.py View on Github external
def get_fields(cls) -> Dict:
        return {
            1: ('yes_no', p.BoolType, 0),
            2: ('up_down', p.BoolType, 0),
            3: ('input', p.UnicodeType, 0),
        }
github trezor / trezor-firmware / src / trezor / messages / RecoveryDevice.py View on Github external
def get_fields(cls):
        return {
            1: ('word_count', p.UVarintType, 0),
            2: ('passphrase_protection', p.BoolType, 0),
            3: ('pin_protection', p.BoolType, 0),
            4: ('language', p.UnicodeType, 0),  # default=english
            5: ('label', p.UnicodeType, 0),
            6: ('enforce_wordlist', p.BoolType, 0),
            8: ('type', p.UVarintType, 0),
            9: ('u2f_counter', p.UVarintType, 0),
            10: ('dry_run', p.BoolType, 0),
        }