Skip to content

Commit

Permalink
penumbra: update proof spec to new multistore format (#1355)
Browse files Browse the repository at this point in the history
* penumbra: update proof spec to new multistore format

* penumbra: use new commitment prefix

---------

Co-authored-by: Justin Tieri <37750742+jtieri@users.noreply.github.com>
  • Loading branch information
avahowell and jtieri committed Dec 6, 2023
1 parent 7f03bc7 commit dd40ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion relayer/chains/penumbra/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (cc *PenumbraProvider) Timeout() string {
}

func (cc *PenumbraProvider) CommitmentPrefix() commitmenttypes.MerklePrefix {
return commitmenttypes.NewMerklePrefix([]byte("PenumbraAppHash"))
return commitmenttypes.NewMerklePrefix([]byte("ibc-data"))
}

// Address returns the chains configured address as a string
Expand Down
23 changes: 1 addition & 22 deletions relayer/chains/penumbra/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2024,28 +2024,7 @@ var JmtSpec = &ics23.ProofSpec{
PrehashKeyBeforeComparison: true,
}

var ApphashSpec = &ics23.ProofSpec{
LeafSpec: &ics23.LeafOp{
Prefix: nil,
Hash: ics23.HashOp_SHA256,
Length: ics23.LengthOp_NO_PREFIX,
PrehashKey: ics23.HashOp_NO_HASH,
PrehashValue: ics23.HashOp_NO_HASH,
},
InnerSpec: &ics23.InnerSpec{
Hash: ics23.HashOp_SHA256,
MaxPrefixLength: 0,
MinPrefixLength: 0,
ChildOrder: []int32{0, 1},
ChildSize: 32,
EmptyChild: nil,
},
MinDepth: 0,
MaxDepth: 1,
PrehashKeyBeforeComparison: false,
}

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

// NewClientState creates a new tendermint client state tracking the dst chain.
func (cc *PenumbraProvider) NewClientState(
Expand Down

0 comments on commit dd40ff2

Please sign in to comment.