Skip to content

Commit

Permalink
comment fix for BJJSignature2021Normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabghose997 committed Nov 23, 2023
1 parent 26238be commit 67fcc8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ssi/ld-context/cryptosuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ func BJJSignature2021Normalize(ssiMsg types.SsiMsg) ([]byte, error) {
jsonLDString = string(jsonLDBytes)
}

// Merkelize the SSI Document
// Internally the canonization of document occurs before it is constructed into a merkleTree
// The following canonization is done in order to check whether the canonized string
// is empty or not
_, err := normalizeDocument(ssiMsg, ld.AlgorithmURDNA2015)
if err != nil {
panic(err)
return nil, err
}

mz, err := merklize.MerklizeJSONLD(context.Background(), strings.NewReader(jsonLDString))
Expand Down

0 comments on commit 67fcc8a

Please sign in to comment.