You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change-set introduces the following:
1. add support to SHA256 in channel config
2. set default hash algorithm to SHA256 in defaultHashingAlgorithm
3. ComputeCryptoHash computes SHA256
4. Gossip crypto uses BCCSP to compute SHA256
5. Removing unsed security section from yaml files
This change-set comes in the context of
https://jira.hyperledger.org/browse/FAB-2354
Change-Id: I874e823ad8bc93897fd6dfd77723a77597eaff7b
Signed-off-by: Angelo De Caro <[email protected]>
Copy file name to clipboardexpand all lines: core/chaincode/platforms/util/utils_test.go
+7-7
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import (
13
13
// TestHashContentChange changes a random byte in a content and checks for hash change
14
14
funcTestHashContentChange(t*testing.T) {
15
15
b:= []byte("firstcontent")
16
-
hash:=util.ComputeCryptoHash(b)
16
+
hash:=util.ComputeSHA256(b)
17
17
18
18
b2:= []byte("To be, or not to be- that is the question: Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles, And by opposing end them. To die- to sleep- No more; and by a sleep to say we end The heartache, and the thousand natural shocks That flesh is heir to. 'Tis a consummation Devoutly to be wish'd.")
0 commit comments