Skip to content

Commit dc2ab60

Browse files
Change hashing algorithm from SHA256 to Blake2b_256
1 parent ed8d39a commit dc2ab60

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

hydra-invoices/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog for hydra-invoices
22

3+
## 0.0.3.0
4+
5+
* Change hashing algorithm from `SHA256` to `Blake2b_256`.
6+
37
## 0.0.2.0
48

59
* Use `Value` instead of `TxOutValue` in `StandardInvoice`

hydra-invoices/hydra-invoices.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.8
22
name: hydra-invoices
3-
version: 0.0.2.0
3+
version: 0.0.3.0
44
synopsis: Invoice types and functions for Hydra lightning payments.
55
description: Invoice types and functions for Hydra lightning payments.
66
category: Cardano

hydra-invoices/src/Hydra/Invoice.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ newtype PreImage = UnsafePreImage {fromPreImage :: BS.ByteString}
3131
deriving stock (Show, Eq)
3232

3333
type PaymentId :: Type
34-
newtype PaymentId = UnsafePaymentId {fromPaymentId :: Crypto.Hash Crypto.SHA256 BS.ByteString}
34+
newtype PaymentId = UnsafePaymentId {fromPaymentId :: Crypto.Hash Crypto.Blake2b_256 BS.ByteString}
3535

3636
type StandardInvoice :: Type
3737
type StandardInvoice = Invoice PaymentId (Address ShelleyAddr) Value UTCTime

0 commit comments

Comments
 (0)