mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
7e25a6125f
closes: #2812
14 lines
330 B
Go
14 lines
330 B
Go
package communities
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/status-im/status-go/eth-node/crypto"
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
)
|
|
|
|
func CalculateRequestID(publicKey string, communityID types.HexBytes) types.HexBytes {
|
|
idString := fmt.Sprintf("%s-%s", publicKey, communityID)
|
|
return crypto.Keccak256([]byte(idString))
|
|
}
|