Skip to content

Commit

Permalink
xmr: trezor-common version bump & sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 18, 2018
1 parent 03e71de commit 6f40ce1
Show file tree
Hide file tree
Showing 37 changed files with 63 additions and 162 deletions.
2 changes: 1 addition & 1 deletion src/trezor/messages/DebugMoneroDiagAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class DebugMoneroDiagAck(p.MessageType):
MESSAGE_WIRE_TYPE = 537
MESSAGE_WIRE_TYPE = 547
FIELDS = {
1: ('ins', p.UVarintType, 0),
2: ('p1', p.UVarintType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/DebugMoneroDiagRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class DebugMoneroDiagRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 536
MESSAGE_WIRE_TYPE = 546
FIELDS = {
1: ('ins', p.UVarintType, 0),
2: ('p1', p.UVarintType, 0),
Expand Down
52 changes: 31 additions & 21 deletions src/trezor/messages/MessageType.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,25 +137,35 @@
RippleAddress = 401
RippleSignTx = 402
RippleSignedTx = 403
MoneroTransactionSignRequest = 501
MoneroTransactionInitRequest = 501
MoneroTransactionInitAck = 502
MoneroTransactionSetInputAck = 503
MoneroTransactionInputsPermutationAck = 504
MoneroTransactionInputViniAck = 505
MoneroTransactionAllInputsSetAck = 513
MoneroTransactionSetOutputAck = 506
MoneroTransactionRangeSigAck = 514
MoneroTransactionAllOutSetAck = 507
MoneroTransactionMlsagDoneAck = 508
MoneroTransactionSignInputAck = 509
MoneroTransactionFinalAck = 510
MoneroKeyImageSyncRequest = 511
MoneroKeyImageExportInitAck = 520
MoneroKeyImageSyncStepAck = 521
MoneroKeyImageSyncFinalAck = 522
MoneroGetAddress = 530
MoneroAddress = 531
MoneroGetWatchKey = 532
MoneroWatchKey = 533
DebugMoneroDiagRequest = 536
DebugMoneroDiagAck = 537
MoneroTransactionSetInputRequest = 503
MoneroTransactionSetInputAck = 504
MoneroTransactionInputsPermutationRequest = 505
MoneroTransactionInputsPermutationAck = 506
MoneroTransactionInputViniRequest = 507
MoneroTransactionInputViniAck = 508
MoneroTransactionAllInputsSetRequest = 509
MoneroTransactionAllInputsSetAck = 510
MoneroTransactionSetOutputRequest = 511
MoneroTransactionSetOutputAck = 512
MoneroTransactionAllOutSetRequest = 513
MoneroTransactionAllOutSetAck = 514
MoneroTransactionMlsagDoneRequest = 515
MoneroTransactionMlsagDoneAck = 516
MoneroTransactionSignInputRequest = 517
MoneroTransactionSignInputAck = 518
MoneroTransactionFinalRequest = 519
MoneroTransactionFinalAck = 520
MoneroKeyImageExportInitRequest = 530
MoneroKeyImageExportInitAck = 531
MoneroKeyImageSyncStepRequest = 532
MoneroKeyImageSyncStepAck = 533
MoneroKeyImageSyncFinalRequest = 534
MoneroKeyImageSyncFinalAck = 535
MoneroGetAddress = 540
MoneroAddress = 541
MoneroGetWatchKey = 542
MoneroWatchKey = 543
DebugMoneroDiagRequest = 546
DebugMoneroDiagAck = 547
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 531
MESSAGE_WIRE_TYPE = 541
FIELDS = {
1: ('address', p.BytesType, 0),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroGetAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MoneroGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 530
MESSAGE_WIRE_TYPE = 540
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroGetWatchKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MoneroGetWatchKey(p.MessageType):
MESSAGE_WIRE_TYPE = 532
MESSAGE_WIRE_TYPE = 542
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('network_type', p.UVarintType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroKeyImageExportInitAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroKeyImageExportInitAck(p.MessageType):
MESSAGE_WIRE_TYPE = 520
MESSAGE_WIRE_TYPE = 531
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroKeyImageExportInitRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


class MoneroKeyImageExportInitRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 530
FIELDS = {
1: ('num', p.UVarintType, 0),
2: ('hash', p.BytesType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroKeyImageSyncFinalAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroKeyImageSyncFinalAck(p.MessageType):
MESSAGE_WIRE_TYPE = 522
MESSAGE_WIRE_TYPE = 535
FIELDS = {
1: ('enc_key', p.BytesType, 0),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroKeyImageSyncFinalRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroKeyImageSyncFinalRequest(p.MessageType):
pass
MESSAGE_WIRE_TYPE = 534
26 changes: 0 additions & 26 deletions src/trezor/messages/MoneroKeyImageSyncRequest.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroKeyImageSyncStepAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class MoneroKeyImageSyncStepAck(p.MessageType):
MESSAGE_WIRE_TYPE = 521
MESSAGE_WIRE_TYPE = 533
FIELDS = {
1: ('kis', MoneroExportedKeyImage, p.FLAG_REPEATED),
}
Expand Down
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroKeyImageSyncStepRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


class MoneroKeyImageSyncStepRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 532
FIELDS = {
1: ('tdis', MoneroTransferDetails, p.FLAG_REPEATED),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionAllInputsSetAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class MoneroTransactionAllInputsSetAck(p.MessageType):
MESSAGE_WIRE_TYPE = 513
MESSAGE_WIRE_TYPE = 510
FIELDS = {
1: ('rsig_data', MoneroTransactionRsigData, 0),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class MoneroTransactionAllInputsSetRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 509
FIELDS = {
1: ('rsig_data', MoneroTransactionRsigData, 0),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionAllOutSetAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class MoneroTransactionAllOutSetAck(p.MessageType):
MESSAGE_WIRE_TYPE = 507
MESSAGE_WIRE_TYPE = 514
FIELDS = {
1: ('extra', p.BytesType, 0),
2: ('tx_prefix_hash', p.BytesType, 0),
Expand Down
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionAllOutSetRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class MoneroTransactionAllOutSetRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 513
FIELDS = {
1: ('rsig_data', MoneroTransactionRsigData, 0),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionFinalAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroTransactionFinalAck(p.MessageType):
MESSAGE_WIRE_TYPE = 510
MESSAGE_WIRE_TYPE = 520
FIELDS = {
1: ('cout_key', p.BytesType, 0),
2: ('salt', p.BytesType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionFinalRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroTransactionFinalRequest(p.MessageType):
pass
MESSAGE_WIRE_TYPE = 519
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionInitRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


class MoneroTransactionInitRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 501
FIELDS = {
1: ('version', p.UVarintType, 0),
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionInputViniAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroTransactionInputViniAck(p.MessageType):
MESSAGE_WIRE_TYPE = 505
MESSAGE_WIRE_TYPE = 508
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionInputViniRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class MoneroTransactionInputViniRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 507
FIELDS = {
1: ('src_entr', MoneroTransactionSourceEntry, 0),
2: ('vini', p.BytesType, 0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroTransactionInputsPermutationAck(p.MessageType):
MESSAGE_WIRE_TYPE = 504
MESSAGE_WIRE_TYPE = 506
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@


class MoneroTransactionInputsPermutationRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 505
FIELDS = {
1: ('perm', p.UVarintType, p.FLAG_REPEATED),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionMlsagDoneAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroTransactionMlsagDoneAck(p.MessageType):
MESSAGE_WIRE_TYPE = 508
MESSAGE_WIRE_TYPE = 516
FIELDS = {
1: ('full_message_hash', p.BytesType, 0),
}
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionMlsagDoneRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class MoneroTransactionMlsagDoneRequest(p.MessageType):
pass
MESSAGE_WIRE_TYPE = 515
18 changes: 0 additions & 18 deletions src/trezor/messages/MoneroTransactionRangeSigAck.py

This file was deleted.

17 changes: 0 additions & 17 deletions src/trezor/messages/MoneroTransactionRangeSigRequest.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionSetInputAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroTransactionSetInputAck(p.MessageType):
MESSAGE_WIRE_TYPE = 503
MESSAGE_WIRE_TYPE = 504
FIELDS = {
1: ('vini', p.BytesType, 0),
2: ('vini_hmac', p.BytesType, 0),
Expand Down
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionSetInputRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class MoneroTransactionSetInputRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 503
FIELDS = {
1: ('version', p.UVarintType, 0),
2: ('src_entr', MoneroTransactionSourceEntry, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionSetOutputAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class MoneroTransactionSetOutputAck(p.MessageType):
MESSAGE_WIRE_TYPE = 506
MESSAGE_WIRE_TYPE = 512
FIELDS = {
1: ('tx_out', p.BytesType, 0),
2: ('vouti_hmac', p.BytesType, 0),
Expand Down
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionSetOutputRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


class MoneroTransactionSetOutputRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 511
FIELDS = {
1: ('dst_entr', MoneroTransactionDestinationEntry, 0),
2: ('dst_entr_hmac', p.BytesType, 0),
Expand Down
2 changes: 1 addition & 1 deletion src/trezor/messages/MoneroTransactionSignInputAck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class MoneroTransactionSignInputAck(p.MessageType):
MESSAGE_WIRE_TYPE = 509
MESSAGE_WIRE_TYPE = 518
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('cout', p.BytesType, 0),
Expand Down
1 change: 1 addition & 0 deletions src/trezor/messages/MoneroTransactionSignInputRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class MoneroTransactionSignInputRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 517
FIELDS = {
1: ('src_entr', MoneroTransactionSourceEntry, 0),
2: ('vini', p.BytesType, 0),
Expand Down
Loading

0 comments on commit 6f40ce1

Please sign in to comment.