From 5ec8559b90efd2b6ffbafa4a11c7e03c3eaba691 Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter <10532077+lubux@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:55:59 +0200 Subject: [PATCH] chore: Prepare pre-release v2.8.0-beta.0 (#302) --- CHANGELOG.md | 7 +++++++ crypto/signature_test.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de4774..61373fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.8.0-beta.0] 2024-10-01 +### Added +- Add `GetSHA256Fingerprint` method to `Key`. + +### Changed +- Update go-crypto to `1.1.0-beta.0`. + ## [2.8.0-alpha.1] 2024-04-09 ### Added diff --git a/crypto/signature_test.go b/crypto/signature_test.go index de32e1f..feca63d 100644 --- a/crypto/signature_test.go +++ b/crypto/signature_test.go @@ -301,7 +301,7 @@ func Test_SignDetachedWithNonCriticalContext(t *testing.T) { t.Fatal("Packet was not a signature") } notations := sig.Notations - if len(notations) != 1 { + if len(notations) != 2 { t.Fatal("Wrong number of notations") } notation := notations[0] @@ -344,7 +344,7 @@ func Test_SignDetachedWithCriticalContext(t *testing.T) { t.Fatal("Packet was not a signature") } notations := sig.Notations - if len(notations) != 1 { + if len(notations) != 2 { t.Fatal("Wrong number of notations") } notation := notations[0] diff --git a/go.mod b/go.mod index 8d21b6c..3a53dd7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ProtonMail/gopenpgp/v2 go 1.17 require ( - github.com/ProtonMail/go-crypto v1.1.0-alpha.1 + github.com/ProtonMail/go-crypto v1.1.0-beta.0 github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 diff --git a/go.sum b/go.sum index 260c580..485211e 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/ProtonMail/go-crypto v1.1.0-alpha.1 h1:iKLDnKGL+3u4Q5OjYgixAxWdkkGBPidCQumqVryUgtY= -github.com/ProtonMail/go-crypto v1.1.0-alpha.1/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.0-beta.0 h1:9ZLo7gzqEbrSakeRM4L0jaHMuZSLrjoYBIdIwcBr4C4= +github.com/ProtonMail/go-crypto v1.1.0-beta.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f h1:tCbYj7/299ekTTXpdwKYF8eBlsYsDVoggDAuAjoK66k= github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f/go.mod h1:gcr0kNtGBqin9zDW9GOHcVntrwnjrK+qdJ06mWYBybw= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=