diff --git a/suave/core/types.go b/suave/core/types.go index 936bb71f08..e216051035 100644 --- a/suave/core/types.go +++ b/suave/core/types.go @@ -11,7 +11,7 @@ import ( "github.com/ethereum/go-ethereum/node" ) -var AllowedPeekerAny = common.HexToAddress("0x04994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829") // "*" +var AllowedPeekerAny = common.HexToAddress("0xC8df3686b4Afb2BB53e60EAe97EF043FE03Fb829") // "*" type Bytes = hexutil.Bytes type BidId = types.BidId diff --git a/suave/cstore/engine.go b/suave/cstore/engine.go index 027a8839a7..c50894ad44 100644 --- a/suave/cstore/engine.go +++ b/suave/cstore/engine.go @@ -344,7 +344,7 @@ func (e *ConfidentialStoreEngine) NewMessage(message DAMessage) error { return fmt.Errorf("confidential engine: sw signer %x not allowed to store on bid %x", recoveredMessageSigner, sw.Bid.Id) } - if !slices.Contains(sw.Bid.AllowedPeekers, sw.Caller) { + if !slices.Contains(sw.Bid.AllowedPeekers, sw.Caller) && !slices.Contains(sw.Bid.AllowedPeekers, suave.AllowedPeekerAny) { return fmt.Errorf("confidential engine: caller %x not allowed on bid %x", sw.Caller, sw.Bid.Id) } diff --git a/suave/cstore/transactional_store.go b/suave/cstore/transactional_store.go index 6a4c225f3d..11bb694576 100644 --- a/suave/cstore/transactional_store.go +++ b/suave/cstore/transactional_store.go @@ -52,7 +52,7 @@ func (s *TransactionalStore) Store(bidId suave.BidId, caller common.Address, key return suave.Bid{}, err } - if !slices.Contains(bid.AllowedPeekers, caller) { + if !slices.Contains(bid.AllowedPeekers, caller) && !slices.Contains(bid.AllowedPeekers, suave.AllowedPeekerAny) { return suave.Bid{}, fmt.Errorf("confidential store transaction: %x not allowed to store %s on %x", caller, key, bidId) }