diff --git a/LICENSE b/LICENSE index 3b3afac..b5eedb0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ Copyright 2018-2019 Shift Cryptosecurity AG, Switzerland. All rights reserved. +Copyright 2020-2025 Shift Crypto AG, Switzerland. All rights reserved. The rights to all images (.svg, .png, .jpg, .ico and similar files) and stylesheets (.css files) in this repository are reserved for Shift Devices diff --git a/api/bootloader/device.go b/api/bootloader/device.go index fbd9f54..416eef3 100644 --- a/api/bootloader/device.go +++ b/api/bootloader/device.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package bootloader contains the API to the physical device. package bootloader diff --git a/api/bootloader/device_test.go b/api/bootloader/device_test.go index 45684d4..7b61eab 100644 --- a/api/bootloader/device_test.go +++ b/api/bootloader/device_test.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package bootloader_test diff --git a/api/bootloader/util.go b/api/bootloader/util.go index 8ee70e6..1a87df6 100644 --- a/api/bootloader/util.go +++ b/api/bootloader/util.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package bootloader diff --git a/api/bootloader/util_test.go b/api/bootloader/util_test.go index b430a6b..be06656 100644 --- a/api/bootloader/util_test.go +++ b/api/bootloader/util_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package bootloader diff --git a/api/common/common.go b/api/common/common.go index 254e6de..507f03f 100644 --- a/api/common/common.go +++ b/api/common/common.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package common contains common functionality to firmware and bootloader of the bitbox02. package common diff --git a/api/firmware/attestation.go b/api/firmware/attestation.go index 8bd70d4..fe3f2e7 100644 --- a/api/firmware/attestation.go +++ b/api/firmware/attestation.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/attestation_test.go b/api/firmware/attestation_test.go index 1de81ce..e9c4b14 100644 --- a/api/firmware/attestation_test.go +++ b/api/firmware/attestation_test.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/backup.go b/api/firmware/backup.go index dd1ce85..32423b7 100644 --- a/api/firmware/backup.go +++ b/api/firmware/backup.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/backup_test.go b/api/firmware/backup_test.go index 908df9a..4ccb950 100644 --- a/api/firmware/backup_test.go +++ b/api/firmware/backup_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/bip85.go b/api/firmware/bip85.go index c4d86fc..73a16c6 100644 --- a/api/firmware/bip85.go +++ b/api/firmware/bip85.go @@ -1,16 +1,4 @@ -// Copyright 2023 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/bip85_test.go b/api/firmware/bip85_test.go index 9e8b3a4..d372262 100644 --- a/api/firmware/bip85_test.go +++ b/api/firmware/bip85_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/bluetooth.go b/api/firmware/bluetooth.go index b342f26..ab84009 100644 --- a/api/firmware/bluetooth.go +++ b/api/firmware/bluetooth.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/btc.go b/api/firmware/btc.go index 71c45f8..729492a 100644 --- a/api/firmware/btc.go +++ b/api/firmware/btc.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/btc_test.go b/api/firmware/btc_test.go index 0dc16f0..aac4470 100644 --- a/api/firmware/btc_test.go +++ b/api/firmware/btc_test.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/cardano.go b/api/firmware/cardano.go index 865b742..0c7ae06 100644 --- a/api/firmware/cardano.go +++ b/api/firmware/cardano.go @@ -1,16 +1,4 @@ -// Copyright 2021 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/cardano_test.go b/api/firmware/cardano_test.go index f3abeb5..450e73f 100644 --- a/api/firmware/cardano_test.go +++ b/api/firmware/cardano_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/device.go b/api/firmware/device.go index 91fc05c..6c2bc4b 100644 --- a/api/firmware/device.go +++ b/api/firmware/device.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package firmware contains the API to the physical device. package firmware diff --git a/api/firmware/device_test.go b/api/firmware/device_test.go index c5ca653..b6a3ce3 100644 --- a/api/firmware/device_test.go +++ b/api/firmware/device_test.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/error.go b/api/firmware/error.go index c4efd00..7f224c3 100644 --- a/api/firmware/error.go +++ b/api/firmware/error.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/eth.go b/api/firmware/eth.go index 0080779..877c2bb 100644 --- a/api/firmware/eth.go +++ b/api/firmware/eth.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/eth_test.go b/api/firmware/eth_test.go index 3a546cf..a1483ad 100644 --- a/api/firmware/eth_test.go +++ b/api/firmware/eth_test.go @@ -1,16 +1,4 @@ -// Copyright 2022 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/event.go b/api/firmware/event.go index bbda9e1..8f63555 100644 --- a/api/firmware/event.go +++ b/api/firmware/event.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/mnemonic.go b/api/firmware/mnemonic.go index b96de4b..2efe2e6 100644 --- a/api/firmware/mnemonic.go +++ b/api/firmware/mnemonic.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/mnemonic_test.go b/api/firmware/mnemonic_test.go index e0fa024..c14f78c 100644 --- a/api/firmware/mnemonic_test.go +++ b/api/firmware/mnemonic_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/mocks/mocks.go b/api/firmware/mocks/mocks.go index 0f20701..4c8d839 100644 --- a/api/firmware/mocks/mocks.go +++ b/api/firmware/mocks/mocks.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package mocks contains the mock implementations to be used in testing. package mocks diff --git a/api/firmware/options.go b/api/firmware/options.go index fa89121..34548c6 100644 --- a/api/firmware/options.go +++ b/api/firmware/options.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/pairing.go b/api/firmware/pairing.go index f49bf8b..bf218a0 100644 --- a/api/firmware/pairing.go +++ b/api/firmware/pairing.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/paymentrequests.go b/api/firmware/paymentrequests.go index 5f43711..00bc730 100644 --- a/api/firmware/paymentrequests.go +++ b/api/firmware/paymentrequests.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/psbt.go b/api/firmware/psbt.go index c8e3819..1ab5dcb 100644 --- a/api/firmware/psbt.go +++ b/api/firmware/psbt.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/psbt_test.go b/api/firmware/psbt_test.go index 2358fe5..0b281da 100644 --- a/api/firmware/psbt_test.go +++ b/api/firmware/psbt_test.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/query.go b/api/firmware/query.go index c150e0f..bb21fb2 100644 --- a/api/firmware/query.go +++ b/api/firmware/query.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/random.go b/api/firmware/random.go index c0f3947..7a4fa24 100644 --- a/api/firmware/random.go +++ b/api/firmware/random.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/sdcard.go b/api/firmware/sdcard.go index 2c61a21..434c3e4 100644 --- a/api/firmware/sdcard.go +++ b/api/firmware/sdcard.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/sdcard_test.go b/api/firmware/sdcard_test.go index 20e856a..1850b7f 100644 --- a/api/firmware/sdcard_test.go +++ b/api/firmware/sdcard_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/secp256k1.go b/api/firmware/secp256k1.go index afdef5d..a5e204a 100644 --- a/api/firmware/secp256k1.go +++ b/api/firmware/secp256k1.go @@ -1,16 +1,4 @@ -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/secp256k1_test.go b/api/firmware/secp256k1_test.go index b55c00c..bc8606a 100644 --- a/api/firmware/secp256k1_test.go +++ b/api/firmware/secp256k1_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package firmware import ( diff --git a/api/firmware/silentpayments.go b/api/firmware/silentpayments.go index 702ff0e..9183aa6 100644 --- a/api/firmware/silentpayments.go +++ b/api/firmware/silentpayments.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/status.go b/api/firmware/status.go index a9fdb12..a164483 100644 --- a/api/firmware/status.go +++ b/api/firmware/status.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/system.go b/api/firmware/system.go index 0c9f23e..aee151b 100644 --- a/api/firmware/system.go +++ b/api/firmware/system.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/api/firmware/system_test.go b/api/firmware/system_test.go index 2fa11d8..55c3d9e 100644 --- a/api/firmware/system_test.go +++ b/api/firmware/system_test.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package firmware diff --git a/cmd/bluetooth_upgrade/main.go b/cmd/bluetooth_upgrade/main.go index 61e610b..f8c0ed2 100644 --- a/cmd/bluetooth_upgrade/main.go +++ b/cmd/bluetooth_upgrade/main.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package main is a playground to play with the BitBox02 miniscript support. package main diff --git a/cmd/bootloader/main.go b/cmd/bootloader/main.go index ac5e101..6c4500b 100644 --- a/cmd/bootloader/main.go +++ b/cmd/bootloader/main.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package main is a playground for devs to interact with a live device. package main diff --git a/cmd/miniscript/main.go b/cmd/miniscript/main.go index e980e7d..589df5e 100644 --- a/cmd/miniscript/main.go +++ b/cmd/miniscript/main.go @@ -1,16 +1,4 @@ -// Copyright 2023 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package main is a playground to play with the BitBox02 miniscript support. package main diff --git a/cmd/paymentrequest/main.go b/cmd/paymentrequest/main.go index 8553542..bc75299 100644 --- a/cmd/paymentrequest/main.go +++ b/cmd/paymentrequest/main.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package main is a playground to play with the BitBox02 miniscript support. package main diff --git a/cmd/playground/main.go b/cmd/playground/main.go index 78be36e..73e3442 100644 --- a/cmd/playground/main.go +++ b/cmd/playground/main.go @@ -1,17 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package main is a playground for devs to interact with a live device. package main diff --git a/communication/u2fhid/hiddevice/hiddevice.go b/communication/u2fhid/hiddevice/hiddevice.go index d7a4a12..8015034 100644 --- a/communication/u2fhid/hiddevice/hiddevice.go +++ b/communication/u2fhid/hiddevice/hiddevice.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package hiddevice diff --git a/communication/u2fhid/u2fhid.go b/communication/u2fhid/u2fhid.go index cf07652..2b58b4a 100644 --- a/communication/u2fhid/u2fhid.go +++ b/communication/u2fhid/u2fhid.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package u2fhid implements the U2F HID message framing protocol. package u2fhid diff --git a/communication/u2fhid/u2fhid_test.go b/communication/u2fhid/u2fhid_test.go index af2fedd..fa2ce1f 100644 --- a/communication/u2fhid/u2fhid_test.go +++ b/communication/u2fhid/u2fhid_test.go @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package u2fhid diff --git a/communication/usart/usart.go b/communication/usart/usart.go index ad35855..2aa3223 100644 --- a/communication/usart/usart.go +++ b/communication/usart/usart.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package usart implements a framing protocol for messages sent over UART. package usart diff --git a/communication/usart/usart_internal_test.go b/communication/usart/usart_internal_test.go index b5a50b9..ad4d413 100644 --- a/communication/usart/usart_internal_test.go +++ b/communication/usart/usart_internal_test.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package usart diff --git a/communication/usart/usart_test.go b/communication/usart/usart_test.go index fdac65a..f99cbf9 100644 --- a/communication/usart/usart_test.go +++ b/communication/usart/usart_test.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package usart_test diff --git a/util/errp/errp.go b/util/errp/errp.go index f355e41..bff0893 100644 --- a/util/errp/errp.go +++ b/util/errp/errp.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Package errp wraps the github.com/pkg/errors package, because its name clashes with the builtin // errors package, which confuses the automatic imports tool goimports. diff --git a/util/semver/semver.go b/util/semver/semver.go index 4094d2f..4ac3efc 100644 --- a/util/semver/semver.go +++ b/util/semver/semver.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package semver diff --git a/util/semver/semver_test.go b/util/semver/semver_test.go index 23394f3..39e6ed8 100644 --- a/util/semver/semver_test.go +++ b/util/semver/semver_test.go @@ -1,16 +1,4 @@ -// Copyright 2018-2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package semver_test diff --git a/util/sleep/sleep.go b/util/sleep/sleep.go index 8734d30..07bdf63 100644 --- a/util/sleep/sleep.go +++ b/util/sleep/sleep.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 //go:build !darwin || ios || nosleep diff --git a/util/sleep/sleep_macos.go b/util/sleep/sleep_macos.go index e891fd3..2b7ae9a 100644 --- a/util/sleep/sleep_macos.go +++ b/util/sleep/sleep_macos.go @@ -1,16 +1,4 @@ -// Copyright 2024 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 //go:build darwin && !ios && !nosleep