diff --git a/firmware/fsm_msg_coin.h b/firmware/fsm_msg_coin.h index 2eb8e3a574..7123ce0e19 100644 --- a/firmware/fsm_msg_coin.h +++ b/firmware/fsm_msg_coin.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 Pavol Rusnak + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgGetPublicKey(GetPublicKey *msg) { RESP_INIT(PublicKey); diff --git a/firmware/fsm_msg_common.h b/firmware/fsm_msg_common.h index c42b5c3ffe..0c6c5416b0 100644 --- a/firmware/fsm_msg_common.h +++ b/firmware/fsm_msg_common.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 Pavol Rusnak + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgInitialize(Initialize *msg) { recovery_abort(); diff --git a/firmware/fsm_msg_crypto.h b/firmware/fsm_msg_crypto.h index 1a3a42433b..486dd74e38 100644 --- a/firmware/fsm_msg_crypto.h +++ b/firmware/fsm_msg_crypto.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 Pavol Rusnak + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgCipherKeyValue(CipherKeyValue *msg) { CHECK_INITIALIZED @@ -334,4 +353,4 @@ void fsm_msgCosiSign(CosiSign *msg) msg_write(MessageType_MessageType_CosiSignature, resp); layoutHome(); -} \ No newline at end of file +} diff --git a/firmware/fsm_msg_debug.h b/firmware/fsm_msg_debug.h index 3a84a87153..ad52e8e373 100644 --- a/firmware/fsm_msg_debug.h +++ b/firmware/fsm_msg_debug.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 Pavol Rusnak + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + #if DEBUG_LINK void fsm_msgDebugLinkGetState(DebugLinkGetState *msg) diff --git a/firmware/fsm_msg_ethereum.h b/firmware/fsm_msg_ethereum.h index ed83a67c98..f39a9659fb 100644 --- a/firmware/fsm_msg_ethereum.h +++ b/firmware/fsm_msg_ethereum.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 Pavol Rusnak + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgEthereumSignTx(EthereumSignTx *msg) { CHECK_INITIALIZED @@ -105,4 +124,4 @@ void fsm_msgEthereumVerifyMessage(EthereumVerifyMessage *msg) fsm_sendSuccess(_("Message verified")); layoutHome(); -} \ No newline at end of file +} diff --git a/firmware/fsm_msg_nem.h b/firmware/fsm_msg_nem.h index fb3c964619..83665bcca5 100644 --- a/firmware/fsm_msg_nem.h +++ b/firmware/fsm_msg_nem.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2017 Saleem Rashid + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgNEMGetAddress(NEMGetAddress *msg) { if (!msg->has_network) { @@ -284,4 +303,4 @@ void fsm_msgNEMDecryptMessage(NEMDecryptMessage *msg) msg_write(MessageType_MessageType_NEMDecryptedMessage, resp); layoutHome(); -} \ No newline at end of file +} diff --git a/firmware/fsm_msg_stellar.h b/firmware/fsm_msg_stellar.h index 4e626d183c..e27aadcfd6 100644 --- a/firmware/fsm_msg_stellar.h +++ b/firmware/fsm_msg_stellar.h @@ -1,3 +1,22 @@ +/* + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 ZuluCrypto + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + void fsm_msgStellarGetAddress(StellarGetAddress *msg) { RESP_INIT(StellarAddress); @@ -303,4 +322,4 @@ void fsm_msgStellarBumpSequenceOp(StellarBumpSequenceOp *msg) msg_write(MessageType_MessageType_StellarTxOpRequest, resp); } -} \ No newline at end of file +} diff --git a/firmware/stellar.c b/firmware/stellar.c index 8666e0d5df..e8d66c1e37 100644 --- a/firmware/stellar.c +++ b/firmware/stellar.c @@ -1,5 +1,7 @@ /* - * This file is part of the TREZOR project. + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 ZuluCrypto * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -13,16 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see . - * - * Stellar signing workflow: - * 1. Client sends a StellarSignTx method to the device with transaction header information - * 2. Device confirms transaction details with the user and requests first operation - * 3. Client sends protobuf message with details about the operation to sign - * 4. Device confirms operation with user - * 5a. If there are more operations in the transaction, device responds with StellarTxOpRequest. Go to 3 - * 5b. If the operation is the last one, device responds with StellarSignedTx */ +// Stellar signing workflow: +// +// 1. Client sends a StellarSignTx method to the device with transaction header information +// 2. Device confirms transaction details with the user and requests first operation +// 3. Client sends protobuf message with details about the operation to sign +// 4. Device confirms operation with user +// 5a. If there are more operations in the transaction, device responds with StellarTxOpRequest. Go to 3 +// 5b. If the operation is the last one, device responds with StellarSignedTx + #include #include #include "messages.h" @@ -1904,4 +1907,4 @@ void stellar_layoutTransactionDialog(const char *line1, const char *line2, const str_warning, false ); -} \ No newline at end of file +} diff --git a/firmware/stellar.h b/firmware/stellar.h index 404832650c..af1349988a 100644 --- a/firmware/stellar.h +++ b/firmware/stellar.h @@ -1,5 +1,7 @@ /* - * This file is part of the TREZOR project. + * This file is part of the TREZOR project, https://trezor.io/ + * + * Copyright (C) 2018 ZuluCrypto * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -99,4 +101,4 @@ bool stellar_validateAddress(const char *str_address); bool stellar_getAddressBytes(char* str_address, uint8_t *out_bytes); uint16_t stellar_crc16(uint8_t *bytes, uint32_t length); -#endif \ No newline at end of file +#endif