Skip to content

Commit

Permalink
penumbra provider: update proof spec (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Jul 7, 2023
1 parent 1bfe06c commit 91f9105
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions relayer/chains/penumbra/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1941,12 +1941,13 @@ var JmtSpec = &ics23.ProofSpec{
Hash: ics23.HashOp_SHA256,
ChildOrder: []int32{0, 1},
MinPrefixLength: 16,
MaxPrefixLength: 48,
MaxPrefixLength: 16,
ChildSize: 32,
EmptyChild: nil,
EmptyChild: []byte("SPARSE_MERKLE_PLACEHOLDER_HASH__"),
},
MinDepth: 0,
MaxDepth: 64,
MinDepth: 0,
MaxDepth: 64,
PrehashKeyBeforeComparison: true,
}

var ApphashSpec = &ics23.ProofSpec{
Expand All @@ -1965,8 +1966,9 @@ var ApphashSpec = &ics23.ProofSpec{
ChildSize: 32,
EmptyChild: nil,
},
MinDepth: 0,
MaxDepth: 1,
MinDepth: 0,
MaxDepth: 1,
PrehashKeyBeforeComparison: true,
}

var PenumbraProofSpecs = []*ics23.ProofSpec{JmtSpec, ApphashSpec}
Expand Down

0 comments on commit 91f9105

Please sign in to comment.